From 4d9379ad6eb80f5bbb3ea194d7d05edf7ecb61e3 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Fri, 25 Sep 2026 14:32:29 +0300 Subject: [PATCH] Right-edge toolbar centres below the view cube and UCS list Co-Authored-By: Claude Opus 5.5 --- src/ui/side_toolbar.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/side_toolbar.rs b/src/ui/side_toolbar.rs index b435bc32f..2cdce0013 100644 --- a/src/ui/side_toolbar.rs +++ b/src/ui/side_toolbar.rs @@ -17,6 +17,9 @@ const ICON_SIZE: f32 = 22.0; const BTN_SIZE: f32 = 38.0; /// Gap between the toolbar and the right edge of the canvas. const EDGE_MARGIN: f32 = 8.0; +/// Room kept free at the top right for the view cube and the UCS list; the +/// toolbar is centred in the height below it. +const TOP_RESERVE: f32 = 200.0; fn icon_el(icon: IconKind) -> Element<'static, Message> { match icon { @@ -122,6 +125,7 @@ pub fn view_with_active( .align_y(iced::Center) .padding(iced::Padding { right: EDGE_MARGIN, + top: TOP_RESERVE, ..iced::Padding::ZERO }) .into(),