better theme polarity methods
This commit is contained in:
parent
88f79cc468
commit
e9a52bfa01
1 changed files with 5 additions and 3 deletions
|
@ -5,6 +5,8 @@ let
|
||||||
cfg = config.modules.desktop.themes;
|
cfg = config.modules.desktop.themes;
|
||||||
accent = "pink";
|
accent = "pink";
|
||||||
variant = "mocha";
|
variant = "mocha";
|
||||||
|
|
||||||
|
dark = variant != "latte";
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.${"catppuccin-${variant}"};
|
colorScheme = inputs.nix-colors.colorSchemes.${"catppuccin-${variant}"};
|
||||||
pascalCase = s: (toUpper (substring 0 1 s)) + (toLower (substring 1 (stringLength s) s));
|
pascalCase = s: (toUpper (substring 0 1 s)) + (toLower (substring 1 (stringLength s) s));
|
||||||
in {
|
in {
|
||||||
|
@ -12,7 +14,7 @@ in {
|
||||||
colorScheme = colorScheme;
|
colorScheme = colorScheme;
|
||||||
|
|
||||||
modules.desktop.themes = {
|
modules.desktop.themes = {
|
||||||
dark = variant != "latte";
|
dark = dark;
|
||||||
|
|
||||||
gtkTheme = {
|
gtkTheme = {
|
||||||
name = "catppuccin-${variant}-${accent}-compact+rimless";
|
name = "catppuccin-${variant}-${accent}-compact+rimless";
|
||||||
|
@ -33,12 +35,12 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "WhiteSur-dark";
|
name = "WhiteSur-${if dark then "dark" else "light"}";
|
||||||
package = pkgs.whitesur-icon-theme;
|
package = pkgs.whitesur-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
cursorTheme = {
|
cursorTheme = {
|
||||||
name = "graphite-dark";
|
name = "graphite-${if dark then "dark" else "light"}";
|
||||||
package = pkgs.graphite-cursors;
|
package = pkgs.graphite-cursors;
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue