use colloid gtk theme
This commit is contained in:
parent
1f2e9434b8
commit
d806ed0581
2 changed files with 42 additions and 3 deletions
42
home/all.nix
42
home/all.nix
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
types,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -216,6 +217,47 @@
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
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 = {
|
iconTheme = {
|
||||||
name = if config.userOptions.isDark then "Colloid-Dark" else "Colloid-Light";
|
name = if config.userOptions.isDark then "Colloid-Dark" else "Colloid-Light";
|
||||||
package = pkgs.colloid-icon-theme;
|
package = pkgs.colloid-icon-theme;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
gtk.theme.name = "Breeze";
|
|
||||||
|
|
||||||
programs.plasma = {
|
programs.plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
overrideConfig = true;
|
overrideConfig = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue