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");
|
|
|
|
|
let mut settings = Settings::default();
|
2022-09-30 14:51:39 -06:00
|
|
|
settings.window.min_size = Some((600, 300));
|
|
|
|
|
Window::run(settings)
|
2022-09-30 08:55:37 -06:00
|
|
|
}
|