Skip to content

Commit

Permalink
fix(home-manager): use correct theme name
Browse files Browse the repository at this point in the history
- Name is all lower case now
- Order changed from `flavor-size-accent-gtkTheme` to
`flavor-accent-size+tweaks`
  • Loading branch information
eljamm committed Jun 22, 2024
1 parent 8c44408 commit 97c9bd6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ in
gtk = {
theme =
let
flavorUpper = ctp.mkUpper cfg.flavor;
accentUpper = ctp.mkUpper cfg.accent;
sizeUpper = ctp.mkUpper cfg.size;

# use the light gtk theme for latte
gtkTheme = if cfg.flavor == "latte" then "Light" else "Dark";
tweaks = lib.concatStringsSep "+" (
builtins.replaceStrings [
"normal"
"default"
] cfg.tweaks
);
in
{
name = "Catppuccin-${flavorUpper}-${sizeUpper}-${accentUpper}-${gtkTheme}";
name = "catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}+${tweaks}";
package = pkgs.catppuccin-gtk.override {
inherit (cfg) size tweaks;
accents = [ cfg.accent ];
Expand Down

0 comments on commit 97c9bd6

Please sign in to comment.