From ba274c7b56db75eb43192b33290d46789d52849e Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 25 Mar 2025 06:19:17 +0800 Subject: [PATCH] feat(stylix): add gtk theming --- users/modules/stylix.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/users/modules/stylix.nix b/users/modules/stylix.nix index e2a8949..827f330 100644 --- a/users/modules/stylix.nix +++ b/users/modules/stylix.nix @@ -10,7 +10,18 @@ enable = true; image = ../../media/wallpaper.jpg; }; - stylix.targets.gtk.extraCss = '' - - ''; + 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 */ + } + ''; }