Add daemon to proxy user backgrounds
This commit is contained in:
parent
3e2743a2e6
commit
fd049483c3
15 changed files with 487 additions and 58 deletions
16
daemon/src/lib.rs
Normal file
16
daemon/src/lib.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pub use cosmic_bg_config::Color;
|
||||
|
||||
#[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>>,
|
||||
pub wallpapers_opt: Option<Vec<(String, WallpaperData)>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub enum WallpaperData {
|
||||
Bytes(Vec<u8>),
|
||||
Color(Color),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue