summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Janetzek <hannes.janetzek@gmail.com>2012-02-06 12:18:45 +0000
committerHannes Janetzek <hannes.janetzek@gmail.com>2012-02-06 12:18:45 +0000
commitf85e056a389ec77fcd34ddd8ae15edb658cd348e (patch)
tree6dd2dead2268831ac3b1d601b066f452fab191cd
parent32583cf54a555e0babdcbdb282d91d12f37a26f5 (diff)
themes/detourious: gtk3... making scrollbar less hideous
SVN revision: 67712
-rw-r--r--gtk/detourious/gtk-2.0/button.rc6
-rw-r--r--gtk/detourious/gtk-2.0/toolbar.rc4
-rw-r--r--gtk/detourious/gtk-3.0/gtk-bars.css75
-rw-r--r--gtk/detourious/gtk-3.0/gtk-buttons.css2
4 files changed, 52 insertions, 35 deletions
diff --git a/gtk/detourious/gtk-2.0/button.rc b/gtk/detourious/gtk-2.0/button.rc
index a407a1c..ed8597a 100644
--- a/gtk/detourious/gtk-2.0/button.rc
+++ b/gtk/detourious/gtk-2.0/button.rc
@@ -88,4 +88,8 @@ widget "*.tasklist-button" style "button"
88 88
89widget_class "*GtkComboBox*" style "button" 89widget_class "*GtkComboBox*" style "button"
90widget_class "*.<GtkComboBox>." style "button" 90widget_class "*.<GtkComboBox>." style "button"
91widget_class "*<GtkOptionMenu>*" style "button" \ No newline at end of file 91widget_class "*<GtkOptionMenu>*" style "button"
92
93#widget_class "*<GtkToolbar>*<GtkButton>" style "button"
94#widget_class "*<GtkToolbar>*<GtkToggleButton>" style "button"
95
diff --git a/gtk/detourious/gtk-2.0/toolbar.rc b/gtk/detourious/gtk-2.0/toolbar.rc
index 2be4f2d..62a7a67 100644
--- a/gtk/detourious/gtk-2.0/toolbar.rc
+++ b/gtk/detourious/gtk-2.0/toolbar.rc
@@ -84,3 +84,7 @@ widget_class "*RB*GtkToolbar*" style "toolbar-fix"
84widget_class "*Swt*GtkToolbar*" style "toolbar-fix" 84widget_class "*Swt*GtkToolbar*" style "toolbar-fix"
85 85
86 86
87#widget_class "*GtkToolbar*GtkEventBox" style "toolbar-fix"
88#widget_class "*GtkToolbar*Box" style "toolbar-fix"
89
90
diff --git a/gtk/detourious/gtk-3.0/gtk-bars.css b/gtk/detourious/gtk-3.0/gtk-bars.css
index e64de65..74ef0ae 100644
--- a/gtk/detourious/gtk-3.0/gtk-bars.css
+++ b/gtk/detourious/gtk-3.0/gtk-bars.css
@@ -99,15 +99,16 @@ GtkProgressBar.trough.vertical,
99 *************/ 99 *************/
100/* Using the adwaita engine to fix a small consistency bug */ 100/* Using the adwaita engine to fix a small consistency bug */
101.scrollbar { 101.scrollbar {
102 engine: unico; 102 /* engine: unico; */
103 background-image: none; 103 /* background-image: none; */
104 background-color: @theme_bg_color;
104 border-style: solid; 105 border-style: solid;
105 -GtkRange-trough-border: 1; 106 -GtkRange-trough-border: 3;
106 -GtkRange-arrow-scaling: 0.444; 107 -GtkRange-arrow-scaling: 0.444;
107 -GtkRange-slider-width: 16; 108 -GtkRange-slider-width: 9;
108 -GtkRange-stepper-size: 0; 109 -GtkRange-stepper-size: 5;
109 -GtkScrollbar-min-slider-length: 30; 110 -GtkScrollbar-min-slider-length: 30;
110 -GtkRange-stepper-spacing: 0; 111 -GtkRange-stepper-spacing: 10;
111 -GtkRange-trough-under-steppers: 1; 112 -GtkRange-trough-under-steppers: 1;
112 -unico-inner-stroke-style: none; 113 -unico-inner-stroke-style: none;
113} 114}
@@ -121,12 +122,12 @@ GtkProgressBar.trough.vertical,
121 to (@trough_bg_color_a)); 122 to (@trough_bg_color_a));
122 background-color: shade (@theme_bg_color, 0.882); 123 background-color: shade (@theme_bg_color, 0.882);
123 border-width: 0; 124 border-width: 0;
124 border-radius: 0; 125 /* border-radius: 5; */
125 -unico-border-gradient: -gtk-gradient (linear, 126 -unico-border-gradient: -gtk-gradient (linear,
126 left top, right top, 127 left top, right top,
127 from (alpha (@scrollslider_gradient_a, 1.00)), 128 from (alpha (@scrollslider_gradient_a, 1.00)),
128 to (alpha (@scrollslider_gradient_a, 0.00))); 129 to (alpha (@scrollslider_gradient_a, 0.00)));
129 border-width: 1; 130 border-width: 0;
130 border-style: solid; 131 border-style: solid;
131} 132}
132 133
@@ -137,38 +138,42 @@ GtkProgressBar.trough.vertical,
137 from (shade (@trough_bg_color_b, 0.99)), 138 from (shade (@trough_bg_color_b, 0.99)),
138 to (@trough_bg_color_a)); 139 to (@trough_bg_color_a));
139 background-color: shade (@theme_bg_color, 0.882); 140 background-color: shade (@theme_bg_color, 0.882);
140 border-width: 0; 141 border-width: 1;
141 border-radius: 0; 142 /* border-radius: 5; */
142 -unico-border-gradient: -gtk-gradient (linear, 143 -unico-border-gradient: -gtk-gradient (linear,
143 left top, left bottom, 144 left top, left bottom,
144 from (alpha (@scrollslider_gradient_a, 1.00)), 145 from (alpha (@scrollslider_gradient_a, 1.00)),
145 to (alpha (@scrollslider_gradient_a, 0.00))); 146 to (alpha (@scrollslider_gradient_a, 0.00)));
146 border-width: 1; 147 border-width: 0;
147 border-style: solid; 148 border-style: solid;
148} 149}
149 150
150/* Sliders and buttons */ 151/* Sliders and buttons */
151.scrollbar.slider.vertical, 152.scrollbar.slider.vertical,
152.scrollbar.button.vertical { 153.scrollbar.button.vertical {
153 engine: unico; 154 engine: adwaita;
154 /* background-image: url("images/slider-vert.png"); */ 155 /* background-image: url("images/slider-vert.png"); */
155 background-image: -gtk-gradient (linear, 156 /* background-image: -gtk-gradient (linear,
156 left top, right top, 157 * left top, right top,
157 from (@scrollslider_gradient_a), 158 * from (@scrollslider_gradient_a),
158 to (@scrollslider_gradient_b)); 159 * to (@scrollslider_gradient_b)); */
159 background-color: @theme_base_color; 160 /* background-color: @theme_base_color;
160 border-color: @scrollslider_border; 161 * border-color: @scrollslider_border; */
161 /* border-radius: 10; */ 162 border-radius: 5;
162 border-width: 0; 163 border-width: 1;
163 /* border-image: url("images/slider-vert.png") 6 4 6 4 stretch; */ 164 border-image: url("images/slider-vert.png") 6 / 4 stretch;
164} 165}
165 166
166.scrollbar.slider.vertical:prelight { 167.scrollbar.slider.vertical:prelight {
167 engine: unico; 168 engine: unico;
168 background-image: -gtk-gradient (linear, 169 background-image: -gtk-gradient (linear,
169 left top, right top, 170 left top, right top,
170 from (shade (@scrollslider_gradient_a, 0.90)), 171 from (@button_hover_gradient_a),
171 to (shade (@scrollslider_gradient_b, 0.90))); 172 to (@button_hover_gradient_b));
173 /* background-image: -gtk-gradient (linear,
174 * left top, right top,
175 * from (shade (@scrollslider_gradient_a, 0.90)),
176 * to (shade (@scrollslider_gradient_b, 0.90))); */
172 background-color: @theme_base_color; 177 background-color: @theme_base_color;
173 border-color: shade (@scrollslider_border, 0.90); 178 border-color: shade (@scrollslider_border, 0.90);
174} 179}
@@ -177,8 +182,12 @@ GtkProgressBar.trough.vertical,
177 engine: unico; 182 engine: unico;
178 background-image: -gtk-gradient (linear, 183 background-image: -gtk-gradient (linear,
179 left top, right top, 184 left top, right top,
180 from (shade (@scrollslider_gradient_a, 0.90)), 185 from (@button_hover_gradient_a),
181 to (shade (@scrollslider_gradient_b, 0.90))); 186 to (@button_hover_gradient_b));
187 /* background-image: -gtk-gradient (linear,
188 * left top, right top,
189 * from (shade (@scrollslider_gradient_a, 0.90)),
190 * to (shade (@scrollslider_gradient_b, 0.90))); */
182 background-color: @theme_base_color; 191 background-color: @theme_base_color;
183 border-color: shade (@scrollslider_border, 0.90); 192 border-color: shade (@scrollslider_border, 0.90);
184} 193}
@@ -187,14 +196,14 @@ GtkProgressBar.trough.vertical,
187.scrollbar.button.horizontal { 196.scrollbar.button.horizontal {
188 engine: unico; 197 engine: unico;
189 /* background-image: url("images/slider-horiz.png"); */ 198 /* background-image: url("images/slider-horiz.png"); */
190 background-image: -gtk-gradient (linear, 199 /* background-image: -gtk-gradient (linear,
191 left top, left bottom, 200 * left top, left bottom,
192 from (@scrollslider_gradient_a), 201 * from (@scrollslider_gradient_a),
193 to (@scrollslider_gradient_b)); 202 * to (@scrollslider_gradient_b));
194 background-color: @theme_base_color; 203 * background-color: @theme_base_color;
195 border-color: @scrollslider_border; 204 * border-color: @scrollslider_border; */
196 /* border-radius: 10; */ 205 border-radius: 5;
197 border-width: 5; 206 /* border-width: 5; */
198} 207}
199 208
200.scrollbar.slider.horizontal:prelight { 209.scrollbar.slider.horizontal:prelight {
diff --git a/gtk/detourious/gtk-3.0/gtk-buttons.css b/gtk/detourious/gtk-3.0/gtk-buttons.css
index 3a2b324..c71326c 100644
--- a/gtk/detourious/gtk-3.0/gtk-buttons.css
+++ b/gtk/detourious/gtk-3.0/gtk-buttons.css
@@ -4,7 +4,7 @@
4GtkScale.slider, 4GtkScale.slider,
5.button, 5.button,
6.toolbar .button { 6.toolbar .button {
7 border-radius: 2; 7 border-radius: 3;
8 text-shadow: 0 1 alpha (shade (@button_bg_color, 1.25), 0.4); 8 text-shadow: 0 1 alpha (shade (@button_bg_color, 1.25), 0.4);
9 background-image: -gtk-gradient (linear, 9 background-image: -gtk-gradient (linear,
10 left top, left bottom, 10 left top, left bottom,