summaryrefslogtreecommitdiff
path: root/iced_builder/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-12-08 00:15:12 +0100
committerpml68 <contact@pml68.me>2024-12-08 00:15:12 +0100
commit9b23b535e256840717d8b6476bfdc41d2a51e580 (patch)
tree0b0b004124a5b884cc92f01a9f5c57fbb39235d7 /iced_builder/src/main.rs
parentfeat: animated theme switching with `iced_anim` crate (diff)
downloadiced-builder-9b23b535e256840717d8b6476bfdc41d2a51e580.tar.gz
feat: switch to `hecrj/iced_fontello` for icon font management
Diffstat (limited to '')
-rw-r--r--iced_builder/src/main.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/iced_builder/src/main.rs b/iced_builder/src/main.rs
index c2ac7a5..8adc15d 100644
--- a/iced_builder/src/main.rs
+++ b/iced_builder/src/main.rs
@@ -8,11 +8,12 @@ use iced::{
pane_grid::{self, Pane, PaneGrid},
pick_list, row, text_editor, Column,
},
- Alignment, Element, Length, Settings, Task, Theme,
+ Alignment, Element, Length, Task, Theme,
};
use iced_anim::{Animation, Spring};
use iced_builder::{
dialogs::{error_dialog, unsaved_changes_dialog},
+ icon,
types::{Action, DesignerPage, ElementName, Message, Project},
views::{code_view, designer_view, element_list},
};
@@ -22,10 +23,7 @@ const THEMES: &'static [Theme] = &[Theme::SolarizedDark, Theme::SolarizedLight];
fn main() -> iced::Result {
iced::application(App::title, App::update, App::view)
- .settings(Settings {
- fonts: vec![include_bytes!("../fonts/icons.ttf").as_slice().into()],
- ..Settings::default()
- })
+ .font(icon::FONT)
.theme(|state| state.theme.value().clone())
.subscription(App::subscription)
.run_with(App::new)