From cc02f57a7cfe09a00b65b44007a833f098a49913 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 22:22:49 -0700 Subject: [PATCH] refactor(kde): converge the docs of AspectRatio to the Windows text The two variant docs said 'A predefined aspect ratio' and 'A custom W:H aspect ratio' in KDE and macOS and 'Predefined aspect ratio' and 'Custom W:H aspect ratio' in Windows; the code of AspectRatio and PredefinedAspectRatio is identical in all three trees, so the docs are what stops one shared copy. Schema: komorebi-for-kde/schema.json regenerated with the real komorebic: 2 description lines change, and the file equals the old one after deleting every description (jq walk), so description-only. schema.asc.json unchanged. Verified: KDE komorebic build and regeneration (tier 1). --- komorebi-for-kde/komorebi/src/window.rs | 4 ++-- komorebi-for-kde/schema.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/komorebi-for-kde/komorebi/src/window.rs b/komorebi-for-kde/komorebi/src/window.rs index 0cfbe64f..8ba0ea16 100644 --- a/komorebi-for-kde/komorebi/src/window.rs +++ b/komorebi-for-kde/komorebi/src/window.rs @@ -436,10 +436,10 @@ impl Window { #[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-kde/schema.json b/komorebi-for-kde/schema.json index 280b8ce7..c229f087 100644 --- a/komorebi-for-kde/schema.json +++ b/komorebi-for-kde/schema.json @@ -677,12 +677,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,