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.)
This commit is contained in:
cnmcdee committed 2026-11-30 03:02:47 +00:00
1 parent 18b38ebd99
commit bf6a90d1e5
1 file changed
+1 -1
+1 -1
View File
@@ -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.