From 30e5f5041d07619dcc00de7bf2e8130983b1cf8c Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 12 Sep 2023 21:43:37 +0200 Subject: [PATCH] pinwheel: Remove hover effect of `waybar` workspace buttons --- hosts/pinwheel/modules/waybar/default.nix | 48 +++++++++++++++++------ 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/hosts/pinwheel/modules/waybar/default.nix b/hosts/pinwheel/modules/waybar/default.nix index ba82222..7faf8fb 100644 --- a/hosts/pinwheel/modules/waybar/default.nix +++ b/hosts/pinwheel/modules/waybar/default.nix @@ -38,19 +38,45 @@ }; }; - style = '' - #workspaces button.active { - background: red; - } + style = let + foreground = "#f9c22b"; + foreground-dim = "#a57b06"; + background = "#262626"; + in + '' + * { + margin-right: 2px; + } - window#waybar { - background-color: blue; - } + #workspaces button { + color: ${foreground-dim}; + background-color: ${background}; + border: none; + } - #custom-hello { - background-color: yellow; - } - ''; + #workspaces button:hover { + border-color: transparent; + background: none; + transition: none; + text-shadow: none; + box-shadow: none; + } + + #workspaces button.active { + color: ${foreground}; + background-color: ${background}; + } + + window#waybar { + color: ${foreground}; + background-color: ${background}; + } + + #custom-hello { + color: ${foreground}; + background-color: ${background}; + } + ''; }; }; }