-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.rs
28 lines (27 loc) · 810 Bytes
/
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use iced::{window, Application, Settings};
use image::ImageFormat;
mod gui;
mod view;
mod component;
mod plot;
mod adapt;
fn main() -> iced::Result {
const ICON_BYTES: &'static [u8] = include_bytes!("image/profile.png");
let profile_icon = window::icon::Icon::from_file_data(ICON_BYTES, Some(ImageFormat::Png));
let setting: iced::Settings<()> = Settings {
window: window::Settings {
size: (1400, 800),
position: window::Position::Centered,
min_size: None,
max_size: None,
visible: true,
resizable: true,
decorations: true,
transparent: false,
always_on_top: true,
icon: profile_icon.ok(),
},
..Default::default()
};
gui::States::run(setting)
}