stylix/modules/kubecolor/hm.nix

79 lines
3.6 KiB
Nix
Raw Normal View History

2024-12-24 16:04:27 +01:00
{
2024-12-24 16:19:59 +01:00
config,
lib,
...
}: {
2024-12-24 16:04:27 +01:00
options.stylix.targets.kubecolor.enable = config.lib.stylix.mkEnableTarget "kubecolor" true;
config = lib.mkIf config.stylix.targets.kubecolor.enable {
programs.kubecolor.settings = {
2024-12-24 16:19:59 +01:00
preset =
if config.stylix.polarity.force == "either"
then ""
else "${config.stylix.polarity.force}";
2024-12-24 16:04:27 +01:00
theme = {
base = {
info = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
primary = "fg=${config.lib.stylix.colors.withHashtag.base0E-hex}";
secondary = "fg=${config.lib.stylix.colors.withHashtag.base0D-hex}";
success = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}:bold";
warning = "fg=${config.lib.stylix.colors.withHashtag.base0A-hex}:bold";
danger = "fg=${config.lib.stylix.colors.withHashtag.base08-hex}:bold";
muted = "fg=${config.lib.stylix.colors.withHashtag.base04-hex}";
key = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
};
default = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
data = {
key = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
string = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
true = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}:bold";
false = "fg=${config.lib.stylix.colors.withHashtag.base08-hex}:bold";
number = "fg=${config.lib.stylix.colors.withHashtag.base0E-hex}";
null = "fg=${config.lib.stylix.colors.withHashtag.base04-hex}";
quantity = "fg=${config.lib.stylix.colors.withHashtag.base0E-hex}";
duration = "fg=${config.lib.stylix.colors.withHashtag.base09-hex}";
durationfresh = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}";
ratio = {
zero = "fg=${config.lib.stylix.colors.withHashtag.base04-hex}";
equal = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}";
unequal = "fg=${config.lib.stylix.colors.withHashtag.base0A-hex}";
};
};
status = {
success = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}:bold";
warning = "fg=${config.lib.stylix.colors.withHashtag.base0A-hex}:bold";
error = "fg=${config.lib.stylix.colors.withHashtag.base08-hex}:bold";
};
table = {
header = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}:bold";
columns = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
};
stderr = {
default = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
error = "fg=${config.lib.stylix.colors.withHashtag.base08-hex}:bold";
};
describe = {
key = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
};
apply = {
created = "fg=${config.lib.stylix.colors.withHashtag.base0B-hex}";
configured = "fg=${config.lib.stylix.colors.withHashtag.base0A-hex}";
unchanged = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
dryrun = "fg=${config.lib.stylix.colors.withHashtag.base0D-hex}";
fallback = "fg=${config.lib.stylix.colors.withHashtag.base05-hex}";
};
explain = {
key = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
required = "fg=${config.lib.stylix.colors.withHashtag.base00-hex}:bold";
};
options = {
flag = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
};
version = {
key = "fg=${config.lib.stylix.colors.withHashtag.base07-hex}:bold";
};
};
};
};
}