diff --git a/user/firefox.nix b/user/firefox.nix index 7d8d65f..5e38a56 100644 --- a/user/firefox.nix +++ b/user/firefox.nix @@ -2,15 +2,22 @@ config, pkgs, lib, - font, ... }: let - inherit (config.my) desktop browser; + inherit (config.my) desktop; + inherit (config.my.theme) color; + bugfixedFirefox = pkgs.firefox-devedition-unwrapped // { requireSigning = false; allowAddonSideload = true; }; + + swayCustomization = '' + #titlebar { display: none !important; } + #TabsToolbar { display: none !important; } + #sidebar-header { display: none !important; } + ''; in { config = { @@ -119,15 +126,17 @@ in "devtools.chrome.enabled" = true; "devtools.debugger.remote-enabled" = true; }; - userChrome = - if desktop == "sway" then - '' - #titlebar { display: none !important; } - #TabsToolbar { display: none !important; } - #sidebar-header { display: none !important; } - '' - else - ""; + userChrome = '' + ${lib.optionalString (desktop == "sway") swayCustomization} + + #sidebar-main { + background-color: ${color.bg}; + } + + #tabbrowser-tabbox { + outline-width: 0 !important; + } + ''; }; }; };