Skip to content

Commit

Permalink
Apply dark mode to Qutebrowser (danth#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO authored and willemml committed Nov 24, 2023
1 parent 5c7f431 commit b5d5b8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/qutebrowser/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ 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);
};
};

fonts = let
Expand Down

0 comments on commit b5d5b8c

Please sign in to comment.