fix(home-manager/gtk): support all tweaks (#274)
This commit is contained in:
parent
57d7153caa
commit
552056779a
1 changed files with 6 additions and 3 deletions
|
@ -42,9 +42,10 @@ in
|
||||||
"black"
|
"black"
|
||||||
"rimless"
|
"rimless"
|
||||||
"normal"
|
"normal"
|
||||||
|
"float"
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
default = [ "normal" ];
|
default = [ ];
|
||||||
description = "Catppuccin tweaks for gtk";
|
description = "Catppuccin tweaks for gtk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -121,10 +122,12 @@ in
|
||||||
(mkIf enable {
|
(mkIf enable {
|
||||||
gtk.theme =
|
gtk.theme =
|
||||||
let
|
let
|
||||||
gtkTweaks = concatStringsSep "," cfg.tweaks;
|
gtkTweaks = "+" + concatStringsSep "," cfg.tweaks;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}+${gtkTweaks}";
|
name =
|
||||||
|
"catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}"
|
||||||
|
+ lib.optionalString (cfg.tweaks != [ ]) gtkTweaks;
|
||||||
package = pkgs.catppuccin-gtk.override {
|
package = pkgs.catppuccin-gtk.override {
|
||||||
inherit (cfg) size tweaks;
|
inherit (cfg) size tweaks;
|
||||||
accents = [ cfg.accent ];
|
accents = [ cfg.accent ];
|
||||||
|
|
Loading…
Reference in a new issue