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"
then "Light"
else "Dark";
inverseType =
if type == "Light"
then "Dark"
else "Light";
in {
enable = true;
iconTheme = {
@ -51,7 +55,7 @@
};
cursorTheme = {
package = pkgs.catppuccin-cursors."${toLower variant}${type}";
name = "Catppuccin-${variant}-${type}-Cursors";
name = "Catppuccin-${variant}-${inverseType}-Cursors";
size = 32;
};
theme = let