From bf6a90d1e572baa4284e1cec175a18b437e40d2d Mon Sep 17 00:00:00 2001 From: cnmcdee Date: Mon, 30 Nov 2026 03:02:47 +0000 Subject: [PATCH] Handles 16px -> 13px, grab area stays generous Visual handle square HANDLE_SIZE 16 -> 13; hit pad stays 8px so the grab target is 13+2*8 = 29px (was 32px) -- still easy to grab. Verified: Xvfb screenshot shows 8 handles, 11px orange interior + 1px dark border = 13px total (was 14px interior / 16px total). cargo test -p lightgui-designer -p lightgui-gen -p lightgui-core: all pass. (lightgui-debug gtk.rs has 6 pre-existing GDB failures, also present on the unmodified tree -- unrelated to this change.) --- crates/lightgui-designer/src/canvas.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lightgui-designer/src/canvas.rs b/crates/lightgui-designer/src/canvas.rs index 52ccc07..722b84d 100644 --- a/crates/lightgui-designer/src/canvas.rs +++ b/crates/lightgui-designer/src/canvas.rs @@ -38,7 +38,7 @@ use xframe_core::{Srgb, StyleManager}; /// Handles are drawn 16px; the hit test pads them by 8px on every side /// (a 32x32 grab target). -const HANDLE_SIZE: i32 = 16; +const HANDLE_SIZE: i32 = 13; const HANDLE_HIT_PAD: i32 = 8; /// Drag threshold: ignore sub-8px jitter so a double-click does not /// shift the widget out from under the second press.