theme: add bar-position setting
This commit is contained in:
parent
3ea687a5c8
commit
2500c05f70
15 changed files with 178 additions and 32 deletions
|
|
@ -25,7 +25,7 @@ use {
|
|||
},
|
||||
logging::LogLevel,
|
||||
tasks::{JoinHandle, JoinSlot},
|
||||
theme::{Color, colors::Colorable, sized::Resizable},
|
||||
theme::{BarPosition, Color, colors::Colorable, sized::Resizable},
|
||||
timer::Timer,
|
||||
video::{
|
||||
BlendSpace, ColorSpace, Connector, DrmDevice, Eotf, Format, GfxApi, Mode, TearingMode,
|
||||
|
|
@ -1016,6 +1016,16 @@ impl ConfigClient {
|
|||
show
|
||||
}
|
||||
|
||||
pub fn set_bar_position(&self, position: BarPosition) {
|
||||
self.send(&ClientMessage::SetBarPosition { position });
|
||||
}
|
||||
|
||||
pub fn get_bar_position(&self) -> BarPosition {
|
||||
let res = self.send_with_response(&ClientMessage::GetBarPosition);
|
||||
get_response!(res, BarPosition::Top, GetBarPosition { position });
|
||||
position
|
||||
}
|
||||
|
||||
pub fn set_middle_click_paste_enabled(&self, enabled: bool) {
|
||||
self.send(&ClientMessage::SetMiddleClickPasteEnabled { enabled });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue