From 6c8b77a7f5c1ff7059c4b6d749ace3b6f083e4bb Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Mon, 5 May 2025 17:04:35 +0700 Subject: [PATCH] qutebrowser: do not enable darkmode (#1184) Closes: https://github.com/danth/stylix/issues/1183 Link: https://github.com/danth/stylix/pull/1184 Reviewed-by: awwpotato Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/qutebrowser/hm.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/qutebrowser/hm.nix b/modules/qutebrowser/hm.nix index 2b89cbe5..6124b4b5 100644 --- a/modules/qutebrowser/hm.nix +++ b/modules/qutebrowser/hm.nix @@ -246,15 +246,9 @@ in }; }; - webpage = - let - isDark = config.stylix.polarity == "dark"; - in - { - darkmode.enabled = lib.mkIf isDark (lib.mkDefault true); - - preferred_color_scheme = lib.mkIf isDark (lib.mkDefault config.stylix.polarity); - }; + webpage.preferred_color_scheme = lib.mkIf (config.stylix.polarity == "dark") ( + lib.mkDefault config.stylix.polarity + ); }; fonts = {