This commit is contained in:
Hadi
2024-03-16 22:26:30 +01:00
parent 3f2ba75a5e
commit f86a0271b6
18 changed files with 317 additions and 973 deletions

View File

@@ -78,6 +78,18 @@ with lib;
"color13"
"color14"
"color15"
]);
]) // {
primary-ansi-16 = mkOption {
type = types.str;
description =
"Name of the primary color - ansi 16 colors (black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white)";
};
primary-ansi-16-number = mkOption {
type = types.int;
description = "Set the primary color - ansi 16 colors (0-15)";
};
};
};
}

View File

@@ -1 +1,39 @@
{ imports = [ ./nixy.nix ]; }
{ config, ... }: {
imports = [ ./nixy.nix ];
config.theme.colors.primary-ansi-16-number =
if config.theme.colors.primary-ansi-16 == "black" then
0
else if config.theme.colors.primary-ansi-16 == "red" then
1
else if config.theme.colors.primary-ansi-16 == "green" then
2
else if config.theme.colors.primary-ansi-16 == "yellow" then
3
else if config.theme.colors.primary-ansi-16 == "blue" then
4
else if config.theme.colors.primary-ansi-16 == "magenta" then
5
else if config.theme.colors.primary-ansi-16 == "cyan" then
6
else if config.theme.colors.primary-ansi-16 == "white" then
7
else if config.theme.colors.primary-ansi-16 == "bright-white" then
8
else if config.theme.colors.primary-ansi-16 == "bright-black" then
9
else if config.theme.colors.primary-ansi-16 == "bright-red" then
10
else if config.theme.colors.primary-ansi-16 == "bright-green" then
11
else if config.theme.colors.primary-ansi-16 == "bright-yellow" then
12
else if config.theme.colors.primary-ansi-16 == "bright-blue" then
13
else if config.theme.colors.primary-ansi-16 == "bright-magenta" then
14
else if config.theme.colors.primary-ansi-16 == "bright-cyan" then
15
else
0;
}

View File

@@ -16,6 +16,7 @@
fg = "FCFCFC";
alt-bg = "101012";
alt-fg = "ECECEC";
primary-ansi-16 = "magenta";
primary-bg = "a158ff";
primary-fg = "000000";
secondary-bg = "4928B8";