Index: trunk/doc/conf/tree/editor.html
===================================================================
--- trunk/doc/conf/tree/editor.html (revision 7532)
+++ trunk/doc/conf/tree/editor.html (revision 7533)
@@ -44,6 +44,8 @@
name_on_pcb | boolean | 0 | display Reference Designator as element name, instead of value
|
fullscreen | boolean | 0 | hide widgets to make more room for the drawing
|
gl | boolean | 0 | use GL for drawing where available
+ |
layer_alpha | real | 0 | alpha value for layer drawing
+ |
drill_alpha | real | 0 | alpha value for drill drawing
|
click_time | integer | 0 | default time for click expiration, in ms
|
enable_stroke | boolean | 0 | Enable libstroke gestures on middle mouse button when non-zero
|
live_routing | boolean | 0 | autorouter shows tracks in progress
Index: trunk/src/conf_core.h
===================================================================
--- trunk/src/conf_core.h (revision 7532)
+++ trunk/src/conf_core.h (revision 7533)
@@ -57,6 +57,8 @@
CFT_BOOLEAN name_on_pcb; /* display Reference Designator as element name, instead of value */
CFT_BOOLEAN fullscreen; /* hide widgets to make more room for the drawing */
CFT_BOOLEAN gl; /* use GL for drawing where available */
+ CFT_REAL layer_alpha; /* alpha value for layer drawing */
+ CFT_REAL drill_alpha; /* alpha value for drill drawing */
CFT_INTEGER click_time; /* default time for click expiration, in ms */
Index: trunk/src/pcb-conf.lht
===================================================================
--- trunk/src/pcb-conf.lht (revision 7532)
+++ trunk/src/pcb-conf.lht (revision 7533)
@@ -81,6 +81,8 @@
undo_warning_size = 1024
fullscreen = 0
gl = 1
+ layer_alpha = 0.7
+ drill_alpha = 0.85
} # editor
ha:rc {
Index: trunk/src_plugins/hid_gtk/gtkhid-gl.c
===================================================================
--- trunk/src_plugins/hid_gtk/gtkhid-gl.c (revision 7532)
+++ trunk/src_plugins/hid_gtk/gtkhid-gl.c (revision 7533)
@@ -391,7 +391,7 @@
r = gport->offlimits_color.red / 65535.;
g = gport->offlimits_color.green / 65535.;
b = gport->offlimits_color.blue / 65535.;
- a = 0.85;
+ a = conf_core.editor.drill_alpha;
}
else {
if (pcb_hid_cache_color(0, gc->colorname, &cval, &cache))
@@ -428,7 +428,7 @@
r = cc->red;
g = cc->green;
b = cc->blue;
- a = 0.7;
+ a = conf_core.editor.layer_alpha;
}
if (1) {
double maxi, mult;
|