diff --git a/crates/komorebi-bar-core/tests/schema_oracle.rs b/crates/komorebi-bar-core/tests/schema_oracle.rs index 48380b84..510057e8 100644 --- a/crates/komorebi-bar-core/tests/schema_oracle.rs +++ b/crates/komorebi-bar-core/tests/schema_oracle.rs @@ -21,9 +21,9 @@ struct Pin { const PINS: [Pin; 2] = [ Pin { file: "schema.bar.json", - lines: 9_090, - bytes: 248_529, - fnv1a: 0x5573_0134_1968_bff9, + lines: 9_091, + bytes: 248_540, + fnv1a: 0x83d6_6fd4_9ae8_3766, }, Pin { file: "komorebi-for-mac/schema.bar.json", diff --git a/komorebi-bar/src/render.rs b/komorebi-bar/src/render.rs index 482e3b74..bdcfd815 100644 --- a/komorebi-bar/src/render.rs +++ b/komorebi-bar/src/render.rs @@ -367,7 +367,8 @@ impl RenderConfig { pub struct GroupingConfig { /// Styles for the grouping pub style: Option, - /// Alpha value for the color transparency [[0-255]] (default: 200) + /// Alpha value for the color transparency [[0-255]] + #[cfg_attr(feature = "schemars", schemars(extend("default" = 200)))] pub transparency_alpha: Option, /// Rounding values for the 4 corners. Can be a single or 4 values. pub rounding: Option, diff --git a/komorebi-for-mac/komorebi-bar/src/render.rs b/komorebi-for-mac/komorebi-bar/src/render.rs index 1840daa2..bdcfd815 100644 --- a/komorebi-for-mac/komorebi-bar/src/render.rs +++ b/komorebi-for-mac/komorebi-bar/src/render.rs @@ -44,6 +44,7 @@ pub enum Grouping { } #[derive(Clone)] +/// Render configuration pub struct RenderConfig { /// Komorebi monitor index of the monitor on which to render the bar pub monitor_idx: usize, diff --git a/schema.bar.json b/schema.bar.json index f8bd8d58..e832d2fe 100644 --- a/schema.bar.json +++ b/schema.bar.json @@ -2807,12 +2807,13 @@ ] }, "transparency_alpha": { - "description": "Alpha value for the color transparency [[0-255]] (default: 200)", + "description": "Alpha value for the color transparency [[0-255]]", "type": [ "integer", "null" ], "format": "uint8", + "default": 200, "maximum": 255, "minimum": 0 }