Yazi : Style with Stylix.
This commit is contained in:
parent
d7b209fb76
commit
7057630722
|
@ -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 = "";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
30
user/common/yazi/module/Theme.nix
Normal file
30
user/common/yazi/module/Theme.nix
Normal 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; };
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue