Skip to content

Commit

Permalink
Apply dark mode to Qutebrowser (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO authored Oct 22, 2023
1 parent 71c2eb2 commit 9e88d05
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 9e88d05

Please sign in to comment.