// AGENTS.md §52 color system + theme switcher. // // `Theme` and `Palette` live on `MainWindow` rather than as `export global` — // Slint 1.18 dead-code-eliminates globals whose binding is compile-time // reducible (which Theme always is when the default `appearance` is Dark), so // the only way to keep `Theme` reachable from Rust is to reference it through // a property on the root component. `MainWindow.theme` is the single source // of truth; everything else is derived in app.slint. export enum AppearanceMode { System, Light, Dark, }