Drop !important from the gtk3 template
Browse files at this commitb4b2a3c10c8cbf5ef4d46a4b7e2489601dd58d24Parent: b439808- fix
- drop !important from the gtk3 template
1 changed file +194 -9
.config/wallust/templates/gtk3.cssmodified+194 -9
| @@ -1,5 +1,28 @@ | |||
| 1 | /* Generated by wallust */ | 1 | /* Generated by wallust */ |
| 2 | 2 | ||
| 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 | + | ||
| 3 | * { | 26 | * { |
| 4 | color: {{foreground}}; | 27 | color: {{foreground}}; |
| 5 | } | 28 | } |
| @@ -18,17 +41,44 @@ treeview.view, | |||
| 18 | row, | 41 | row, |
| 19 | cell, | 42 | cell, |
| 20 | frame, | 43 | frame, |
| 21 | -scrolledwindow { | 44 | +scrolledwindow, |
| 45 | +viewport, | ||
| 46 | +notebook, | ||
| 47 | +notebook stack, | ||
| 48 | +notebook > stack, | ||
| 49 | +notebook > box, | ||
| 50 | +notebook > grid, | ||
| 51 | +stack { | ||
| 22 | background-color: mix({{background}}, {{color1}}, 0.35); | 52 | background-color: mix({{background}}, {{color1}}, 0.35); |
| 23 | color: {{foreground}}; | 53 | color: {{foreground}}; |
| 24 | } | 54 | } |
| 25 | 55 | ||
| 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 | + | ||
| 26 | treeview.view:selected, | 76 | treeview.view:selected, |
| 27 | .view:selected, | 77 | .view:selected, |
| 28 | row:selected, | 78 | row:selected, |
| 29 | list row:selected, | 79 | list row:selected, |
| 30 | placessidebar row:selected { | 80 | placessidebar row:selected { |
| 31 | - background-color: {{color4}}; | 81 | + background-color: mix({{color4}}, {{foreground}}, 0.3); |
| 32 | color: {{color15}}; | 82 | color: {{color15}}; |
| 33 | } | 83 | } |
| 34 | 84 | ||
| @@ -57,24 +107,74 @@ entry { | |||
| 57 | color: {{foreground}}; | 107 | color: {{foreground}}; |
| 58 | } | 108 | } |
| 59 | 109 | ||
| 60 | -button { | 110 | +button, |
| 61 | - background-color: mix({{background}}, {{color1}}, 0.4); | 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; | ||
| 62 | color: {{foreground}}; | 133 | color: {{foreground}}; |
| 134 | + border-color: transparent; | ||
| 135 | + box-shadow: none; | ||
| 63 | } | 136 | } |
| 64 | 137 | ||
| 65 | -button:hover { | 138 | +button.flat:hover { |
| 66 | background-color: mix({{background}}, {{color1}}, 0.5); | 139 | background-color: mix({{background}}, {{color1}}, 0.5); |
| 67 | } | 140 | } |
| 68 | 141 | ||
| 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 | + | ||
| 69 | button:active, | 150 | button:active, |
| 70 | -button:checked { | 151 | +button:checked, |
| 71 | - background-color: {{color4}}; | 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; | ||
| 72 | color: {{color15}}; | 162 | 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; | ||
| 73 | } | 173 | } |
| 74 | 174 | ||
| 75 | selection, | 175 | selection, |
| 76 | *:selected { | 176 | *:selected { |
| 77 | - background-color: {{color4}}; | 177 | + background-color: mix({{color4}}, {{foreground}}, 0.3); |
| 78 | color: {{color15}}; | 178 | color: {{color15}}; |
| 79 | } | 179 | } |
| 80 | 180 | ||
| @@ -89,6 +189,91 @@ menu { | |||
| 89 | } | 189 | } |
| 90 | 190 | ||
| 91 | menuitem:hover { | 191 | 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; | ||
| 93 | color: {{color15}}; | 277 | color: {{color15}}; |
| 278 | + border-color: mix({{color4}}, {{foreground}}, 0.3); | ||
| 94 | } | 279 | } |