mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 01:58:51 +02:00
docs(wm): add stackbar config struct docs
This commit is contained in:
@@ -304,22 +304,30 @@ pub struct StaticConfig {
|
|||||||
/// Set display index preferences
|
/// Set display index preferences
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub display_index_preferences: Option<HashMap<usize, String>>,
|
pub display_index_preferences: Option<HashMap<usize, String>>,
|
||||||
|
/// Stackbar configuration options
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub stackbar: Option<StackbarConfig>,
|
pub stackbar: Option<StackbarConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct TabsConfig {
|
pub struct TabsConfig {
|
||||||
|
/// Width of a stackbar tab
|
||||||
width: Option<i32>,
|
width: Option<i32>,
|
||||||
|
/// Focused tab text colour
|
||||||
focused_text: Option<Colour>,
|
focused_text: Option<Colour>,
|
||||||
|
/// Unfocused tab text colour
|
||||||
unfocused_text: Option<Colour>,
|
unfocused_text: Option<Colour>,
|
||||||
|
/// Tab background colour
|
||||||
background: Option<Colour>,
|
background: Option<Colour>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct StackbarConfig {
|
pub struct StackbarConfig {
|
||||||
|
/// Stackbar height
|
||||||
pub height: Option<i32>,
|
pub height: Option<i32>,
|
||||||
|
/// Stackbar mode
|
||||||
pub mode: Option<StackbarMode>,
|
pub mode: Option<StackbarMode>,
|
||||||
|
/// Stackbar tab configuration options
|
||||||
pub tabs: Option<TabsConfig>,
|
pub tabs: Option<TabsConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user