use colloid gtk theme

This commit is contained in:
Sean Kovacs 2025-12-14 13:55:15 -05:00
commit d806ed0581
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 42 additions and 3 deletions

View file

@ -2,6 +2,7 @@
config,
pkgs,
lib,
types,
...
}:
@ -216,6 +217,47 @@
gtk = {
enable = true;
theme =
let
mapping = {
maroon = "red";
red = "red";
peach = "orange";
yellow = "yellow";
green = "green";
teal = "teal";
sky = "teal";
sapphire = "default";
blue = "default";
mauve = "purple";
lavender = "purple";
pink = "pink";
flamingo = "pink";
rosewater = "pink";
};
rawThemeVariant = lib.attrByPath [ config.catppuccin.accent ] "default" mapping;
rawColorVariant = if config.userOptions.isDark then "dark" else "light";
capitalize =
s:
if s == "" then
""
else
(lib.strings.toUpper (builtins.substring 0 1 s))
+ (builtins.substring 1 (builtins.stringLength s) s);
formattedThemeColor = if rawThemeVariant == "default" then "" else "-${capitalize rawThemeVariant}";
in
{
name = "Colloid${formattedThemeColor}-${capitalize rawColorVariant}-Catppuccin";
package = (
pkgs.colloid-gtk-theme.override {
themeVariants = [ rawThemeVariant ];
sizeVariants = [ "standard" ];
colorVariants = [ rawColorVariant ];
tweaks = [ "catppuccin" ];
}
);
};
iconTheme = {
name = if config.userOptions.isDark then "Colloid-Dark" else "Colloid-Light";
package = pkgs.colloid-icon-theme;

View file

@ -1,9 +1,6 @@
{ config, pkgs, ... }:
{
gtk.theme.name = "Breeze";
programs.plasma = {
enable = true;
overrideConfig = true;