2024-02-06 15:03:07 -07:00
|
|
|
pub use cosmic_bg_config::Color;
|
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)>>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
|
|
|
|
pub enum WallpaperData {
|
|
|
|
|
Bytes(Vec<u8>),
|
|
|
|
|
Color(Color),
|
|
|
|
|
}
|