Settings module: the wallpaper chooser moves in, and a Dark mode switch
CI / test (push) Failing after 16s
CI / test (push) Failing after 16s
- The session settings module becomes the panel's "Settings" button. Its popup lists the session switches, then a "Wallpaper" heading and the wallpapers (current one ticked); a click on a wallpaper shows it at once, as the old chooser did. Up/Down skip the heading. - The standalone wallpaper module and its world are removed. A saved panel.edn that lists "wallpaper" gets the settings module in its place (or just drops it when Settings is there). - New "Dark mode" setting (on by default). Off swaps the compositor to the Moon Day palette (ThemeTokens::moon_day, the values of config/themes/moon-day.json) for the shell, panel modules, window decorations and the switcher; on goes back to the configured theme. Saved in state.edn as :theme :light (absent or :dark: dark) and applied at startup by restore_state. - Tests: the native wallpaper test drives the settings module, the settings test flips Dark mode and checks the theme, the state.edn round trip covers :theme, panel migration unit test, and the host-wasm test covers the switches and the wallpaper rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgxf6exeYrDGcy4WW3
This commit is contained in:
26 files changed
+295
-878
No files matched your search
@@ -118,7 +118,8 @@ interface session {
|
||||
}
|
||||
|
||||
/// The desktop wallpaper. The shell draws a fixed set of wallpapers (from draw ops, coloured by the
|
||||
/// theme); a module with this capability lists them and picks which one is on the desktop.
|
||||
/// theme); a module with this capability (the settings module) lists them and picks which one is on
|
||||
/// the desktop.
|
||||
interface wallpaper {
|
||||
/// Display names, indexed by choice.
|
||||
wallpapers: func() -> list<string>;
|
||||
@@ -127,8 +128,9 @@ interface wallpaper {
|
||||
set-wallpaper: func(index: u32);
|
||||
}
|
||||
|
||||
/// Session settings: how the login session starts and what it remembers. The shell keeps them in
|
||||
/// state.edn; a module with this capability lists them as on/off switches and flips them.
|
||||
/// Session settings: how the login session starts, what it remembers and how it looks (dark or
|
||||
/// light). The shell keeps them in state.edn; a module with this capability lists them as on/off
|
||||
/// switches and flips them.
|
||||
interface session-settings {
|
||||
/// Display names, indexed by setting.
|
||||
settings: func() -> list<string>;
|
||||
|
||||
Reference in new issue
Block a user