From 7f7fc327fd74370222df4b200f62234714c3a04e Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 24 Jul 2026 08:51:24 -0400 Subject: [PATCH] fix(firefox): darken the unreadable address-bar result highlight (task 0032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stylix's Nord Firefox Color mapping paints the selected address-bar result in base04, a near-white grey, against base05 text — light on light, so the text of the highlighted result is illegible. Override that one highlight to the Nord selection grey (base03), derived from the same Stylix scheme, restoring contrast without touching the rest of the theme. --- modules/desktop/firefox.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/desktop/firefox.nix b/modules/desktop/firefox.nix index 8987d5a..d86d7f9 100644 --- a/modules/desktop/firefox.nix +++ b/modules/desktop/firefox.nix @@ -51,6 +51,19 @@ in # owns the extension-settings store, overwriting runtime changes to it. extensions.force = true; + # Stylix's Nord mapping paints the selected address-bar result a + # near-white grey, leaving its light text unreadable. Darken that one + # highlight to the Nord selection grey, from the same scheme. + extensions.settings."FirefoxColor@mozilla.com".settings.theme.colors.popup_highlight = + let + c = hm.config.lib.stylix.colors; + in + lib.mkForce { + r = c."base03-rgb-r"; + g = c."base03-rgb-g"; + b = c."base03-rgb-b"; + }; + settings = { # Auto-enable the sideloaded Firefox Color add-on that carries the # Nord chrome theme, which Firefox otherwise leaves disabled.