forked from 1b-agent/opencadstudio-upstream
feat(plotstyle): improve CTB editor workflow
This commit is contained in:
1 parent
22a294c705
commit
e2e4bfdcd4
9 files changed
+271
-48
No files matched your search
+18
-15
@@ -50,7 +50,23 @@ impl OpenCADStudio {
|
||||
None => String::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn plot_modal_content<'s>(
|
||||
&'s self,
|
||||
extra: iced::Vector,
|
||||
) -> Element<'s, Message> {
|
||||
sized_flow(
|
||||
extra,
|
||||
760,
|
||||
540,
|
||||
|flow| {
|
||||
crate::ui::window::plot::view_window(
|
||||
&self.plot_dialog,
|
||||
self.print_all_options,
|
||||
flow,
|
||||
)
|
||||
},
|
||||
)
|
||||
}
|
||||
/// Build the currently-open modal dialog's content (Plan B), or `None`.
|
||||
/// Iced 0.15 measures the content first, so dialogs start at their natural
|
||||
/// size and overflowing regions become scrollable where a cap is supplied.
|
||||
@@ -280,20 +296,7 @@ impl OpenCADStudio {
|
||||
})
|
||||
}
|
||||
}
|
||||
super::super::ModalKind::Plot => {
|
||||
sized_flow(
|
||||
ex,
|
||||
760,
|
||||
540,
|
||||
|flow| {
|
||||
crate::ui::window::plot::view_window(
|
||||
&self.plot_dialog,
|
||||
self.print_all_options,
|
||||
flow,
|
||||
)
|
||||
},
|
||||
)
|
||||
}
|
||||
super::super::ModalKind::Plot => self.plot_modal_content(ex),
|
||||
super::super::ModalKind::PrintAll => sized_flow(
|
||||
ex,
|
||||
520,
|
||||
|
||||
Reference in new issue
Block a user