mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-03 05:34:32 +01:00
refactor(bar-core): move config.rs (KomobarConfig and the mouse options) into the core
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.
This commit is contained in:
1 parent
afa7fcd219
commit
ef89899bd9
8 files changed
+638
-1211
No files matched your search
Generated
+1
@@ -3452,6 +3452,7 @@ dependencies = [
|
||||
"komorebi-config",
|
||||
"komorebi-layouts",
|
||||
"komorebi-protocol",
|
||||
"komorebi-themes",
|
||||
"lazy_static",
|
||||
"reqwest",
|
||||
"schemars 1.2.3",
|
||||
|
||||
Reference in new issue
Block a user