From 641bb75eb1a6449752d14b9776381a823999b85e Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Tue, 5 Nov 2024 20:58:49 -0600 Subject: [PATCH] design: use active_window_hint as the thickness for floating window snap outline This commit changes the snapping indicator's thickness to match the active window hint, per design recommendation by Maria. The thickness for this outline never goes under 1, also per Maria's spec. Signed-off-by: Ryan Brue --- src/shell/grabs/moving.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/grabs/moving.rs b/src/shell/grabs/moving.rs index 3bbb83ab..4d302ec0 100644 --- a/src/shell/grabs/moving.rs +++ b/src/shell/grabs/moving.rs @@ -145,6 +145,7 @@ impl MoveGrabState { }; let gaps = (theme.gaps.0 as i32, theme.gaps.1 as i32); + let thickness = self.indicator_thickness.max(1); let snapping_indicator = match &self.snapping_zone { Some(t) if &self.cursor_output == output => { @@ -155,7 +156,7 @@ impl MoveGrabState { renderer, Key::Window(Usage::SnappingIndicator, self.window.key()), overlay_geometry, - 3, + thickness, theme.radius_s()[0] as u8, // TODO: Fix once shaders support 4 corner radii customization 1.0, output_scale.x,