feat(statusbar): isolate action menu on the pill and right-click

Clicking the ISO pill now opens a small menu with Isolate Objects, Hide
Objects and End Isolation instead of ending isolation directly; rows
that don't apply (no selection / nothing hidden) are dimmed. The same
actions are added to the viewport right-click menu.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-06-04 23:17:21 +03:00
1 parent e0e7897952
commit 28ec360255
6 files changed
+165 -6

No files matched your search

+7
View File
@@ -175,6 +175,8 @@ pub(super) struct OpenCADStudio {
statusbar_menu_open: bool,
/// True while the drawing-units picker is open.
units_popup_open: bool,
/// True while the Isolate pill's action menu is open.
isolate_popup_open: bool,
/// Clean-screen mode: hide ribbon and side panels for a full canvas.
clean_screen: bool,
/// Which status-bar pills the user has chosen to show (persisted).
@@ -754,6 +756,10 @@ pub enum Message {
CloseUnitsPopup,
/// Set the drawing units (INSUNITS) for the active drawing.
SetDrawingUnits(i16),
/// Toggle the Isolate pill's action menu open/closed.
ToggleIsolatePopup,
/// Close the Isolate action menu.
CloseIsolatePopup,
/// Toggle dynamic input overlay (F12).
ToggleDynInput,
/// Toggle object snap tracking (F11).
@@ -1212,6 +1218,7 @@ impl OpenCADStudio {
scale_popup_open: false,
statusbar_menu_open: false,
units_popup_open: false,
isolate_popup_open: false,
statusbar_config: crate::ui::statusbar_config::StatusBarConfig::load(),
clean_screen: false,
pre_cmd_tangent: None,