Skip to content

Commit

Permalink
fix(home-manager/kvantum): don't uppercase accents and flavors in ove…
Browse files Browse the repository at this point in the history
…rride (#358)
  • Loading branch information
ryand56 authored Oct 26, 2024
1 parent 286a601 commit 641cfc3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions modules/home-manager/kvantum.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@ let

flavorCapitalized = lib.ctp.mkUpper cfg.flavor;
accentCapitalized = lib.ctp.mkUpper cfg.accent;
theme = pkgs.catppuccin-kvantum.override {
accent = accentCapitalized;
variant = flavorCapitalized;
};
themeName = "Catppuccin-${flavorCapitalized}-${accentCapitalized}";

theme = if (lib.versionAtLeast lib.ctp.getModuleRelease "24.11") then
pkgs.catppuccin-kvantum.override {
accent = cfg.accent;
variant = cfg.flavor;
}
else
pkgs.catppuccin-kvantum.override {
accent = accentCapitalized;
variant = flavorCapitalized;
};

themeName = if (lib.versionAtLeast lib.ctp.getModuleRelease "24.11") then
"catppuccin-${cfg.flavor}-${cfg.accent}"
else
"Catppuccin-${flavorCapitalized}-${accentCapitalized}";
in
{
options.qt.style.catppuccin = lib.ctp.mkCatppuccinOpt { name = "Kvantum"; } // {
Expand Down

0 comments on commit 641cfc3

Please sign in to comment.