Stop blanket rules from overriding app and state styles
Browse files at this commit309c9aa028a2a4e4a44dec572ca9812126bbeda7Parent: 7da17af- fix
- stop blanket rules from overriding app and state styles
7 changed files +336 -36
- .config/scripts/shared/theme_colors.sh +7 -4
- .config/wallust/templates/gtk2.gtkrc +61 -0
- .config/wallust/templates/gtk3.css +110 -7
- .config/wallust/templates/gtk4.css +81 -19
- .config/wallust/templates/kdeglobals +71 -0
- .config/wallust/templates/qt5ct-wallust.conf +3 -3
- .config/wallust/templates/qt6ct-wallust.conf +3 -3
.config/scripts/shared/theme_colors.shmodified+7 -4
| @@ -41,8 +41,10 @@ with open('$KDEGLOBALS', 'w') as f: | |||
| 41 | " | 41 | " |
| 42 | fi | 42 | fi |
| 43 | 43 | ||
| 44 | -# Resolve mix() in GTK CSS / gtkrc files | 44 | +# Resolve mix() in GTK CSS / gtkrc files, and in the Qt color schemes. |
| 45 | -for css in ~/.config/gtk-4.0/gtk.css ~/.config/gtk-4.0/gtk-dark.css ~/.config/gtk-3.0/gtk.css ~/.gtkrc-2.0.mine; do | 45 | +# The Qt confs must be handled here, before the #RRGGBB -> #ffRRGGBB pass below, |
| 46 | +# because the mix() regex only matches 6-digit hex. | ||
| 47 | +for css in ~/.config/gtk-4.0/gtk.css ~/.config/gtk-4.0/gtk-dark.css ~/.config/gtk-3.0/gtk.css ~/.gtkrc-2.0.mine ~/.config/qt5ct/colors/wallust.conf ~/.config/qt6ct/colors/wallust.conf; do | ||
| 46 | [ -f "$css" ] || continue | 48 | [ -f "$css" ] || continue |
| 47 | python3 -c " | 49 | python3 -c " |
| 48 | import re | 50 | import re |
| @@ -100,7 +102,8 @@ print(m('$C4', '$FG', 0.3)) | |||
| 100 | MIXED_BTN=$(echo "$COMPUTED" | sed -n '2p') | 102 | MIXED_BTN=$(echo "$COMPUTED" | sed -n '2p') |
| 101 | MIXED_ACCENT=$(echo "$COMPUTED" | sed -n '3p') | 103 | MIXED_ACCENT=$(echo "$COMPUTED" | sed -n '3p') |
| 102 | 104 | ||
| 103 | - # Replace surface roles: Base(9), Window(10), AlternateBase(16), ToolTipBase(17) with MIXED | 105 | + # Replace surface roles: Base(9), Window(10), AlternateBase(16), ToolTipBase(18) with MIXED |
| 106 | + # NOTE: role order is QPalette::ColorRole — index 17 is NoRole, ToolTipBase is 18. | ||
| 104 | # Replace Button(1) with MIXED_BTN | 107 | # Replace Button(1) with MIXED_BTN |
| 105 | # Replace Highlight(12) and pos 20 with MIXED_ACCENT | 108 | # Replace Highlight(12) and pos 20 with MIXED_ACCENT |
| 106 | python3 -c " | 109 | python3 -c " |
| @@ -116,7 +119,7 @@ for line in lines: | |||
| 116 | out.append(line); continue | 119 | out.append(line); continue |
| 117 | key, vals = line.strip().split('=', 1) | 120 | key, vals = line.strip().split('=', 1) |
| 118 | cols = [v.strip() for v in vals.split(',')] | 121 | cols = [v.strip() for v in vals.split(',')] |
| 119 | - for i in [9, 10, 16, 17]: | 122 | + for i in [9, 10, 16, 18]: |
| 120 | if i < len(cols) and cols[i] == c1: | 123 | if i < len(cols) and cols[i] == c1: |
| 121 | cols[i] = mixed | 124 | cols[i] = mixed |
| 122 | if 1 < len(cols) and cols[1] == c1: | 125 | if 1 < len(cols) and cols[1] == c1: |
.config/wallust/templates/gtk2.gtkrcadded+61 -0
| @@ -0,0 +1,61 @@ | |||
| 1 | +# Generated by wallust | ||
| 2 | + | ||
| 3 | +# Surfaces must match the GTK3/GTK4 steps; raw {{background}}/{{color1}} here | ||
| 4 | +# made GTK2 windows near-black and selections a different accent than GTK3. | ||
| 5 | +gtk-color-scheme = "bg_color:mix({{background}}, {{color1}}, 0.35)\nfg_color:{{foreground}}\nbase_color:mix({{background}}, {{color1}}, 0.30)\ntext_color:{{foreground}}\nselected_bg_color:mix({{color4}}, {{foreground}}, 0.3)\nselected_fg_color:{{color15}}\ntooltip_bg_color:mix({{background}}, {{color1}}, 0.45)\ntooltip_fg_color:{{foreground}}" | ||
| 6 | + | ||
| 7 | +style "wallust-default" { | ||
| 8 | + bg[NORMAL] = "mix({{background}}, {{color1}}, 0.35)" | ||
| 9 | + bg[PRELIGHT] = "mix({{background}}, {{color1}}, 0.45)" | ||
| 10 | + bg[ACTIVE] = "mix({{background}}, {{color1}}, 0.40)" | ||
| 11 | + bg[SELECTED] = "mix({{color4}}, {{foreground}}, 0.3)" | ||
| 12 | + bg[INSENSITIVE] = "mix({{background}}, {{color1}}, 0.30)" | ||
| 13 | + | ||
| 14 | + fg[NORMAL] = "{{foreground}}" | ||
| 15 | + fg[PRELIGHT] = "{{foreground}}" | ||
| 16 | + fg[ACTIVE] = "{{foreground}}" | ||
| 17 | + fg[SELECTED] = "{{color15}}" | ||
| 18 | + fg[INSENSITIVE] = "{{color8}}" | ||
| 19 | + | ||
| 20 | + base[NORMAL] = "mix({{background}}, {{color1}}, 0.30)" | ||
| 21 | + base[PRELIGHT] = "mix({{background}}, {{color1}}, 0.35)" | ||
| 22 | + base[ACTIVE] = "mix({{color4}}, {{foreground}}, 0.3)" | ||
| 23 | + base[SELECTED] = "mix({{color4}}, {{foreground}}, 0.3)" | ||
| 24 | + base[INSENSITIVE] = "mix({{background}}, {{color1}}, 0.25)" | ||
| 25 | + | ||
| 26 | + text[NORMAL] = "{{foreground}}" | ||
| 27 | + text[PRELIGHT] = "{{foreground}}" | ||
| 28 | + text[ACTIVE] = "{{color15}}" | ||
| 29 | + text[SELECTED] = "{{color15}}" | ||
| 30 | + text[INSENSITIVE] = "{{color8}}" | ||
| 31 | +} | ||
| 32 | + | ||
| 33 | +style "wallust-tooltips" { | ||
| 34 | + bg[NORMAL] = "mix({{background}}, {{color1}}, 0.45)" | ||
| 35 | + fg[NORMAL] = "{{foreground}}" | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +class "GtkWidget" style "wallust-default" | ||
| 39 | +class "GtkButton" style "wallust-default" | ||
| 40 | +class "GtkCheckButton" style "wallust-default" | ||
| 41 | +class "GtkRadioButton" style "wallust-default" | ||
| 42 | +class "GtkEntry" style "wallust-default" | ||
| 43 | +class "GtkTreeView" style "wallust-default" | ||
| 44 | +class "GtkLabel" style "wallust-default" | ||
| 45 | +class "GtkMenu" style "wallust-default" | ||
| 46 | +class "GtkMenuItem" style "wallust-default" | ||
| 47 | +class "GtkMenuBar" style "wallust-default" | ||
| 48 | +class "GtkToolbar" style "wallust-default" | ||
| 49 | +class "GtkNotebook" style "wallust-default" | ||
| 50 | +widget_class "*<GtkNotebook>*" style "wallust-default" | ||
| 51 | +widget_class "*GtkNotebook.*" style "wallust-default" | ||
| 52 | +class "GtkScrolledWindow" style "wallust-default" | ||
| 53 | +class "GtkFrame" style "wallust-default" | ||
| 54 | +class "GtkWindow" style "wallust-default" | ||
| 55 | +class "GtkDialog" style "wallust-default" | ||
| 56 | +class "GtkTooltip" style "wallust-tooltips" | ||
| 57 | + | ||
| 58 | +widget_class "*<GtkTreeView>*" style "wallust-default" | ||
| 59 | +widget_class "*<GtkButton>*" style "wallust-default" | ||
| 60 | +widget_class "*<GtkEntry>*" style "wallust-default" | ||
| 61 | +widget "gtk-tooltip*" style "wallust-tooltips" | ||
.config/wallust/templates/gtk3.cssmodified+110 -7
| @@ -16,9 +16,12 @@ | |||
| 16 | @define-color theme_unfocused_selected_fg_color {{color15}}; | 16 | @define-color theme_unfocused_selected_fg_color {{color15}}; |
| 17 | @define-color borders mix({{background}}, {{color1}}, 0.5); | 17 | @define-color borders mix({{background}}, {{color1}}, 0.5); |
| 18 | @define-color unfocused_borders mix({{background}}, {{color1}}, 0.45); | 18 | @define-color unfocused_borders mix({{background}}, {{color1}}, 0.45); |
| 19 | -@define-color warning_color {{color3}}; | 19 | +/* Semantic colors keep their canonical hue and only take a palette tint: |
| 20 | -@define-color error_color {{color1}}; | 20 | + straight {{color1}}/{{color3}} made "error" grey and "warning" blue, i.e. the |
| 21 | -@define-color success_color {{color2}}; | 21 | + status signal was lost. */ |
| 22 | +@define-color warning_color mix(#f5c211, {{color3}}, 0.3); | ||
| 23 | +@define-color error_color mix(#e01b24, {{color1}}, 0.3); | ||
| 24 | +@define-color success_color mix(#2ec27e, {{color2}}, 0.3); | ||
| 22 | @define-color insensitive_bg_color mix({{background}}, {{color1}}, 0.3); | 25 | @define-color insensitive_bg_color mix({{background}}, {{color1}}, 0.3); |
| 23 | @define-color insensitive_fg_color {{color8}}; | 26 | @define-color insensitive_fg_color {{color8}}; |
| 24 | @define-color insensitive_base_color mix({{background}}, {{color1}}, 0.25); | 27 | @define-color insensitive_base_color mix({{background}}, {{color1}}, 0.25); |
| @@ -102,9 +105,87 @@ headerbar:backdrop { | |||
| 102 | color: {{foreground}}; | 105 | color: {{foreground}}; |
| 103 | } | 106 | } |
| 104 | 107 | ||
| 105 | -entry { | 108 | +/* Text fields need a visible edge: the base color is only a few steps away |
| 109 | + from the window background, so a borderless entry reads as a bare label. */ | ||
| 110 | +entry, | ||
| 111 | +spinbutton, | ||
| 112 | +spinbutton entry { | ||
| 106 | background-color: mix({{background}}, {{color1}}, 0.3); | 113 | background-color: mix({{background}}, {{color1}}, 0.3); |
| 107 | color: {{foreground}}; | 114 | color: {{foreground}}; |
| 115 | + border: 1px solid mix({{background}}, {{color1}}, 0.6); | ||
| 116 | + border-radius: 6px; | ||
| 117 | +} | ||
| 118 | + | ||
| 119 | +entry:focus, | ||
| 120 | +entry:focus-within, | ||
| 121 | +spinbutton:focus-within { | ||
| 122 | + border-color: mix({{color4}}, {{foreground}}, 0.3); | ||
| 123 | +} | ||
| 124 | + | ||
| 125 | +/* List/tree headers must not take the generic button surface below. */ | ||
| 126 | +treeview.view header button, | ||
| 127 | +treeview.view header button:hover, | ||
| 128 | +columnview header button, | ||
| 129 | +.view header button { | ||
| 130 | + background-color: transparent; | ||
| 131 | + background-image: none; | ||
| 132 | + box-shadow: none; | ||
| 133 | + border: none; | ||
| 134 | + border-bottom: 1px solid mix({{background}}, {{color1}}, 0.5); | ||
| 135 | + border-right: 1px solid mix({{background}}, {{color1}}, 0.5); | ||
| 136 | +} | ||
| 137 | + | ||
| 138 | +/* Disabled affordance. Our sheet loads at PRIORITY_USER, and GTK resolves | ||
| 139 | + provider priority before specificity, so the `* { color }` rule above beats | ||
| 140 | + every Adwaita :disabled rule — disabled widgets have to be restated here. */ | ||
| 141 | +*:disabled, | ||
| 142 | +label:disabled, | ||
| 143 | +button:disabled, | ||
| 144 | +button:disabled label, | ||
| 145 | +menuitem:disabled, | ||
| 146 | +menuitem:disabled label, | ||
| 147 | +entry:disabled, | ||
| 148 | +spinbutton:disabled, | ||
| 149 | +combobox:disabled, | ||
| 150 | +checkbutton:disabled, | ||
| 151 | +radiobutton:disabled { | ||
| 152 | + color: {{color8}}; | ||
| 153 | +} | ||
| 154 | + | ||
| 155 | +button:disabled, | ||
| 156 | +button.text-button:disabled, | ||
| 157 | +button.image-button:disabled, | ||
| 158 | +headerbar button:disabled { | ||
| 159 | + background-color: mix({{background}}, {{color1}}, 0.4); | ||
| 160 | + background-image: none; | ||
| 161 | + border-color: mix({{background}}, {{color1}}, 0.45); | ||
| 162 | +} | ||
| 163 | + | ||
| 164 | +entry:disabled, | ||
| 165 | +spinbutton:disabled, | ||
| 166 | +spinbutton entry:disabled { | ||
| 167 | + background-color: mix({{background}}, {{color1}}, 0.25); | ||
| 168 | + border-color: mix({{background}}, {{color1}}, 0.45); | ||
| 169 | +} | ||
| 170 | + | ||
| 171 | +/* Level bars otherwise fall back to Adwaita's blue. */ | ||
| 172 | +levelbar trough, | ||
| 173 | +levelbar block.empty { | ||
| 174 | + background-color: mix({{background}}, {{color1}}, 0.4); | ||
| 175 | + border-color: mix({{background}}, {{color1}}, 0.5); | ||
| 176 | +} | ||
| 177 | + | ||
| 178 | +levelbar block, | ||
| 179 | +levelbar block.filled, | ||
| 180 | +levelbar block.full, | ||
| 181 | +levelbar block.high { | ||
| 182 | + background-color: mix({{color4}}, {{foreground}}, 0.3); | ||
| 183 | + border-color: mix({{color4}}, {{foreground}}, 0.3); | ||
| 184 | +} | ||
| 185 | + | ||
| 186 | +levelbar block.low { | ||
| 187 | + background-color: mix(#f5c211, {{color3}}, 0.3); | ||
| 188 | + border-color: mix(#f5c211, {{color3}}, 0.3); | ||
| 108 | } | 189 | } |
| 109 | 190 | ||
| 110 | button, | 191 | button, |
| @@ -165,10 +246,10 @@ button.suggested-action { | |||
| 165 | } | 246 | } |
| 166 | 247 | ||
| 167 | button.destructive-action { | 248 | button.destructive-action { |
| 168 | - background-color: mix({{color1}}, {{foreground}}, 0.3); | 249 | + background-color: mix(#e01b24, {{color1}}, 0.3); |
| 169 | background-image: none; | 250 | background-image: none; |
| 170 | color: {{color15}}; | 251 | color: {{color15}}; |
| 171 | - border-color: mix({{color1}}, {{foreground}}, 0.3); | 252 | + border-color: mix(#e01b24, {{color1}}, 0.3); |
| 172 | box-shadow: none; | 253 | box-shadow: none; |
| 173 | } | 254 | } |
| 174 | 255 | ||
| @@ -183,9 +264,31 @@ tooltip { | |||
| 183 | color: {{foreground}}; | 264 | color: {{foreground}}; |
| 184 | } | 265 | } |
| 185 | 266 | ||
| 186 | -menu { | 267 | +/* Popovers/menus float over content, so they need their own surface AND a |
| 268 | + visible edge — the `.background` rule above otherwise gives them exactly the | ||
| 269 | + window color and they read as if they had no frame at all. */ | ||
| 270 | +menu, | ||
| 271 | +popover, | ||
| 272 | +popover.background, | ||
| 273 | +popover.background > contents, | ||
| 274 | +popover > contents { | ||
| 187 | background-color: mix({{background}}, {{color1}}, 0.4); | 275 | background-color: mix({{background}}, {{color1}}, 0.4); |
| 188 | color: {{foreground}}; | 276 | color: {{foreground}}; |
| 277 | + border: 1px solid mix({{background}}, {{color1}}, 0.6); | ||
| 278 | + border-radius: 8px; | ||
| 279 | +} | ||
| 280 | + | ||
| 281 | +popover modelbutton:hover, | ||
| 282 | +popover .menuitem:hover, | ||
| 283 | +popover button:hover { | ||
| 284 | + background-color: mix({{background}}, {{color1}}, 0.55); | ||
| 285 | + color: {{foreground}}; | ||
| 286 | +} | ||
| 287 | + | ||
| 288 | +tooltip.background, | ||
| 289 | +tooltip.background > box { | ||
| 290 | + border: 1px solid mix({{background}}, {{color1}}, 0.6); | ||
| 291 | + border-radius: 6px; | ||
| 189 | } | 292 | } |
| 190 | 293 | ||
| 191 | menuitem:hover { | 294 | menuitem:hover { |
.config/wallust/templates/gtk4.cssmodified+81 -19
| @@ -3,21 +3,24 @@ | |||
| 3 | @define-color accent_fg_color {{color15}}; | 3 | @define-color accent_fg_color {{color15}}; |
| 4 | @define-color accent_color mix({{color4}}, {{foreground}}, 0.3); | 4 | @define-color accent_color mix({{color4}}, {{foreground}}, 0.3); |
| 5 | 5 | ||
| 6 | -@define-color destructive_bg_color mix({{color1}}, {{foreground}}, 0.3); | 6 | +/* Semantic colors keep their canonical hue and only take a palette tint: |
| 7 | + straight {{color1}}/{{color3}} made "destructive"/"error" brown and "warning" | ||
| 8 | + blue, i.e. the status signal was lost. */ | ||
| 9 | +@define-color destructive_bg_color mix(#e01b24, {{color1}}, 0.3); | ||
| 7 | @define-color destructive_fg_color {{color15}}; | 10 | @define-color destructive_fg_color {{color15}}; |
| 8 | -@define-color destructive_color mix({{color1}}, {{foreground}}, 0.3); | 11 | +@define-color destructive_color mix(#e01b24, {{color1}}, 0.3); |
| 9 | 12 | ||
| 10 | -@define-color success_bg_color {{color2}}; | 13 | +@define-color success_bg_color mix(#2ec27e, {{color2}}, 0.3); |
| 11 | @define-color success_fg_color {{color15}}; | 14 | @define-color success_fg_color {{color15}}; |
| 12 | -@define-color success_color {{color2}}; | 15 | +@define-color success_color mix(#2ec27e, {{color2}}, 0.3); |
| 13 | 16 | ||
| 14 | -@define-color warning_bg_color {{color3}}; | 17 | +@define-color warning_bg_color mix(#f5c211, {{color3}}, 0.3); |
| 15 | @define-color warning_fg_color {{background}}; | 18 | @define-color warning_fg_color {{background}}; |
| 16 | -@define-color warning_color {{color3}}; | 19 | +@define-color warning_color mix(#f5c211, {{color3}}, 0.3); |
| 17 | 20 | ||
| 18 | -@define-color error_bg_color mix({{color1}}, {{foreground}}, 0.3); | 21 | +@define-color error_bg_color mix(#e01b24, {{color1}}, 0.3); |
| 19 | @define-color error_fg_color {{color15}}; | 22 | @define-color error_fg_color {{color15}}; |
| 20 | -@define-color error_color mix({{color1}}, {{foreground}}, 0.3); | 23 | +@define-color error_color mix(#e01b24, {{color1}}, 0.3); |
| 21 | 24 | ||
| 22 | @define-color window_bg_color mix({{background}}, {{color1}}, 0.35); | 25 | @define-color window_bg_color mix({{background}}, {{color1}}, 0.35); |
| 23 | @define-color window_fg_color {{foreground}}; | 26 | @define-color window_fg_color {{foreground}}; |
| @@ -56,7 +59,9 @@ headerbar { | |||
| 56 | color: {{foreground}}; | 59 | color: {{foreground}}; |
| 57 | } | 60 | } |
| 58 | 61 | ||
| 59 | -.view, list, row, treeview { | 62 | +/* NOTE: no bare `row` here — `row` also matches GtkListItemWidget inside |
| 63 | + dropdowns/popovers, which paints an opaque box behind their labels. */ | ||
| 64 | +.view, list, treeview { | ||
| 60 | background-color: mix({{background}}, {{color1}}, 0.3); | 65 | background-color: mix({{background}}, {{color1}}, 0.3); |
| 61 | color: {{foreground}}; | 66 | color: {{foreground}}; |
| 62 | } | 67 | } |
| @@ -89,9 +94,10 @@ modelbutton:active { | |||
| 89 | background-color: alpha({{foreground}}, 0.15); | 94 | background-color: alpha({{foreground}}, 0.15); |
| 90 | } | 95 | } |
| 91 | 96 | ||
| 97 | +/* NOTE: `.toolbar` is padding-only in Adwaita. Giving it a background paints | ||
| 98 | + opaque blocks over AdwToolbarView bottom bars (e.g. the nautilus file | ||
| 99 | + chooser action bar), so it is deliberately absent here. */ | ||
| 92 | .osd, | 100 | .osd, |
| 93 | -.toolbar, | ||
| 94 | -box.toolbar, | ||
| 95 | .background.osd, | 101 | .background.osd, |
| 96 | .flat-style-toolbar { | 102 | .flat-style-toolbar { |
| 97 | background-color: mix({{background}}, {{color1}}, 0.4); | 103 | background-color: mix({{background}}, {{color1}}, 0.4); |
| @@ -107,9 +113,6 @@ viewswitcher button, | |||
| 107 | stackswitcher, | 113 | stackswitcher, |
| 108 | stackswitcher button, | 114 | stackswitcher button, |
| 109 | .stack-switcher button, | 115 | .stack-switcher button, |
| 110 | -columnview header, | ||
| 111 | -columnview header button, | ||
| 112 | -treeview.view header button, | ||
| 113 | header.view { | 116 | header.view { |
| 114 | background-color: mix({{background}}, {{color1}}, 0.4); | 117 | background-color: mix({{background}}, {{color1}}, 0.4); |
| 115 | background-image: none; | 118 | background-image: none; |
| @@ -118,6 +121,17 @@ header.view { | |||
| 118 | box-shadow: none; | 121 | box-shadow: none; |
| 119 | } | 122 | } |
| 120 | 123 | ||
| 124 | +/* List/column headers sit on the view background upstream, separator only. | ||
| 125 | + A raised band here reads as a stray strip under the header bar. */ | ||
| 126 | +columnview header, | ||
| 127 | +columnview > header, | ||
| 128 | +treeview.view header { | ||
| 129 | + background-color: transparent; | ||
| 130 | + background-image: none; | ||
| 131 | + box-shadow: none; | ||
| 132 | + border-bottom: 1px solid mix({{background}}, {{color1}}, 0.5); | ||
| 133 | +} | ||
| 134 | + | ||
| 121 | stackswitcher button:checked, | 135 | stackswitcher button:checked, |
| 122 | viewswitcher button:checked, | 136 | viewswitcher button:checked, |
| 123 | .stack-switcher button:checked { | 137 | .stack-switcher button:checked { |
| @@ -164,7 +178,7 @@ dialog button.suggested-action { | |||
| 164 | button.destructive-action, | 178 | button.destructive-action, |
| 165 | .dialog-action-area button.destructive-action, | 179 | .dialog-action-area button.destructive-action, |
| 166 | dialog button.destructive-action { | 180 | dialog button.destructive-action { |
| 167 | - background-color: mix({{color1}}, {{foreground}}, 0.3); | 181 | + background-color: mix(#e01b24, {{color1}}, 0.3); |
| 168 | background-image: none; | 182 | background-image: none; |
| 169 | color: {{color15}}; | 183 | color: {{color15}}; |
| 170 | box-shadow: none; | 184 | box-shadow: none; |
| @@ -191,7 +205,7 @@ messagedialog button.suggested-action { | |||
| 191 | dialog button.destructive-action, | 205 | dialog button.destructive-action, |
| 192 | .dialog-action-area button.destructive-action, | 206 | .dialog-action-area button.destructive-action, |
| 193 | messagedialog button.destructive-action { | 207 | messagedialog button.destructive-action { |
| 194 | - background-color: mix({{color1}}, {{foreground}}, 0.3); | 208 | + background-color: mix(#e01b24, {{color1}}, 0.3); |
| 195 | color: {{color15}}; | 209 | color: {{color15}}; |
| 196 | } | 210 | } |
| 197 | 211 | ||
| @@ -203,9 +217,9 @@ spinbutton text, | |||
| 203 | combobox, | 217 | combobox, |
| 204 | combobox button, | 218 | combobox button, |
| 205 | combobox entry, | 219 | combobox entry, |
| 206 | -dropdown, | 220 | +dropdown:not(.flat-dropdown), |
| 207 | -dropdown button, | 221 | +dropdown:not(.flat-dropdown) button, |
| 208 | -dropdown > button, | 222 | +dropdown:not(.flat-dropdown) > button, |
| 209 | fontbutton, | 223 | fontbutton, |
| 210 | fontbutton button, | 224 | fontbutton button, |
| 211 | filechooserbutton, | 225 | filechooserbutton, |
| @@ -338,3 +352,51 @@ progressbar progress { | |||
| 338 | background-color: mix({{color4}}, {{foreground}}, 0.3); | 352 | background-color: mix({{color4}}, {{foreground}}, 0.3); |
| 339 | background-image: none; | 353 | background-image: none; |
| 340 | } | 354 | } |
| 355 | + | ||
| 356 | +/* Chrome buttons (header bars, nautilus path bar, list headers) must stay flat: | ||
| 357 | + the generic `button:not(...)` rule above otherwise paints a card surface over | ||
| 358 | + the app's own flat styling, since our CSS loads at PRIORITY_USER and beats the | ||
| 359 | + app's gresource CSS. The :not() chains exist only to out-specify it. */ | ||
| 360 | +headerbar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 361 | +windowhandle button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 362 | +.titlebar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 363 | +.nautilus-pathbar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 364 | +button.nautilus-path-button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 365 | +columnview header button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 366 | +treeview.view header button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked), | ||
| 367 | +header.view button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked) { | ||
| 368 | + background-color: transparent; | ||
| 369 | + background-image: none; | ||
| 370 | + border: none; | ||
| 371 | + box-shadow: none; | ||
| 372 | +} | ||
| 373 | + | ||
| 374 | +headerbar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 375 | +windowhandle button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 376 | +.titlebar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 377 | +.nautilus-pathbar button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 378 | +button.nautilus-path-button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 379 | +columnview header button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 380 | +treeview.view header button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover, | ||
| 381 | +header.view button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):not(:checked):hover { | ||
| 382 | + background-color: alpha({{foreground}}, 0.10); | ||
| 383 | +} | ||
| 384 | + | ||
| 385 | +/* Flat dropdowns (nautilus file chooser filter). The :not() chain only exists | ||
| 386 | + to out-specify the generic `button:not(...)` rule above. */ | ||
| 387 | +dropdown.flat-dropdown > button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action) { | ||
| 388 | + background-color: transparent; | ||
| 389 | + background-image: none; | ||
| 390 | + border: none; | ||
| 391 | + box-shadow: none; | ||
| 392 | +} | ||
| 393 | + | ||
| 394 | +dropdown.flat-dropdown > button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):hover { | ||
| 395 | + background-color: alpha({{foreground}}, 0.08); | ||
| 396 | +} | ||
| 397 | + | ||
| 398 | +dropdown.flat-dropdown > button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):checked, | ||
| 399 | +dropdown.flat-dropdown > button:not(.color):not(.colorsetter):not(.flat):not(.image-button):not(.suggested-action):not(.destructive-action):active { | ||
| 400 | + background-color: alpha({{foreground}}, 0.14); | ||
| 401 | + color: {{foreground}}; | ||
| 402 | +} | ||
.config/wallust/templates/kdeglobalsadded+71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | +[KDE] | ||
| 2 | +widgetStyle=qt6ct-style | ||
| 3 | + | ||
| 4 | +[General] | ||
| 5 | +ColorScheme=Wallust | ||
| 6 | + | ||
| 7 | +[Colors:Window] | ||
| 8 | +BackgroundNormal=mix({{background}}, {{color1}}, 0.35) | ||
| 9 | +BackgroundAlternate=mix({{background}}, {{color1}}, 0.40) | ||
| 10 | +ForegroundNormal={{foreground}} | ||
| 11 | +ForegroundActive={{foreground}} | ||
| 12 | +ForegroundInactive={{color8}} | ||
| 13 | +ForegroundLink=mix({{color4}}, {{foreground}}, 0.75) | ||
| 14 | +ForegroundVisited=mix({{color5}}, {{foreground}}, 0.6) | ||
| 15 | +ForegroundNegative=mix(#e01b24, {{color1}}, 0.3) | ||
| 16 | +ForegroundNeutral=mix(#f5c211, {{color3}}, 0.3) | ||
| 17 | +ForegroundPositive=mix(#2ec27e, {{color2}}, 0.3) | ||
| 18 | +DecorationFocus=mix({{color4}}, {{foreground}}, 0.3) | ||
| 19 | +DecorationHover=mix({{color4}}, {{foreground}}, 0.3) | ||
| 20 | + | ||
| 21 | +[Colors:View] | ||
| 22 | +BackgroundNormal=mix({{background}}, {{color1}}, 0.30) | ||
| 23 | +BackgroundAlternate=mix({{background}}, {{color1}}, 0.35) | ||
| 24 | +ForegroundNormal={{foreground}} | ||
| 25 | +ForegroundActive={{foreground}} | ||
| 26 | +ForegroundInactive={{color8}} | ||
| 27 | +ForegroundLink=mix({{color4}}, {{foreground}}, 0.75) | ||
| 28 | +ForegroundVisited=mix({{color5}}, {{foreground}}, 0.6) | ||
| 29 | +ForegroundNegative=mix(#e01b24, {{color1}}, 0.3) | ||
| 30 | +ForegroundNeutral=mix(#f5c211, {{color3}}, 0.3) | ||
| 31 | +ForegroundPositive=mix(#2ec27e, {{color2}}, 0.3) | ||
| 32 | +DecorationFocus=mix({{color4}}, {{foreground}}, 0.3) | ||
| 33 | +DecorationHover=mix({{color4}}, {{foreground}}, 0.3) | ||
| 34 | + | ||
| 35 | +[Colors:Button] | ||
| 36 | +BackgroundNormal=mix({{background}}, {{color1}}, 0.45) | ||
| 37 | +BackgroundAlternate=mix({{background}}, {{color1}}, 0.55) | ||
| 38 | +ForegroundNormal={{foreground}} | ||
| 39 | +ForegroundActive={{foreground}} | ||
| 40 | +ForegroundInactive={{color8}} | ||
| 41 | +ForegroundLink=mix({{color4}}, {{foreground}}, 0.75) | ||
| 42 | +ForegroundVisited=mix({{color5}}, {{foreground}}, 0.6) | ||
| 43 | +ForegroundNegative=mix(#e01b24, {{color1}}, 0.3) | ||
| 44 | +ForegroundNeutral=mix(#f5c211, {{color3}}, 0.3) | ||
| 45 | +ForegroundPositive=mix(#2ec27e, {{color2}}, 0.3) | ||
| 46 | +DecorationFocus=mix({{color4}}, {{foreground}}, 0.3) | ||
| 47 | +DecorationHover=mix({{color4}}, {{foreground}}, 0.3) | ||
| 48 | + | ||
| 49 | +[Colors:Selection] | ||
| 50 | +BackgroundNormal=mix({{color4}}, {{foreground}}, 0.3) | ||
| 51 | +BackgroundAlternate=mix({{color4}}, {{foreground}}, 0.3) | ||
| 52 | +ForegroundNormal={{color15}} | ||
| 53 | +ForegroundActive={{color15}} | ||
| 54 | +ForegroundInactive={{color15}} | ||
| 55 | +ForegroundLink={{color15}} | ||
| 56 | +ForegroundVisited={{color15}} | ||
| 57 | +ForegroundNegative=mix(#e01b24, {{color1}}, 0.3) | ||
| 58 | +ForegroundNeutral=mix(#f5c211, {{color3}}, 0.3) | ||
| 59 | +ForegroundPositive=mix(#2ec27e, {{color2}}, 0.3) | ||
| 60 | +DecorationFocus=mix({{color4}}, {{foreground}}, 0.3) | ||
| 61 | +DecorationHover=mix({{color4}}, {{foreground}}, 0.3) | ||
| 62 | + | ||
| 63 | +[Colors:Tooltip] | ||
| 64 | +BackgroundNormal=mix({{background}}, {{color1}}, 0.40) | ||
| 65 | +BackgroundAlternate=mix({{background}}, {{color1}}, 0.40) | ||
| 66 | +ForegroundNormal={{foreground}} | ||
| 67 | + | ||
| 68 | +[Colors:Header] | ||
| 69 | +BackgroundNormal=mix({{background}}, {{color1}}, 0.40) | ||
| 70 | +BackgroundAlternate=mix({{background}}, {{color1}}, 0.40) | ||
| 71 | +ForegroundNormal={{foreground}} | ||
.config/wallust/templates/qt5ct-wallust.confmodified+3 -3
| @@ -1,4 +1,4 @@ | |||
| 1 | [ColorScheme] | 1 | [ColorScheme] |
| 2 | -active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 2 | +active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |
| 3 | -disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 3 | +disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |
| 4 | -inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 4 | +inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |
.config/wallust/templates/qt6ct-wallust.confmodified+3 -3
| @@ -1,4 +1,4 @@ | |||
| 1 | [ColorScheme] | 1 | [ColorScheme] |
| 2 | -active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 2 | +active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |
| 3 | -disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 3 | +disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |
| 4 | -inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}} | 4 | +inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, mix({{color4}}, {{foreground}}, 0.75), mix({{color5}}, {{foreground}}, 0.6), {{color1}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}} |