mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
The (now identical) config.rs of both bars becomes crates/komorebi-bar-core/src/config/komobar.rs; each shell config.rs is one line, `pub use komorebi_bar_core::config::*;`. Import edits only: statics from crate::statics, PathExt/SocketMessage from komorebi-protocol, Rect from komorebi-layouts, the platform hooks and WidgetConfig as in the core. The core gains komorebi-themes (KomobarTheme, Colour; schemars forwarded): one line in each Cargo.lock. About 590 lines per bar are gone. Because the configuration types are now all in the core, the oracle test regenerates the macOS schema natively: the macOS view of `schema_for!(KomobarConfig)` is byte-identical to komorebi-for-mac/schema.bar.json (new test `generated`). Windows is still compared by the out-of-tree harness: three descriptions in komorebi-protocol and komorebi-themes read differently when compiled for Windows, which a Linux test cannot do. Verified: native bar-core tests 3 unit + 6 oracle (incl. the generated macOS view); schema harness macOS and Windows byte-identical (3,774 / 9,091 lines); Windows clippy -D warnings --locked clean; macOS fake-CC check --locked 0 errors (core files touched first). Not run: the bars.