forked from 1b-agent/opencadstudio-upstream
Start Plan B — replace the daemon's pop-up OS windows with in-canvas modal overlays so dialogs work identically on native (one main window) and web (canvas only). - New `ui::modal::modal(base, content, on_close)`: dims the view behind a backdrop that blocks clicks but does NOT dismiss, frames the content, and adds a top-right ✕ as the sole close affordance. Sizes to the content (no `Fill`), so dialogs shrink to fit. - view_main stacks the active modal on top, so both run paths show it. - Migrate About as the pilot: `about_open` bool + AboutOpen/AboutClose instead of an OS window; About's view shrinks to content. Remaining dialogs migrate to the same pattern next. Native + 75 tests OK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.0 KiB
Rust
46 lines
1.0 KiB
Rust
/// Single source of truth for UI row height (px).
|
|
/// Change this to scale the ribbon, layer manager rows, and property panel rows uniformly.
|
|
pub const ROW_H: f32 = 26.0;
|
|
|
|
pub mod about;
|
|
pub mod app_menu;
|
|
pub mod color_select;
|
|
pub mod command_line;
|
|
pub mod cycle_popup;
|
|
pub mod dimstyle;
|
|
pub mod isolate_popup;
|
|
pub mod layers;
|
|
pub mod layout_manager;
|
|
pub mod mleaderstyle;
|
|
pub mod mlstyle;
|
|
pub mod modal;
|
|
pub mod open_progress;
|
|
pub mod overlay;
|
|
pub mod page_setup;
|
|
pub mod plotstyle;
|
|
pub mod plugin_manager;
|
|
pub mod properties;
|
|
pub mod ribbon;
|
|
pub mod scale_popup;
|
|
pub mod selection_filter_popup;
|
|
pub mod side_toolbar;
|
|
pub mod shortcuts;
|
|
pub mod snap_popup;
|
|
pub mod statusbar;
|
|
pub mod statusbar_config;
|
|
pub mod statusbar_menu;
|
|
pub mod style_list;
|
|
pub mod style_manager;
|
|
pub mod tablestyle;
|
|
pub mod text_util;
|
|
pub mod textstyle;
|
|
pub mod units_popup;
|
|
pub mod update_notice;
|
|
|
|
pub use app_menu::AppMenu;
|
|
pub use command_line::CommandLine;
|
|
pub use layers::LayerPanel;
|
|
pub use properties::PropertiesPanel;
|
|
pub use ribbon::Ribbon;
|
|
pub use statusbar::StatusBar;
|