From 7ebead10aade13f6029d7c74ff3ccae09e3c0109 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 22:23:11 -0700 Subject: [PATCH] refactor(mac): converge the docs of AspectRatio to the Windows text Same two variant docs as in the KDE revision before: 'A predefined aspect ratio' and 'A custom W:H aspect ratio' become the Windows 'Predefined aspect ratio' and 'Custom W:H aspect ratio'. Schema: komorebi-for-mac/schema.json cannot be regenerated on this host, so the two description lines were edited to the text of the doc comments; the file equals the old one after deleting every description (jq walk), so description-only. The next revisions compare the generated definitions of the shared crate with this file. Verified: jq description-only comparison (4 changed lines). Doc comments only: no compile needed, not run. --- komorebi-for-mac/komorebi/src/window.rs | 4 ++-- komorebi-for-mac/schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/komorebi-for-mac/komorebi/src/window.rs b/komorebi-for-mac/komorebi/src/window.rs index 008f6006..3edd9f82 100644 --- a/komorebi-for-mac/komorebi/src/window.rs +++ b/komorebi-for-mac/komorebi/src/window.rs @@ -1597,10 +1597,10 @@ impl From<&CFDictionary> for WindowBounds { #[serde(untagged)] /// Aspect ratio for temporarily floating windows pub enum AspectRatio { - /// A predefined aspect ratio + /// Predefined aspect ratio #[cfg_attr(feature = "schemars", schemars(title = "Predefined"))] Predefined(PredefinedAspectRatio), - /// A custom W:H aspect ratio + /// Custom W:H aspect ratio #[cfg_attr(feature = "schemars", schemars(title = "Custom"))] Custom(i32, i32), } diff --git a/komorebi-for-mac/schema.json b/komorebi-for-mac/schema.json index 2f8ecfca..e86315f9 100644 --- a/komorebi-for-mac/schema.json +++ b/komorebi-for-mac/schema.json @@ -639,12 +639,12 @@ "anyOf": [ { "title": "Predefined", - "description": "A predefined aspect ratio", + "description": "Predefined aspect ratio", "$ref": "#/$defs/PredefinedAspectRatio" }, { "title": "Custom", - "description": "A custom W:H aspect ratio", + "description": "Custom W:H aspect ratio", "type": "array", "maxItems": 2, "minItems": 2,