From eca87c74a66ad14a12ff2c01874b5262a49deabc Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 24 Jul 2026 14:47:49 -0400 Subject: [PATCH] fix(firefox): scale the browser to 1.25x on the high-DPI panel Left at auto, Firefox reads the panel's 1.5x and inflates its whole chrome while point-sized apps stay put. Pin devPixelsPerPx a shade under that so the UI and pages match without dropping to a too-small 1:1. --- modules/desktop/firefox.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/desktop/firefox.nix b/modules/desktop/firefox.nix index d86d7f9..ed9e5b6 100644 --- a/modules/desktop/firefox.nix +++ b/modules/desktop/firefox.nix @@ -65,6 +65,13 @@ in }; settings = { + # Scale the UI and page by a fixed factor. Left at auto (-1), + # Firefox reads the panel's 1.5x and inflates its whole chrome on + # this display while point-sized apps stay put; a shade under that + # brings it into line without dropping to true 1:1, which reads too + # small at this DPI. + "layout.css.devPixelsPerPx" = "1.25"; + # Auto-enable the sideloaded Firefox Color add-on that carries the # Nord chrome theme, which Firefox otherwise leaves disabled. # The functional extensions come through policy and are unaffected.