From 14a011c537a79de4732dda851ec2b65a7164fb98 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 21:08:58 -0700 Subject: [PATCH] refactor(kde): converge core/animation.rs to the shared version The enum, its serde impls and tests were already the shared text; the only difference left is the doc of CubicBezier, which now says 'Bezier' (the Windows spelling). That text is a description in schema.json, so schema.json changes in that one line (description only). QtCurve stays in this file until the type moves, then in a KDE-only file. Verified: cargo test -p komorebi --lib --test schemas in komorebi-for-kde: 305 + 5 passed, 0 failed (the schemas test compares the checked-in schema.json). --- komorebi-for-kde/komorebi/src/core/animation.rs | 2 +- komorebi-for-kde/schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/komorebi-for-kde/komorebi/src/core/animation.rs b/komorebi-for-kde/komorebi/src/core/animation.rs index c0e9b18c..dc170f9b 100644 --- a/komorebi-for-kde/komorebi/src/core/animation.rs +++ b/komorebi-for-kde/komorebi/src/core/animation.rs @@ -76,7 +76,7 @@ pub enum AnimationStyle { EaseInOutBounce, #[cfg_attr(feature = "schemars", schemars(title = "CubicBezier"))] #[value(skip)] - /// Custom Cubic Bézier function + /// Custom Cubic Bezier function CubicBezier(f64, f64, f64, f64), } diff --git a/komorebi-for-kde/schema.json b/komorebi-for-kde/schema.json index 118bd717..4a209b06 100644 --- a/komorebi-for-kde/schema.json +++ b/komorebi-for-kde/schema.json @@ -549,7 +549,7 @@ }, { "title": "CubicBezier", - "description": "Custom Cubic Bézier function", + "description": "Custom Cubic Bezier function", "type": "object", "properties": { "CubicBezier": {