theme: add bar-position setting
This commit is contained in:
parent
3ea687a5c8
commit
2500c05f70
15 changed files with 178 additions and 32 deletions
|
|
@ -177,6 +177,26 @@ pub fn reset_font() {
|
|||
get!().reset_font()
|
||||
}
|
||||
|
||||
#[non_exhaustive]
|
||||
#[derive(Serialize, Deserialize, Debug, Copy, Clone, PartialEq, Eq, Default)]
|
||||
pub enum BarPosition {
|
||||
#[default]
|
||||
Top,
|
||||
Bottom,
|
||||
}
|
||||
|
||||
/// Sets the position of the bar.
|
||||
///
|
||||
/// Default: `Top`.
|
||||
pub fn set_bar_position(position: BarPosition) {
|
||||
get!().set_bar_position(position);
|
||||
}
|
||||
|
||||
/// Gets the position of the bar.
|
||||
pub fn get_bar_position() -> BarPosition {
|
||||
get!(BarPosition::Top).get_bar_position()
|
||||
}
|
||||
|
||||
/// Elements of the compositor whose color can be changed.
|
||||
pub mod colors {
|
||||
use {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue