From 036931ac511e038b12796bdbdd754158cc04098f Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sat, 18 Jul 2026 21:12:11 +0100 Subject: [PATCH] =?UTF-8?q?fix(themes):=20light=20mode=20=E2=80=94=20the?= =?UTF-8?q?=20window=20glow=20tightens=20to=20a=20few=20px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shadow color is the palette mantle: near-black on dark themes (a normal ambient shadow) but a light warm tone on light ones, where the 20px range reads as a wide glow that bleeds into neighbouring windows and the bar (hardware report, kiln-clay, 2026-07-18). Light mode now defaults the range to 5px — the glow stays as an identity feature, just tight; dark themes keep the soft 20px shadow. Still lib.mkDefault, so downstream overrides keep working. Verified V1 (generation renders range=5 under kiln-clay); on-hardware before/after of the live desktop taken in the reporting session. Co-Authored-By: Claude Fable 5 --- modules/home/hyprland.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix index 7a1cde4..6f45813 100644 --- a/modules/home/hyprland.nix +++ b/modules/home/hyprland.nix @@ -1060,7 +1060,12 @@ in }; shadow = { enabled = t.ui.shadow; - range = lib.mkDefault 20; + # The mantle-tinted shadow reads as a dark halo on dark themes + # but as a warm *glow* on light ones (mantle is light there) — + # kept as an identity feature, just tight (a few px) so it never + # bleeds into neighbouring windows or the bar (hardware report + # 2026-07-18); dark themes keep the soft 20px ambient shadow. + range = lib.mkDefault (if t.mode == "light" then 5 else 20); render_power = lib.mkDefault 3; color = rgba c.mantle "aa"; };