summaryrefslogtreecommitdiff
path: root/iced_builder/src/types
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-09-28 12:17:53 +0200
committerpml68 <contact@pml68.me>2024-09-28 12:22:27 +0200
commitb7e1527ab07acc45038f71c0a2bbbaf4180e5db3 (patch)
treebf76c314fcdc911993d299061f1559093a722832 /iced_builder/src/types
parentfeat: make code view scrollable, add autogen comment to code (diff)
downloadiced-builder-b7e1527ab07acc45038f71c0a2bbbaf4180e5db3.tar.gz
feat: add button to switch between designer and code view
f
Diffstat (limited to 'iced_builder/src/types')
-rw-r--r--iced_builder/src/types/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/iced_builder/src/types/mod.rs b/iced_builder/src/types/mod.rs
index db06ffa..eaf1686 100644
--- a/iced_builder/src/types/mod.rs
+++ b/iced_builder/src/types/mod.rs
@@ -3,7 +3,7 @@ pub mod rendered_element;
use rendered_element::RenderedElement;
pub struct DesignerState {
- pub designer_content: Vec<RenderedElement>,
+ pub designer_content: Option<RenderedElement>,
pub designer_page: DesignerPage,
}
@@ -48,6 +48,7 @@ impl std::fmt::Display for ElementName {
}
}
+#[derive(Debug, Clone)]
pub enum DesignerPage {
Designer,
CodeView,