//! marten — a modern, accuracy-first image viewer for Linux.
//!
//! Named after the marten (genus *Martes*), a small agile mustelid native to
//! forests across the Northern Hemisphere. Like its cousin the ferret, the
//! marten is quick, curious, and nimble — fitting energy for an image viewer
//! designed to move fast through large photo libraries.

mod app;
mod codec;
mod config;
mod nav;
mod settings;
mod ui;

fn main() -> iced::Result {
    env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("warn"))
        .format_timestamp(None)
        .init();

    log::info!("Starting marten v{}", env!("CARGO_PKG_VERSION"));

    iced::application("marten", app::Viewer::update, app::Viewer::view)
        .theme(|_| iced::Theme::Dark)
        .subscription(app::Viewer::subscription)
        .window_size(iced::Size::new(1200.0, 800.0))
        .run()
}
