diff options
| author | pml68 <contact@pml68.dev> | 2025-02-26 23:23:52 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-02-26 23:23:52 +0100 |
| commit | 5c68b550678601a9646e0c44e617069ee16db348 (patch) | |
| tree | a68d0d1ae29625182b0668d648a8ade0b307ea03 /src/main.rs | |
| parent | feat: implement `ValueFromStr` for Rotation (diff) | |
| download | iced-builder-5c68b550678601a9646e0c44e617069ee16db348.tar.gz | |
feat: switch to personal `iced` fork, work on version info
Diffstat (limited to '')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 20383f1..e7faea1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { let version = args.next().is_some_and(|s| s == "--version" || s == "-V"); if version { - println!("{}", env!("CARGO_PKG_VERSION")); + println!("iced-builder {}", environment::formatted_version()); println!("{}", env!("CARGO_PKG_REPOSITORY")); return Ok(()); @@ -366,11 +366,9 @@ impl App { self.project.get_theme(&self.config), is_focused, ), - DesignerPane::CodeView => code_view::view( - &self.editor_content, - self.theme.value().clone(), - is_focused, - ), + DesignerPane::CodeView => { + code_view::view(&self.editor_content, is_focused) + } }, Panes::ElementList => { element_list::view(self.element_list, is_focused) |
