Yazi : Style with Stylix.

This commit is contained in:
Dmitry Voronin 2024-06-23 01:23:43 +03:00
parent d7b209fb76
commit 7057630722
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 32 additions and 0 deletions

View file

@ -39,6 +39,7 @@ in {
".config/mako/config".source = mako.file;
".config/yazi/init.lua".source = yazi.init;
".config/yazi/keymap.toml".source = yazi.keymap;
".config/yazi/theme.toml".source = yazi.theme;
".config/yazi/yazi.toml".source = yazi.yazi;
".editorconfig".source = editor.file;
".parallel/will-cite".text = "";

View file

@ -1,5 +1,6 @@
{ pkgs, setting, util, ... } @args: {
init = (import ./module/Init.nix args).file;
keymap = (import ./module/Keymap.nix args).file;
theme = (import ./module/Theme.nix args).file;
yazi = (import ./module/Yazi.nix args).file;
}

View file

@ -0,0 +1,30 @@
{ pkgs, setting, style, ... }: let
border = {
fg = "#${style.color.border}";
};
in {
file = (pkgs.formats.toml {}).generate "YaziThemeConfig" {
manager = {
cwd = {
fg = "#${style.color.fg.light}";
bg = "#${style.color.bg.dark}";
};
hovered = {
fg = "#${style.color.fg.light}";
bg = "#${style.color.bg.dark}";
};
preview_hovered = {
fg = "#${style.color.fg.light}";
bg = "#${style.color.bg.dark}";
};
border_style = border;
tab_active = {
bg = "#${style.color.accent}";
};
};
select = { inherit border; };
input = { inherit border; };
completion = { inherit border; };
tasks = { inherit border; };
};
}