Invert type for cursor theme (e.g. Dark cursor if Light theme)

This commit is contained in:
Evie Litherland-Smith 2024-06-05 13:53:03 +01:00
parent e16a368f53
commit 9010309e86

View file

@ -40,6 +40,10 @@
if variant == "Latte" if variant == "Latte"
then "Light" then "Light"
else "Dark"; else "Dark";
inverseType =
if type == "Light"
then "Dark"
else "Light";
in { in {
enable = true; enable = true;
iconTheme = { iconTheme = {
@ -51,7 +55,7 @@
}; };
cursorTheme = { cursorTheme = {
package = pkgs.catppuccin-cursors."${toLower variant}${type}"; package = pkgs.catppuccin-cursors."${toLower variant}${type}";
name = "Catppuccin-${variant}-${type}-Cursors"; name = "Catppuccin-${variant}-${inverseType}-Cursors";
size = 32; size = 32;
}; };
theme = let theme = let