forge
Explore
Log in

Don't you dare go Hollow

Drop !important from the gtk3 template

Browse files at this commit

b4b2a3c10c8cbf5ef4d46a4b7e2489601dd58d24Ahmet Kaan GümüşParent: b439808
  • fix
    • drop !important from the gtk3 template
Show full message
fix(wallust): drop !important from the gtk3 template

GTK's CSS subset does not accept !important, so all six occurrences produced
"Junk at end of value" / "'' is not a valid color name" parse errors in every
GTK3 app that loaded ~/.config/gtk-3.0/gtk.css (visible in waybar's log). A
parse error drops the whole declaration, so the scale highlight/progress and
scale marks rules were never applied — the keyword meant to force them was the
reason they did nothing.

Verified: regenerated gtk.css has no !important, and waybar starts with 0 theme
parsing errors (was 6).

Note this commit also carries pre-existing uncommitted work in the same file.
.config/wallust/templates/gtk3.cssmodified+194 -9
@@ -1,5 +1,28 @@
11 /* Generated by wallust */
22
3+@define-color theme_bg_color mix({{background}}, {{color1}}, 0.35);
4+@define-color theme_fg_color {{foreground}};
5+@define-color theme_base_color mix({{background}}, {{color1}}, 0.3);
6+@define-color theme_text_color {{foreground}};
7+@define-color theme_selected_bg_color mix({{color4}}, {{foreground}}, 0.3);
8+@define-color theme_selected_fg_color {{color15}};
9+@define-color theme_tooltip_bg_color {{color1}};
10+@define-color theme_tooltip_fg_color {{foreground}};
11+@define-color theme_unfocused_bg_color mix({{background}}, {{color1}}, 0.32);
12+@define-color theme_unfocused_fg_color {{foreground}};
13+@define-color theme_unfocused_base_color mix({{background}}, {{color1}}, 0.28);
14+@define-color theme_unfocused_text_color {{foreground}};
15+@define-color theme_unfocused_selected_bg_color mix({{color4}}, {{foreground}}, 0.3);
16+@define-color theme_unfocused_selected_fg_color {{color15}};
17+@define-color borders mix({{background}}, {{color1}}, 0.5);
18+@define-color unfocused_borders mix({{background}}, {{color1}}, 0.45);
19+@define-color warning_color {{color3}};
20+@define-color error_color {{color1}};
21+@define-color success_color {{color2}};
22+@define-color insensitive_bg_color mix({{background}}, {{color1}}, 0.3);
23+@define-color insensitive_fg_color {{color8}};
24+@define-color insensitive_base_color mix({{background}}, {{color1}}, 0.25);
25+
326 * {
427 color: {{foreground}};
528 }
@@ -18,17 +41,44 @@ treeview.view,
1841 row,
1942 cell,
2043 frame,
21-scrolledwindow {
44+scrolledwindow,
45+viewport,
46+notebook,
47+notebook stack,
48+notebook > stack,
49+notebook > box,
50+notebook > grid,
51+stack {
2252 background-color: mix({{background}}, {{color1}}, 0.35);
2353 color: {{foreground}};
2454 }
2555
56+notebook header {
57+ background-color: mix({{background}}, {{color1}}, 0.4);
58+ color: {{foreground}};
59+}
60+
61+notebook tab {
62+ background-color: transparent;
63+ color: {{foreground}};
64+}
65+
66+notebook tab:checked {
67+ background-color: mix({{background}}, {{color1}}, 0.7);
68+ color: {{foreground}};
69+ box-shadow: inset 0 -3px 0 0 mix({{color4}}, {{foreground}}, 0.3);
70+}
71+
72+notebook tab:hover:not(:checked) {
73+ background-color: mix({{background}}, {{color1}}, 0.55);
74+}
75+
2676 treeview.view:selected,
2777 .view:selected,
2878 row:selected,
2979 list row:selected,
3080 placessidebar row:selected {
31- background-color: {{color4}};
81+ background-color: mix({{color4}}, {{foreground}}, 0.3);
3282 color: {{color15}};
3383 }
3484
@@ -57,24 +107,74 @@ entry {
57107 color: {{foreground}};
58108 }
59109
60-button {
61- background-color: mix({{background}}, {{color1}}, 0.4);
110+button,
111+button.text-button,
112+button.image-button,
113+headerbar button,
114+.titlebar button,
115+pathbar button,
116+.path-bar button,
117+filechooser pathbar button {
118+ background-color: mix({{background}}, {{color1}}, 0.55);
119+ background-image: none;
120+ color: {{foreground}};
121+ border-color: mix({{background}}, {{color1}}, 0.65);
122+ box-shadow: none;
123+}
124+
125+pathbar button:hover,
126+.path-bar button:hover {
127+ background-color: mix({{background}}, {{color1}}, 0.65);
128+}
129+
130+button.flat {
131+ background-color: transparent;
132+ background-image: none;
62133 color: {{foreground}};
134+ border-color: transparent;
135+ box-shadow: none;
63136 }
64137
65-button:hover {
138+button.flat:hover {
66139 background-color: mix({{background}}, {{color1}}, 0.5);
67140 }
68141
142+button:hover,
143+button.flat:hover,
144+headerbar button:hover {
145+ background-color: mix({{background}}, {{color1}}, 0.5);
146+ background-image: none;
147+ box-shadow: none;
148+}
149+
69150 button:active,
70-button:checked {
71- background-color: {{color4}};
151+button:checked,
152+button.flat:checked {
153+ background-color: mix({{color4}}, {{foreground}}, 0.3);
154+ background-image: none;
155+ color: {{color15}};
156+ box-shadow: none;
157+}
158+
159+button.suggested-action {
160+ background-color: mix({{color4}}, {{foreground}}, 0.3);
161+ background-image: none;
72162 color: {{color15}};
163+ border-color: mix({{color4}}, {{foreground}}, 0.3);
164+ box-shadow: none;
165+}
166+
167+button.destructive-action {
168+ background-color: mix({{color1}}, {{foreground}}, 0.3);
169+ background-image: none;
170+ color: {{color15}};
171+ border-color: mix({{color1}}, {{foreground}}, 0.3);
172+ box-shadow: none;
73173 }
74174
75175 selection,
76176 *:selected {
77- background-color: {{color4}};
177+ background-color: mix({{color4}}, {{foreground}}, 0.3);
78178 color: {{color15}};
79179 }
80180
@@ -89,6 +189,91 @@ menu {
89189 }
90190
91191 menuitem:hover {
92- background-color: {{color4}};
192+ background-color: mix({{color4}}, {{foreground}}, 0.3);
193+ color: {{color15}};
194+}
195+
196+scale trough {
197+ background-color: mix({{background}}, {{color1}}, 0.4);
198+ background-image: none;
199+}
200+
201+scale highlight,
202+scale fill,
203+scale > trough > highlight,
204+scale > trough > progress,
205+.scale highlight,
206+.scale progress,
207+scale.horizontal trough highlight,
208+scale.vertical trough highlight,
209+trough highlight,
210+trough progress {
211+ background-color: mix({{color4}}, {{foreground}}, 0.3);
212+ background-image: none;
213+ border-color: mix({{color4}}, {{foreground}}, 0.3);
214+}
215+
216+scale marks,
217+scale marks mark,
218+scale marks mark indicator,
219+scale > marks > mark > indicator,
220+scale > marks.top > mark > indicator,
221+scale > marks.bottom > mark > indicator {
222+ background-color: mix({{background}}, {{color1}}, 0.6);
223+ color: mix({{background}}, {{color1}}, 0.6);
224+ border-color: mix({{background}}, {{color1}}, 0.6);
225+}
226+
227+scale slider {
228+ background-color: {{foreground}};
229+ background-image: none;
230+ border-color: mix({{background}}, {{color1}}, 0.5);
231+}
232+
233+progressbar trough {
234+ background-color: mix({{background}}, {{color1}}, 0.4);
235+ background-image: none;
236+}
237+
238+progressbar progress {
239+ background-color: mix({{color4}}, {{foreground}}, 0.3);
240+ background-image: none;
241+}
242+
243+switch {
244+ background-color: mix({{background}}, {{color1}}, 0.4);
245+ background-image: none;
246+}
247+
248+switch:checked {
249+ background-color: mix({{color4}}, {{foreground}}, 0.3);
250+ background-image: none;
251+}
252+
253+switch slider {
254+ background-color: {{foreground}};
255+ background-image: none;
256+ border-color: mix({{background}}, {{color1}}, 0.5);
257+}
258+
259+checkbutton check,
260+checkbutton radio,
261+check,
262+radio {
263+ background-color: mix({{background}}, {{color1}}, 0.4);
264+ background-image: none;
265+ border-color: mix({{background}}, {{color1}}, 0.6);
266+ color: {{foreground}};
267+}
268+
269+checkbutton check:checked,
270+checkbutton radio:checked,
271+check:checked,
272+radio:checked,
273+checkbutton check:indeterminate,
274+check:indeterminate {
275+ background-color: mix({{color4}}, {{foreground}}, 0.3);
276+ background-image: none;
93277 color: {{color15}};
278+ border-color: mix({{color4}}, {{foreground}}, 0.3);
94279 }