Firefox: Dont detect dark theme.

This commit is contained in:
Dmitry Voronin 2024-11-02 06:38:37 +03:00
parent f8735917b7
commit 8131dbd358
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 38 additions and 49 deletions

View file

@ -6,27 +6,27 @@ let
borderLight = { borderLight = {
fg = "#${config.style.color.accent}"; fg = "#${config.style.color.accent}";
}; };
hover = {
bg = "#${config.style.color.bg.regular}";
fg = "#${config.style.color.fg.light}";
};
select = {
bg = "#${config.style.color.selection}";
fg = "#${config.style.color.fg.dark}";
};
text = {
fg = "#${config.style.color.fg.light}";
};
in in
{ {
file = (pkgs.formats.toml { }).generate "YaziThemeConfig" { file = (pkgs.formats.toml { }).generate "YaziThemeConfig" {
manager = { manager = {
border_style = border; border_style = border;
border_symbol = " "; border_symbol = " ";
cwd = { cwd = text;
fg = "#${config.style.color.fg.light}"; hovered = hover;
# bg = "#${style.color.bg.regular}"; preview_hovered = hover;
}; tab_active = hover;
hovered = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
preview_hovered = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
tab_active = {
bg = "#${config.style.color.accent}";
};
}; };
select = { select = {
border = borderLight; border = borderLight;
@ -36,58 +36,47 @@ in
}; };
completion = { completion = {
border = borderLight; border = borderLight;
active = hover;
inactive = text;
}; };
tasks = { tasks = {
border = borderLight; border = borderLight;
}; };
which = {
cand = text;
cols = 3;
desc = text;
mask = hover;
rest = text;
separator = "=>";
separator_style = text;
};
status = { status = {
separator_open = ""; mode_normal = hover;
mode_select = select;
permissions_r = text;
permissions_s = text;
permissions_t = text;
permissions_w = text;
permissions_x = text;
progress_label = hover;
progress_normal = hover;
separator_close = ""; separator_close = "";
separator_open = "";
# NOTE: Inversed because yazi dev is fckin weird. Also add manpages ffs. # NOTE: Inversed because yazi dev is fckin weird. Also add manpages ffs.
separator_style = { separator_style = {
bg = "#${config.style.color.fg.light}"; bg = "#${config.style.color.fg.light}";
fg = "#${config.style.color.bg.regular}"; fg = "#${config.style.color.bg.regular}";
}; };
mode_normal = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
mode_select = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.selection}";
};
mode_unset = { mode_unset = {
fg = "#${config.style.color.fg.light}"; fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.neutral}"; bg = "#${config.style.color.neutral}";
}; };
progress_label = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
progress_normal = {
fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.bg.regular}";
};
progress_error = { progress_error = {
fg = "#${config.style.color.fg.light}"; fg = "#${config.style.color.fg.light}";
bg = "#${config.style.color.negative}"; bg = "#${config.style.color.negative}";
}; };
permissions_t = {
fg = "#${config.style.color.fg.light}";
};
permissions_r = {
fg = "#${config.style.color.fg.light}";
};
permissions_w = {
fg = "#${config.style.color.fg.light}";
};
permissions_x = {
fg = "#${config.style.color.fg.light}";
};
permissions_s = {
fg = "#${config.style.color.fg.light}";
};
}; };
}; };
} }

View file

@ -274,8 +274,8 @@ in
enabled = true; enabled = true;
enabledByDefault = true; enabledByDefault = true;
changeBrowserTheme = false; changeBrowserTheme = false;
detectDarkTheme = true; detectDarkTheme = false;
enableContextMenus = true; enableContextMenus = false;
enableForPDF = true; enableForPDF = true;
enableForProtectedPages = false; enableForProtectedPages = false;
fetchNews = false; fetchNews = false;