2022-12-06 16:12:59 +01:00
|
|
|
// Copyright 2022 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
use cosmic::iced::{Application, Settings};
|
2022-10-09 11:25:46 -07:00
|
|
|
|
|
|
|
|
mod window;
|
2023-05-30 12:03:15 -04:00
|
|
|
use env_logger::Env;
|
2022-10-09 11:25:46 -07:00
|
|
|
pub use window::*;
|
2022-09-30 08:55:37 -06:00
|
|
|
|
2022-09-30 09:35:55 -06:00
|
|
|
pub fn main() -> cosmic::iced::Result {
|
2023-05-30 12:03:15 -04:00
|
|
|
let env = Env::default()
|
|
|
|
|
.filter_or("MY_LOG_LEVEL", "info")
|
|
|
|
|
.write_style_or("MY_LOG_STYLE", "always");
|
|
|
|
|
|
|
|
|
|
env_logger::init_from_env(env);
|
2023-08-02 11:54:07 +02:00
|
|
|
cosmic::icon_theme::set_default("Pop");
|
2024-01-31 23:17:16 -05:00
|
|
|
#[allow(clippy::field_reassign_with_default)]
|
|
|
|
|
let settings = Settings {
|
2024-10-03 21:27:06 +02:00
|
|
|
default_font: cosmic::font::default(),
|
2024-01-31 23:17:16 -05:00
|
|
|
window: cosmic::iced::window::Settings {
|
|
|
|
|
min_size: Some(cosmic::iced::Size::new(600., 300.)),
|
|
|
|
|
..cosmic::iced::window::Settings::default()
|
|
|
|
|
},
|
|
|
|
|
..Settings::default()
|
|
|
|
|
};
|
2022-09-30 14:51:39 -06:00
|
|
|
Window::run(settings)
|
2022-09-30 08:55:37 -06:00
|
|
|
}
|