feat(home-manager): add gtk icon theme (#165)
Uses catppuccin-papirus-folders Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
76416edbf5
commit
27e71a3548
1 changed files with 21 additions and 0 deletions
|
@ -31,6 +31,11 @@ in
|
|||
// {
|
||||
accent = ctp.mkBasicOpt "accent" cursorAccentType "gtk cursors";
|
||||
};
|
||||
|
||||
icon = ctp.mkCatppuccinOpt "gtk modified Papirus icon theme"
|
||||
// {
|
||||
accent = ctp.mkAccentOpt "gtk modified Papirus icon theme";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf enable {
|
||||
|
@ -69,6 +74,22 @@ in
|
|||
name = "Catppuccin-${flavourUpper}-${accentUpper}-Cursors";
|
||||
package = pkgs.catppuccin-cursors.${cfg.cursor.flavour + accentUpper};
|
||||
};
|
||||
|
||||
iconTheme =
|
||||
let
|
||||
# use the light icon theme for latte
|
||||
polarity =
|
||||
if cfg.icon.flavour == "latte"
|
||||
then "Light"
|
||||
else "Dark";
|
||||
in
|
||||
lib.mkIf cfg.icon.enable {
|
||||
name = "Papirus-${polarity}";
|
||||
package = pkgs.catppuccin-papirus-folders.override {
|
||||
flavor = cfg.icon.flavour;
|
||||
accent = cfg.icon.accent;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile =
|
||||
|
|
Loading…
Reference in a new issue