11.stylix/modules/firefox/reader-mode.nix
0xda157 477c504322
zen-browser: add reader mode support (#2157)
Link: https://github.com/nix-community/stylix/pull/2157

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2026-01-28 15:26:40 +01:00

15 lines
576 B
Nix

# NOTE: also used by /modules/zen-browser
{ name, lib }:
{ cfg, colors }:
{
programs.${name}.profiles = lib.genAttrs cfg.profileNames (_: {
settings = {
"reader.color_scheme" = "custom";
"reader.custom_colors.background" = colors.withHashtag.base00;
"reader.custom_colors.foreground" = colors.withHashtag.base05;
"reader.custom_colors.selection-highlight" = colors.withHashtag.base04;
"reader.custom_colors.unvisited-links" = colors.withHashtag.base0D;
"reader.custom_colors.visited-links" = colors.withHashtag.base0E;
};
});
}