Yazi: Color variety for tabs.
This commit is contained in:
parent
b5a3bda4a0
commit
aee6f0d61e
|
@ -2,21 +2,21 @@
|
||||||
let
|
let
|
||||||
color = config.style.color;
|
color = config.style.color;
|
||||||
border = {
|
border = {
|
||||||
fg = "#${config.style.color.border}";
|
fg = "#${color.border}";
|
||||||
};
|
};
|
||||||
borderLight = {
|
borderLight = {
|
||||||
fg = "#${config.style.color.accent}";
|
fg = "#${color.accent}";
|
||||||
};
|
};
|
||||||
hover = {
|
hover = {
|
||||||
bg = "#${config.style.color.bg.regular}";
|
bg = "#${color.bg.regular}";
|
||||||
fg = "#${config.style.color.fg.light}";
|
fg = "#${color.fg.light}";
|
||||||
};
|
};
|
||||||
select = {
|
select = {
|
||||||
bg = "#${config.style.color.selection}";
|
bg = "#${color.selection}";
|
||||||
fg = "#${config.style.color.fg.dark}";
|
fg = "#${color.fg.dark}";
|
||||||
};
|
};
|
||||||
text = {
|
text = {
|
||||||
fg = "#${config.style.color.fg.light}";
|
fg = "#${color.fg.light}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -24,17 +24,22 @@ in
|
||||||
file = (pkgs.formats.toml { }).generate "YaziThemeConfig" {
|
file = (pkgs.formats.toml { }).generate "YaziThemeConfig" {
|
||||||
manager =
|
manager =
|
||||||
let
|
let
|
||||||
mkMarker = color: {
|
mkMarker = markerColor: {
|
||||||
bg = "#${color}";
|
bg = "#${markerColor}";
|
||||||
fg = "#${color}";
|
fg = "#${markerColor}";
|
||||||
|
};
|
||||||
|
|
||||||
|
mkCounter = counterColor: {
|
||||||
|
bg = "#${counterColor}";
|
||||||
|
fg = "#${color.fg.light}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
border_style = border;
|
border_style = border;
|
||||||
border_symbol = " ";
|
border_symbol = " ";
|
||||||
count_copied = hover;
|
count_copied = mkCounter color.positive;
|
||||||
count_cut = hover;
|
count_cut = mkCounter color.negative;
|
||||||
count_selected = hover;
|
count_selected = mkCounter color.neutral;
|
||||||
cwd = text;
|
cwd = text;
|
||||||
hovered = hover;
|
hovered = hover;
|
||||||
marker_copied = mkMarker color.accent;
|
marker_copied = mkMarker color.accent;
|
||||||
|
@ -42,7 +47,7 @@ in
|
||||||
marker_marked = mkMarker color.hl;
|
marker_marked = mkMarker color.hl;
|
||||||
marker_selected = mkMarker color.selection;
|
marker_selected = mkMarker color.selection;
|
||||||
preview_hovered = hover;
|
preview_hovered = hover;
|
||||||
tab_active = hover;
|
tab_active = mkCounter color.selection;
|
||||||
};
|
};
|
||||||
select = {
|
select = {
|
||||||
border = borderLight;
|
border = borderLight;
|
||||||
|
|
Loading…
Reference in a new issue