chore: initial commit

This commit is contained in:
wfx 2026-01-07 20:22:49 +01:00
commit ab93f649bd
31 changed files with 9918 additions and 0 deletions

22
src/config.rs Normal file
View file

@ -0,0 +1,22 @@
// SPDX-License-Identifier: MPL-2.0
// src/config.rs
use cosmic::cosmic_config::{self, CosmicConfigEntry, cosmic_config_derive::CosmicConfigEntry};
use std::path::PathBuf;
/// Global configuration for the application.
#[derive(Debug, Clone, CosmicConfigEntry, Eq, PartialEq)]
#[version = 1]
pub struct AppConfig {
/// Optional default directory to open images from.
pub default_image_dir: Option<PathBuf>,
}
impl Default for AppConfig {
fn default() -> Self {
Self {
// TODO: Use xdg dir for picture
default_image_dir: Some(PathBuf::from("~/Pictures")),
}
}
}