Skip to content

Commit 641bb75

Browse files
ryanabxDrakulix
authored andcommitted
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 <[email protected]>
1 parent 90883c6 commit 641bb75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shell/grabs/moving.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl MoveGrabState {
145145
};
146146

147147
let gaps = (theme.gaps.0 as i32, theme.gaps.1 as i32);
148+
let thickness = self.indicator_thickness.max(1);
148149

149150
let snapping_indicator = match &self.snapping_zone {
150151
Some(t) if &self.cursor_output == output => {
@@ -155,7 +156,7 @@ impl MoveGrabState {
155156
renderer,
156157
Key::Window(Usage::SnappingIndicator, self.window.key()),
157158
overlay_geometry,
158-
3,
159+
thickness,
159160
theme.radius_s()[0] as u8, // TODO: Fix once shaders support 4 corner radii customization
160161
1.0,
161162
output_scale.x,

0 commit comments

Comments
 (0)