mirror of
https://github.com/danth/stylix
synced 2024-11-22 04:03:09 +00:00
zellij: write theme file instead of writing theme into config (#616)
Write theme file instead of writing theme into config. Also, fix contrast issues [1] by changing the red color to base01. [1]: https://github.com/danth/stylix/issues/486 Closes: https://github.com/danth/stylix/issues/486 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
f361071a1b
commit
e0a278871b
1 changed files with 23 additions and 20 deletions
|
@ -1,26 +1,29 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.stylix.targets.zellij.enable =
|
||||
config.lib.stylix.mkEnableTarget "zellij" true;
|
||||
options.stylix.targets.zellij.enable = config.lib.stylix.mkEnableTarget "zellij" true;
|
||||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.zellij.enable) {
|
||||
programs.zellij.settings = {
|
||||
theme = "stylix";
|
||||
themes.stylix = with config.lib.stylix.colors.withHashtag; {
|
||||
bg = base03;
|
||||
fg = base05;
|
||||
red = base08;
|
||||
green = base0B;
|
||||
blue = base0D;
|
||||
yellow = base0A;
|
||||
magenta = base0E;
|
||||
orange = base09;
|
||||
cyan = base0C;
|
||||
black = base00;
|
||||
white = base07;
|
||||
};
|
||||
};
|
||||
};
|
||||
config =
|
||||
lib.mkIf
|
||||
(config.stylix.enable && config.stylix.targets.zellij.enable && config.programs.zellij.enable)
|
||||
{
|
||||
xdg.configFile."zellij/themes/stylix.kdl".text = with config.lib.stylix.colors.withHashtag; ''
|
||||
themes {
|
||||
default {
|
||||
bg "${base03}";
|
||||
fg "${base05}";
|
||||
red "${base01}";
|
||||
green "${base0B}";
|
||||
blue "${base0D}";
|
||||
yellow "${base0A}";
|
||||
magenta "${base0E}";
|
||||
orange "${base09}";
|
||||
cyan "${base0C}";
|
||||
black "${base00}";
|
||||
white "${base07}";
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue