From d806ed0581854fc42541a78af294233185e2e0f1 Mon Sep 17 00:00:00 2001 From: Sean Kovacs Date: Sun, 14 Dec 2025 13:55:15 -0500 Subject: [PATCH] use colloid gtk theme --- home/all.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ home/kde/plasma.nix | 3 --- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/home/all.nix b/home/all.nix index d7c8dbf..30f98ee 100755 --- a/home/all.nix +++ b/home/all.nix @@ -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; diff --git a/home/kde/plasma.nix b/home/kde/plasma.nix index 286abc5..5412f48 100644 --- a/home/kde/plasma.nix +++ b/home/kde/plasma.nix @@ -1,9 +1,6 @@ { config, pkgs, ... }: { - - gtk.theme.name = "Breeze"; - programs.plasma = { enable = true; overrideConfig = true;