From f10d4adca4d73daabf0c4bcc42761610c6602739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 14 Jun 2026 21:43:16 -0300 Subject: [PATCH] firefox: only use userChrome css for sway --- user/firefox.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/user/firefox.nix b/user/firefox.nix index 2cf2e43..9f8ceb2 100644 --- a/user/firefox.nix +++ b/user/firefox.nix @@ -1,10 +1,12 @@ { config, pkgs, + lib, ... }: let - inherit (config.my.theme) color; + inherit (config.my) theme desktop; + inherit (theme) color; bugfixedFirefox = pkgs.firefox-devedition-unwrapped // { requireSigning = false; @@ -133,7 +135,7 @@ in "devtools.chrome.enabled" = true; "devtools.debugger.remote-enabled" = true; }; - userChrome = '' + userChrome = lib.optionalString (color.type == "dark" && desktop == "sway") '' #sidebar-main { background-color: ${color.bg}; }