feat(proto): GetConfig/SetConfig commands and ConfigChanged event
This commit is contained in:
@@ -132,6 +132,19 @@ pub enum Cmd {
|
|||||||
Health,
|
Health,
|
||||||
Status,
|
Status,
|
||||||
Shutdown,
|
Shutdown,
|
||||||
|
GetConfig,
|
||||||
|
SetConfig {
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
default_shell: Option<String>,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
font_family: Option<String>,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
font_size: Option<u16>,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
theme: Option<String>,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
accent: Option<String>,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Daemon → subscribers push events. The active subset for M0+M1.
|
/// Daemon → subscribers push events. The active subset for M0+M1.
|
||||||
@@ -150,6 +163,7 @@ pub enum Evt {
|
|||||||
State { surface_id: SurfaceId, state: SurfaceState },
|
State { surface_id: SurfaceId, state: SurfaceState },
|
||||||
Event { record: EventRecord },
|
Event { record: EventRecord },
|
||||||
EventsRead { ids: Vec<u64> },
|
EventsRead { ids: Vec<u64> },
|
||||||
|
ConfigChanged { config: crate::config_view::ConfigView },
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|||||||
Reference in New Issue
Block a user