Settings module: Session, Desktop and Panel tabs; the module manager moves in
CI / test (push) Failing after 15s
CI / test (push) Failing after 15s
- The settings popup gets a tab bar, split by where things live: Session (the switches), Desktop
(what is drawn on the desktop: the wallpaper list under a "Wallpaper" heading) and Panel (what
the module manager showed: modules in the panel to remove, modules to add, Browse...).
Left/Right or 1/2/3 switch tabs; it reopens on the tab it was left on. Modules can't be placed
on the desktop yet (every wasm module lives in the panel; the desktop card is built in), so
the Desktop tab has no module section until they can.
- The standalone module-manager module and its world are removed; the settings module imports
`modules`. Saved panels listing "module-manager" get the settings module in its place.
- DesktopShell::open_settings(SettingsTab) opens the settings module on a tab (loading it into the
panel if needed), for the panel menu and "System settings" entries; the wasm picker
("Modules..." in the panel menu) is open_settings(Panel).
- Tests: the native picker test drives the Panel tab, the wallpaper and switch tests go through
the tabs, an open_settings test; the wasm and host-wasm module tests use the settings module.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hgxf6exeYrDGcy4WW3
This commit is contained in:
20 files changed
+316
-917
No files matched your search
+3
-7
@@ -54,12 +54,6 @@ world inspector-widget {
|
||||
import inspector;
|
||||
}
|
||||
|
||||
/// Loads and unloads the system's wasm modules; the wasm picker opens this app.
|
||||
world module-manager-widget {
|
||||
include widget;
|
||||
import modules;
|
||||
}
|
||||
|
||||
/// Everything a panel module can be granted. The native host instantiates any module against this
|
||||
/// one world (a module simply imports the subset it uses) and serves each import from the data the
|
||||
/// compositor publishes (wit/host/plasmoids.wit).
|
||||
@@ -85,9 +79,11 @@ world logout-widget {
|
||||
import session;
|
||||
}
|
||||
|
||||
/// The settings module: session switches (restore, window places, dark mode) and the wallpaper.
|
||||
/// The settings module: session switches (restore, window places, dark mode), the wallpaper, and
|
||||
/// the panel's modules (load, unload, browse); the panel menu's "Modules..." opens that tab.
|
||||
world session-settings-widget {
|
||||
include widget;
|
||||
import session-settings;
|
||||
import wallpaper;
|
||||
import modules;
|
||||
}
|
||||
Reference in new issue
Block a user