2023-01-30 21:56:57 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with config.stylix.fonts;
|
|
|
|
with config.lib.stylix.colors.withHashtag;
|
|
|
|
|
|
|
|
let
|
|
|
|
background = base00;
|
|
|
|
secondary-background = base01;
|
|
|
|
selection-background = base03;
|
|
|
|
foreground = base05;
|
|
|
|
inverted-foreground = base00;
|
|
|
|
info = base0B;
|
|
|
|
secondary-info = base0C;
|
|
|
|
warning = base0E;
|
|
|
|
error = base08;
|
|
|
|
|
|
|
|
in {
|
|
|
|
options.stylix.targets.qutebrowser.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "Qutebrowser" true;
|
|
|
|
|
|
|
|
config = lib.mkIf config.stylix.targets.qutebrowser.enable {
|
|
|
|
programs.qutebrowser.settings = {
|
|
|
|
hints.border = background;
|
|
|
|
colors = {
|
|
|
|
completion = {
|
|
|
|
fg = foreground;
|
|
|
|
odd.bg = secondary-background;
|
|
|
|
even.bg = background;
|
|
|
|
match.fg = info;
|
|
|
|
category = {
|
|
|
|
fg = info;
|
|
|
|
bg = background;
|
|
|
|
border.top = background;
|
|
|
|
border.bottom = background;
|
|
|
|
};
|
|
|
|
item.selected = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
border.top = selection-background;
|
|
|
|
border.bottom = selection-background;
|
|
|
|
};
|
|
|
|
scrollbar = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
contextmenu = {
|
|
|
|
disabled = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = secondary-background;
|
|
|
|
};
|
|
|
|
menu = {
|
|
|
|
bg = background;
|
|
|
|
fg = foreground;
|
|
|
|
};
|
|
|
|
selected = {
|
|
|
|
bg = selection-background;
|
|
|
|
fg = foreground;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
downloads = {
|
|
|
|
bar.bg = background;
|
|
|
|
start = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = info;
|
|
|
|
};
|
|
|
|
stop = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = secondary-info;
|
|
|
|
};
|
|
|
|
error = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = error;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hints = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = secondary-background;
|
|
|
|
match.fg = info;
|
|
|
|
};
|
|
|
|
keyhint = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
suffix.fg = foreground;
|
|
|
|
};
|
|
|
|
messages = {
|
|
|
|
error = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = error;
|
|
|
|
border = error;
|
|
|
|
};
|
|
|
|
warning = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = warning;
|
|
|
|
border = warning;
|
|
|
|
};
|
|
|
|
info = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = info;
|
|
|
|
border = info;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
prompts = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
border = background;
|
|
|
|
selected.bg = secondary-background;
|
|
|
|
};
|
|
|
|
statusbar = {
|
|
|
|
normal = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
};
|
|
|
|
insert = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = info;
|
|
|
|
};
|
|
|
|
passthrough = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = secondary-info;
|
|
|
|
};
|
|
|
|
private = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = secondary-background;
|
|
|
|
};
|
|
|
|
command = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
private = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = secondary-background;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
caret = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
selection = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
progress.bg = info;
|
|
|
|
url = {
|
|
|
|
fg = foreground;
|
|
|
|
error.fg = error;
|
|
|
|
hover.fg = foreground;
|
|
|
|
success.http.fg = secondary-info;
|
|
|
|
success.https.fg = info;
|
|
|
|
warn.fg = warning;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
tabs = {
|
|
|
|
bar.bg = background;
|
|
|
|
indicator = {
|
|
|
|
start = secondary-info;
|
|
|
|
stop = info;
|
|
|
|
error = error;
|
|
|
|
};
|
|
|
|
odd = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = background;
|
|
|
|
};
|
|
|
|
even = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = secondary-background;
|
|
|
|
};
|
|
|
|
pinned = {
|
|
|
|
even = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = info;
|
|
|
|
};
|
|
|
|
odd = {
|
|
|
|
fg = inverted-foreground;
|
|
|
|
bg = secondary-info;
|
|
|
|
};
|
|
|
|
selected = {
|
|
|
|
even = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
};
|
|
|
|
odd = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
selected = {
|
|
|
|
even = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
};
|
|
|
|
odd = {
|
|
|
|
fg = foreground;
|
|
|
|
bg = selection-background;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-22 18:24:34 +00:00
|
|
|
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);
|
|
|
|
};
|
2023-01-30 21:56:57 +00:00
|
|
|
};
|
|
|
|
|
2023-03-19 18:39:32 +00:00
|
|
|
fonts = let
|
|
|
|
mkFont = name: "${name} ${toString sizes.applications}pt";
|
|
|
|
in {
|
|
|
|
default_family = mkFont sansSerif.name;
|
2023-01-30 21:56:57 +00:00
|
|
|
web.family = {
|
2023-03-19 18:39:32 +00:00
|
|
|
cursive = mkFont serif.name;
|
|
|
|
fantasy = mkFont serif.name;
|
|
|
|
fixed = mkFont monospace.name;
|
|
|
|
sans_serif = mkFont sansSerif.name;
|
|
|
|
serif = mkFont serif.name;
|
|
|
|
standard = mkFont sansSerif.name;
|
2023-01-30 21:56:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|