Commit Graph
6 Commits
Author SHA1 Message Date
LGUG2Z cc02f57a7c 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).
2026-10-31 01:37:54 -07:00
LGUG2Z aa78347add refactor(kde): converge the docs of the core behaviour enums to the Windows spelling
WindowContainerBehaviour, FloatingLayerBehaviour, Placement, CrossBoundaryBehaviour and WindowPlacement said 'behavior' in KDE and 'behaviour' in Windows and macOS (the doc text is otherwise identical), so one copy in komorebi-config can be moved only after they agree. Same choice as the step 2 payload enums.

Schema: komorebi-for-kde/schema.json regenerated with the real komorebic (5 description lines, 10 changed lines); equal to the old file after deleting every description (jq walk), so description-only. schema.asc.json is unchanged. Windows and macOS schemas are untouched (they already said 'behaviour').

Verified: KDE cargo build -p komorebic and regeneration (tier 1). Not done: komorebi-for-kde/nix/komorebi-options.nix still carries the old text and an old schema-sha256 header (already out of date since step 2); no schemars-nixgen here, refreshed by substitution at the end of the step.
2026-10-31 01:37:54 -07:00
LGUG2Z c586257e57 refactor(kde): converge the payload enums of core/mod.rs to the shared text
The seven payload enums take the shared text (same one as the Windows revision): the Windows docs of WindowKind's variants, the Windows spelling 'behaviour' in MoveBehaviour, MonocleFocusBehaviour and OperationBehaviour, and the cfg_attr doc of ApplicationIdentifier::Class (KDE keeps 'Role or subrole'). The SubscribeOptions doc loses its doctest and its intra-doc links here; the example comes back in the crate when the type moves, and an example with SocketMessage when that moves.

Intentional schema change, description only: komorebi-for-kde/schema.json spells behaviour in three descriptions (monocle focus, move, operation). Regenerated with komorebic static-config-schema and compared with the checked-in file: identical; schema.asc.json also identical to a regeneration.

Verified: cargo test -p komorebi --lib --test schemas in komorebi-for-kde: 302 + 5 passed, 0 failed; --doc: 44 + 2 passed (one doctest fewer: SubscribeOptions).
2026-10-31 01:37:53 -07:00
LGUG2Z ad2281de19 refactor(kde): converge animation/prefix.rs to the shared AnimationPrefix
KDE's AnimationPrefix gains the Transparency and Workspace variants, so that all three trees share the union {movement, transparency, workspace} (D15/D16). KDE only ever uses Movement; the new variants are accepted in the configuration and on the command line and ignored by the KDE daemon, as macOS ignores Transparency today.

Intentional schema change, regenerated with komorebic static-config-schema: in komorebi-for-kde/schema.json the per-prefix animation settings (enabled, duration, style) change from properties {movement} with additionalProperties false to additionalProperties of the value type (the same shape as the Windows schema). The animation CLI docs list the three values.

Verified: cargo test -p komorebi --lib --test schemas --test animation in komorebi-for-kde: 305 + 5 + 1 passed, 0 failed.
2026-10-31 01:37:53 -07:00
LGUG2Z 14a011c537 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).
2026-10-31 01:37:53 -07:00
LGUG2Z 8b463317b3 chore(repo): move into komorebi-for-kde/ 2026-10-30 19:28:06 -07:00