cosmic-greeter/daemon/src/lib.rs

23 lines
641 B
Rust
Raw Normal View History

2024-02-06 15:03:07 -07:00
pub use cosmic_bg_config::Color;
pub use cosmic_comp_config::XkbConfig;
2024-02-06 15:48:57 -07:00
pub use cosmic_theme::Theme;
2024-02-06 15:03:07 -07:00
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct UserData {
pub uid: u32,
pub name: String,
pub full_name_opt: Option<String>,
pub icon_opt: Option<Vec<u8>>,
2024-02-06 15:48:57 -07:00
pub theme_opt: Option<Theme>,
2024-02-06 15:03:07 -07:00
pub wallpapers_opt: Option<Vec<(String, WallpaperData)>>,
pub xkb_config_opt: Option<XkbConfig>,
pub clock_military_time: bool,
// pub clock_show_seconds: bool,
2024-02-06 15:03:07 -07:00
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum WallpaperData {
Bytes(Vec<u8>),
Color(Color),
}