From 36ad6bfbf8f5dceb9ff9c206707bb8ea3e7394eb Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 25 Mar 2025 06:34:47 +0800 Subject: [PATCH] feat(stylix): add opacity and icon theme --- users/modules/stylix.nix | 40 ++++++++++++++++++++++++++-------------- users/modules/utils.nix | 1 + 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/users/modules/stylix.nix b/users/modules/stylix.nix index 827f330..e753c62 100644 --- a/users/modules/stylix.nix +++ b/users/modules/stylix.nix @@ -9,19 +9,31 @@ stylix = { enable = true; image = ../../media/wallpaper.jpg; + iconTheme = { + enable = true; + package = pkgs.numix-icon-theme; + dark = "Numix"; + light = "Numix-Light"; + }; + opacity = { + applications = 0.9; + desktop = 0.9; + popups = 0.9; + terminal = 0.9; + }; + targets.gtk.extraCss = # css + '' + window { + background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 50%); + background-size: 100% 2px; /* Adjust height for scanline thickness */ + background-color: rgba(0, 0, 0, 0.05); /*Very slight transparency*/ + } + entry { + box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2); + } + button:hover { + box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* Replace color */ + } + ''; }; - stylix.targets.gtk.extraCss = # css - '' - window { - background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 50%); - background-size: 100% 2px; /* Adjust height for scanline thickness */ - background-color: rgba(0, 0, 0, 0.05); /*Very slight transparency*/ - } - entry { - box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2); - } - button:hover { - box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); /* Replace color */ - } - ''; } diff --git a/users/modules/utils.nix b/users/modules/utils.nix index 244fcb9..d0d65e8 100644 --- a/users/modules/utils.nix +++ b/users/modules/utils.nix @@ -10,5 +10,6 @@ ttyper hyprpicker inputs.hyprcloser.packages.${pkgs.stdenv.hostPlatform.system}.default + hyprshade ]; }