forked from 1b-agent/opencadstudio-upstream
feat(ui): migrate 4 more dialogs to in-canvas modals (Plan B)
Consolidate all migrated dialogs into a single `modal_content` builder matched on `active_modal`, rendered by view_main. Move Layers, Page Setup, Layout Manager and Plot Style off OS windows onto it (their construction relocated from the daemon `view` dispatch, which now only handles the not-yet-migrated dialogs). Each keeps a bounded size. Open/close handlers set `active_modal` instead of opening/closing windows; ToggleLayers toggles it. Native + web build; 75 tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
6a3663b3f1
commit
b21d10f6e8
3 files changed
+94
-148
No files matched your search
@@ -597,6 +597,10 @@ pub enum ModalKind {
|
||||
Shortcuts,
|
||||
PluginManager,
|
||||
UpdateNotice,
|
||||
Layers,
|
||||
PageSetup,
|
||||
LayoutManager,
|
||||
Plotstyle,
|
||||
}
|
||||
|
||||
/// Identifies a DimStyle field that can be edited in the dialog.
|
||||
|
||||
Reference in new issue
Block a user