auto gtk theme, unique palette

This commit is contained in:
atagen 2023-06-16 19:44:53 +10:00
parent 2c2987e35f
commit 26fd86bc0a
5 changed files with 172 additions and 39 deletions

View file

@ -22,6 +22,7 @@ in {
clementine
inkscape
xfce.thunar
feh
zathura
@ -98,8 +99,8 @@ in {
gtk-theme.name
fonts.sans.name
icons.name
palette-shex.util.fg
palette-shex.normal.black
palette-shex.bright.yellow
palette-shex.util.bg
(builtins.toString borders.thickness)
(builtins.toString borders.rounding)
(builtins.toString borders.gaps_in)
@ -265,9 +266,9 @@ in {
"${pkgs.wlogout}/share/wlogout"
"${pkgs.wlogout}/etc/wlogout"
util.bg
util.fg
util.bg_sel
normal.yellow
normal.white
normal.black
normal.red
]
(builtins.readFile dots/wlogout/style.css));
};
@ -289,13 +290,13 @@ in {
radius = rounding;
};
colors = {
background = lib.strings.concatStrings [palette-hex.util.bg "FF"];
background = lib.strings.concatStrings [palette-hex.util.bg "A0"];
text = lib.strings.concatStrings [palette-hex.util.fg "FF"];
selection = lib.strings.concatStrings [palette-hex.util.bg_sel "FF"];
selection-text = lib.strings.concatStrings [palette-hex.bright.black "FF"];
selection-match = lib.strings.concatStrings [palette-hex.bright.green "FF"];
match = lib.strings.concatStrings [palette-hex.util.fg_sel "FF"];
border = lib.strings.concatStrings [palette-hex.util.fg "FF"];
selection = lib.strings.concatStrings [palette-hex.bright.yellow "FF"];
selection-text = lib.strings.concatStrings [palette-hex.util.bg "FF"];
selection-match = lib.strings.concatStrings [palette-hex.normal.green"FF"];
match = lib.strings.concatStrings [palette-hex.bright.green "FF"];
border = lib.strings.concatStrings [palette-hex.bright.yellow "FF"];
};
};
};
@ -341,8 +342,51 @@ in {
programs.helix = {
enable = true;
themes = with palette-hex; {
nix-rice = {
"ui.background" = { bg = util.bg; };
"ui.menu" = { fg = bright.cyan; bg = normal.black; };
"ui.menu.selected" = { modifiers = [ "reversed" ]; };
"ui.linenr" = { fg = bright.cyan; bg = normal.black; };
"ui.popup" = { bg = bright.black; };
"ui.linenr.selected" = { fg = normal.yellow; bg = normal.black; modifiers = [ "bold" ]; };
"ui.selection" = { fg = bright.yellow; bg = normal.blue; };
"ui.selection.primary" = { modifiers = [ "reversed" ]; };
"comment" = { fg = bright.magenta; modifiers = [ "italics" ]; };
"ui.statusline" = { fg = bright.cyan; bg = normal.black; };
"ui.statusline.inactive" = { modifiers = [ "reversed" ]; };
"ui.help" = { fg = normal.white; bg = bright.black; };
"ui.cursor" = { modifiers = [ "reversed" ]; };
"variable" = normal.green;
"variable.builtin" = normal.green;
"constant.numeric" = normal.blue;
"constant" = normal.cyan;
"attributes" = normal.yellow;
"type" = normal.yellow;
"ui.cursor.match" = { fg = normal.yellow; modifiers = [ "underlined" ]; };
"string" = normal.green;
"variable.other.member" = normal.red;
"constant.character.escape" = normal.cyan;
"function" = bright.blue;
"constructor" = normal.blue;
"special" = normal.blue;
"keyword" = normal.magenta;
"label" = normal.magenta;
"namespace" = normal.blue;
"diff.plus" = normal.green;
"diff.delta" = normal.yellow;
"diff.minus" = normal.red;
"diagnostic" = { modifiers = [ "underlined" ]; };
"ui.gutter" = { bg = normal.black; };
"info" = normal.blue;
"hint" = normal.magenta;
"debug" = normal.magenta;
"warning" = normal.yellow;
"error" = normal.red;
};
};
settings = {
theme = "everforest_dark";
theme = "nix-rice";
editor.lsp.display-messages = true;
};
};