control-center: add in-process control center
This commit is contained in:
parent
008e8a671a
commit
186d5b694b
28 changed files with 859 additions and 14 deletions
|
|
@ -1046,6 +1046,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SetMiddleClickPasteEnabled { enabled });
|
||||
}
|
||||
|
||||
pub fn open_control_center(&self) {
|
||||
self.send(&ClientMessage::OpenControlCenter);
|
||||
}
|
||||
|
||||
pub fn set_workspace_display_order(&self, order: WorkspaceDisplayOrder) {
|
||||
self.send(&ClientMessage::SetWorkspaceDisplayOrder { order });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -845,6 +845,7 @@ pub enum ClientMessage<'a> {
|
|||
proportional: Option<Vec<&'a str>>,
|
||||
monospace: Option<Vec<&'a str>>,
|
||||
},
|
||||
OpenControlCenter,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
|
|
@ -380,3 +380,8 @@ pub fn on_unload(f: impl FnOnce() + 'static) {
|
|||
pub fn set_middle_click_paste_enabled(enabled: bool) {
|
||||
get!().set_middle_click_paste_enabled(enabled);
|
||||
}
|
||||
|
||||
/// Opens the control center.
|
||||
pub fn open_control_center() {
|
||||
get!().open_control_center();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue