docs(schema): add deprecations and improve formatting

This commit is contained in:
LGUG2Z
2025-12-21 21:31:13 -08:00
parent 1cb8ed7f10
commit 4b1e3bd448
10 changed files with 72 additions and 25 deletions
+4 -1
View File
@@ -103,7 +103,8 @@ pub struct KomorebiWorkspaceLayerConfig {
pub struct KomorebiFocusedContainerConfig {
/// Enable the Komorebi Focused Container widget
pub enable: bool,
/// DEPRECATED: use 'display' instead (Show the icon of the currently focused container)
/// DEPRECATED: use `display` instead (Show the icon of the currently focused container)
#[deprecated(note = "Use `display` instead")]
pub show_icon: Option<bool>,
/// Display format of the currently focused container
pub display: Option<DisplayFormat>,
@@ -506,7 +507,9 @@ impl FocusedContainerBar {
if !value.enable {
return None;
}
// Handle legacy setting - convert show_icon to display format
#[allow(deprecated)]
let format = value
.display
.unwrap_or(if value.show_icon.unwrap_or(false) {