From 94559de7ae3ae05be45454935bb3c5b2cd31e18e Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sun, 19 Jan 2025 11:43:24 +0100 Subject: [PATCH] better thunderbird css --- home-modules/email.nix | 55 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/home-modules/email.nix b/home-modules/email.nix index 36e9a98..374837d 100755 --- a/home-modules/email.nix +++ b/home-modules/email.nix @@ -5,7 +5,6 @@ lib.mkIf (host != "NxACE") thunderbird ]; - programs.thunderbird = let inherit (lib.generators) toJSON; extensions = toJSON {} { @@ -41,20 +40,56 @@ lib.mkIf (host != "NxACE") "mailnews.headers.showUserAgent" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; - # userChrome = with rice.color; /* css */ '' - # * { - # color: ${foreground} !important; - # background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString 0.1}) !important; - # border: none !important; - # -moz-appearance: none !important; - # } - # ''; + userChrome = with rice.color; /* css */ '' + body, + #navigation-toolbox, + #calendarContent, + #calSidebar, + #tabpanelcontainer, + #spacesToolbar, + #tabs-toolbar, + #calMinimonth, + #primaryButtonSidePanel *, + .minimonth-week, + .multiday-header-corner, .day-column-heading, calendar-header-container, calendar-event-column, .multiday-hour-box, + #view-box, + #tabs-toolbar, + #status-bar, + .calview-toggle, + #calview-toggle-item, + #folderPaneHeaderBar, + #folderPane, + #threadPaneHeaderBar, + #threadTree, + #tabs-toolbar { + color: ${foreground} !important; + font-family: ${rice.font.base.name} !important; + background-color: transparent !important; + background-image: none !important; + border: none !important; + -moz-appearance: none !important; + } + .minimonth-nav-section { + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; + border: ${builtins.toString rice.border-width}px solid ${border}; + } + .button, + .button-primary, + .tab-content[selected] { + background-color: ${accent.base}; + color: ${background}; + background-image: none; + } + html { + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency}) !important; + } + ''; }; }; }; - accounts.email.accounts = let + accounts.email.accounts = let OAuth2Settings = id: { "mail.smtpserver.smtp_${id}.authMethod" = 10; "mail.server.server_${id}.authMethod" = 10;