From 57471553a27a627dd1dd732e614b868194a68f80 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Mon, 2 Jun 2025 20:33:31 -0600 Subject: [PATCH] stylix schemas configurations --- stylix.nix | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/stylix.nix b/stylix.nix index f0fa09e..fcf0229 100644 --- a/stylix.nix +++ b/stylix.nix @@ -6,44 +6,34 @@ }: let cfg = config.my.stylix; - iconTheme = pkgs.papirus-icon-theme.override { color = "green"; }; + mkScheme = color: name: polarity: image: { + inherit name polarity image; + iconPackage = pkgs.papirus-icon-theme.override { inherit color; }; + }; + schemas = { + who = mkScheme "bluegrey" "kanagawa" "dark" ./wallpapers/Nikolay_Kasatkin_Who.jpeg; + jesus = mkScheme "red" "equilibrium-light" "light" ./wallpapers/jesus.png; + }; + scheme = schemas.who; in { options.my.stylix.enable = lib.mkEnableOption "enable"; config = { stylix = { + inherit (scheme) image polarity; enable = cfg.enable; - image = ./wallpapers/Waay-Ballerinas.jpeg; targets.qt.platform = lib.mkForce "qtct"; - polarity = "light"; - base16Scheme = { - base00 = "fcfbfa"; # background (stage floor highlight) - base01 = "f1efec"; # light surface (tutu white) - base02 = "dedad5"; # selection bg (shadowed tulle) - base03 = "b9b3aa"; # comments/dim fg (wall and dancers' shadows) - base04 = "837d75"; # status bar bg (soft gray-brown suits) - base05 = "514c45"; # main text (outline shadows) - base06 = "3b3731"; # headings/bold (deepest shadows) - base07 = "2c2925"; # dark accents (coats, seats) - base08 = "bd7760"; # red-accent (blush tones) - base09 = "d8b47f"; # warm gold (light skin and floor warmth) - base0A = "a2ad78"; # dusty green (faint shadows) - base0B = "7f9372"; # sage green (secondary/OK) - base0C = "96b7af"; # teal-gray (cool lights) - base0D = "6c8c99"; # cyan steel (links) - base0E = "a08b75"; # brown-gold (muted keywords) - base0F = "8f5e45"; # burnt sienna (deprecated/error) - }; + base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme.name}.yaml"; }; home-manager.users.jawz = { gtk = lib.mkIf (!cfg.enable) { - iconTheme = iconTheme; + iconTheme = scheme.iconPackage; }; stylix = { enable = cfg.enable; iconTheme = { enable = cfg.enable; - package = iconTheme; + package = scheme.iconPackage; light = "Papirus-Light"; dark = "Papirus-Dark"; };