From 02c7814ce43d0e868dacc8c783c211d88750bfa3 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Mon, 2 Dec 2024 20:49:33 +0100 Subject: [PATCH] better/less userChrome --- home-modules/email.nix | 28 +++++++++------------------- home-modules/firefox.nix | 11 +++++++++-- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/home-modules/email.nix b/home-modules/email.nix index b2a227c..36e9a98 100755 --- a/home-modules/email.nix +++ b/home-modules/email.nix @@ -9,14 +9,7 @@ lib.mkIf (host != "NxACE") programs.thunderbird = let inherit (lib.generators) toJSON; extensions = toJSON {} { - "default-theme@mozilla.org" = "5787f490-29b8-436e-a111-640da8590790"; - "google@search.mozilla.org" = "cc340383-7068-4b32-a10f-9f19334bfebc"; - "ddg@search.mozilla.org" = "0c340210-f7ab-48e8-9778-600ed5d00160"; - "amazondotcom@search.mozilla.org" = "881d8fdf-5772-4e33-81ff-faac2d1fa92c"; - "wikipedia@search.mozilla.org" = "7ea3d39d-3eea-430f-9bd7-f902d8124d45"; - "bing@search.mozilla.org" = "f480cce8-68af-4082-908e-f8996153352b"; "addon@darkreader.org" = "71d6c69d-55f9-4c56-888c-abdcf6efd73d"; - "lightningcalendartabs@jlx.84" = "12d48e41-412e-4d09-835a-fa6fb8c180eb"; }; in { enable = true; @@ -48,23 +41,20 @@ lib.mkIf (host != "NxACE") "mailnews.headers.showUserAgent" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; - userChrome = with rice.color; /* css */ '' - * { - color: ${rice.lib.hex-to-rgb-comma-string foreground} !important; - background-color: rgba(${rice.lib.hex-to-rgb-comma-string background}, ${builtins.toString rice.transparency}) !important; - border: none !important; - } - treechildren::-moz-tree-row(odd), treechildren::-moz-tree-row(even) { - background-color: rgba(${rice.lib.hex-to-rgb-comma-string background}, ${builtins.toString rice.transparency}) !important; - } - ''; + # 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; + # } + # ''; }; }; }; - accounts.email.accounts = - let + accounts.email.accounts = let OAuth2Settings = id: { "mail.smtpserver.smtp_${id}.authMethod" = 10; "mail.server.server_${id}.authMethod" = 10; diff --git a/home-modules/firefox.nix b/home-modules/firefox.nix index ebafb53..8895660 100644 --- a/home-modules/firefox.nix +++ b/home-modules/firefox.nix @@ -1,10 +1,11 @@ # { pkgs-unstable, secrets, user, system, inputs, ...}: { rice, user, ... }: # browser.tabs.allow_transparent_browser +# https://www.reddit.com/r/FirefoxCSS/comments/1dqws4b/firefox_128_will_allow_the_main_browser_content/ { home.file = with rice.color; let - blur = builtins.toString 20; - in { + blur = builtins.toString 20; + in { ".mozilla/firefox/${user}/chrome/userChrome.css".text = /* css */ '' :root{ /* Popup panels */ @@ -110,9 +111,15 @@ /* new-tab */ @-moz-document url-prefix(about:home), url-prefix(about:newtab) { + :root{ + --newtab-background-color-secondary: ${background} !important; + } body, html { background: transparent !important; } + .tile, .search-handoff-button { + border: ${builtins.toString rice.border-width}px solid ${border} !important; + } } @-moz-document domain(youtube.com) {