From 824c886686270081caf7f57dfaa2197710118560 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 11:59:35 +0100 Subject: ... --- accounts/gkleen@sif/niri/swayosd.nix | 46 +++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 17 deletions(-) (limited to 'accounts/gkleen@sif/niri/swayosd.nix') diff --git a/accounts/gkleen@sif/niri/swayosd.nix b/accounts/gkleen@sif/niri/swayosd.nix index 8e410b5a..984927c2 100644 --- a/accounts/gkleen@sif/niri/swayosd.nix +++ b/accounts/gkleen@sif/niri/swayosd.nix @@ -19,11 +19,11 @@ image, label { color: rgb(255, 255, 255); - } - progressbar:disabled, - image:disabled { - opacity: rgb(84, 84, 84); + &:disabled { + opacity: 1; + color: rgb(84, 84, 84); + } } progressbar { @@ -31,23 +31,35 @@ border-radius: 999px; background: transparent; border: none; - } - trough { - min-height: inherit; - border-radius: inherit; - border: none; - background: rgb(127, 127, 127); - } - progress { - min-height: inherit; - border-radius: inherit; - border: none; - background: rgb(255, 255, 255); + + trough, progress { + min-height: inherit; + border-radius: inherit; + border: none; + } + + trough { + background: rgb(127, 127, 127); + } + progress { + background: rgb(255, 255, 255); + } + + &:disabled { + opacity: 1; + + trough { + background: rgb(19, 19, 19); + } + progress { + background: rgb(38, 38, 38); + } + } } } ''; buildInputs = with pkgs; [sass]; - } "scss -C --sourcemap=none $src $out"; + } "scss -C --sourcemap=none --style=compact $src $out"; }; }; } -- cgit v1.2.3