feat: app icon

This commit is contained in:
Stevan Freeborn
2026-01-09 07:51:53 -06:00
parent 8e8409a7b5
commit c2a9685b5b
4 changed files with 731 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

+9
View File
@@ -3,6 +3,8 @@ mod file;
use std::path::PathBuf;
use iced::widget::{column, container, pick_list, row, text, text_editor};
use iced::window;
use iced::window::icon;
use iced::{Element, Font, Length, Theme};
use rfd::FileDialog;
@@ -159,5 +161,12 @@ pub fn main() -> iced::Result {
default_font: CUSTOM_FONT,
..Default::default()
})
.window(window::Settings {
icon: Some(
icon::from_file_data(include_bytes!("./images/icon.ico"), None)
.expect("Failed to load icon"),
),
..window::Settings::default()
})
.run()
}