feat(bar): add label prefix config opt

This commit makes the label prefix configurable. Users can select if
they want to show an icon, only text, or both text and an icon.
This commit is contained in:
Csaba
2024-10-10 00:23:01 +02:00
committed by LGUG2Z
parent 853db2f15f
commit 07a1538905
8 changed files with 276 additions and 50 deletions
+12
View File
@@ -164,3 +164,15 @@ impl From<KomorebiTheme> for KomobarTheme {
}
}
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema)]
pub enum LabelPrefix {
/// Show no prefix
None,
/// Show an icon
Icon,
/// Show text
Text,
/// Show an icon and text
IconAndText,
}