mod app; mod covers; mod i18n; mod media; mod menubar; mod player; mod route; mod screens; mod session; mod store; #[cfg(feature = "snapshot")] mod snapshot; mod ui; mod widgets; use iced::{Size, window}; use app::App; use ui::theme; /// The Linux application id: the window's Wayland app id / X11 class and the `.desktop` name. #[cfg(target_os = "linux")] const APP_ID: &str = "it.panov.musyx.desktop"; fn main() -> iced::Result { let app = iced::application(App::new, App::update, App::view) .title(App::title) .theme(App::theme) .subscription(App::subscription) .default_font(theme::BODY) .window(window::Settings { size: Size::new(1280.0, 800.0), min_size: Some(Size::new(960.0, 620.0)), icon: window::icon::from_file_data(include_bytes!("../assets/icon/musyx.png"), None).ok(), // Matches the installed `it.panov.musyx.desktop.desktop`, so the shell shows its name and icon. #[cfg(target_os = "linux")] platform_specific: window::settings::PlatformSpecific { application_id: APP_ID.to_owned(), ..Default::default() }, ..window::Settings::default() }) .centered(); theme::FONTS.into_iter().fold(app, |app, font| app.font(font)).run() }