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 <ryanbrue.dev@gmail.com>
This commit is contained in:
parent
90883c6ab1
commit
641bb75eb1
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue