# Phase 5 — Settings and theming Implemented native settings pages for Appearance, Wallpaper, Bar, Dock and Media preferences. Shared themed inputs, an HSV/hex colour picker, neutral panel controls, reduced motion and animated accent updates replace the earlier minimal settings surface. Bar modules can be enabled, moved between lanes and reordered with buttons; clock format and workspace count are configurable. Dock retains its visual pinned-app editor. ## Try it Run `./scripts/glassmxrph run`, then open the cog or `./scripts/glassmxrph settings`. 1. Appearance → Custom: pick a colour; adjust opacity, radius or animation settings. 2. Appearance → Matugen: configure a Matugen 4.2.x executable if it is not on PATH, then check it. Choose a supported scheme and contrast. 3. Wallpaper: choose an output, backend and directories, refresh the gallery, select an image and Apply. Choose which output supplies the global palette. 4. Bar: move, reorder or disable modules. Dock: edit pins and presentation. 5. Media: save preferences for the Phase 6 player/widget implementation. Settings persist through ConfigService; additive defaults preserve unknown preferences and existing layout/pins. Generated colours are written atomically to `$XDG_STATE_HOME/glassMxrph/palette.json`. Errors retain the last good palette; stale asynchronous results are discarded. All UI consumes the shared Theme, while glass surfaces remain neutral. ## Providers and limits Python 3 is a runtime dependency for one-shot JSON helpers. Matugen 4.2.x is the verified CLI/template contract; unsupported versions produce an explicit error. Generation uses a temporary dedicated configuration and generated JSON file, without reading user Matugen hooks. No persistent helper daemon is installed. Wallpaper adapters support an existing Serpantinum instance, an existing awww daemon, or a custom argument array using `{path}` and `{monitor}` placeholders. Auto detection prefers Serpantinum. Custom commands are executed as argument arrays, never shell strings. No wallpaper daemon is started. Serpantinum receives a cached, safely named copy because its upstream implementation interpolates paths; Serpantinum may still execute its own wallpaper/theme hooks. Those external hooks are outside this shell's control. Gallery scanning is nonrecursive, capped at 1,000 images, and supports PNG, JPEG, WebP and BMP. Images use asynchronous, bounded-size thumbnails. External wallpaper changes require Refresh or an integration hook: ```sh quickshell ipc --path ./quickshell call wallpaper changed OUTPUT /absolute/image.jpg quickshell ipc --path ./quickshell call theme regenerate quickshell ipc --path ./quickshell call theme status ``` There is no continuous filesystem/provider polling. One selected output supplies the global palette. Media preferences are implemented; MPRIS playback, player discovery and Cava remain Phase 6. Bar reordering uses buttons, not drag-and-drop. Blur/refraction remain compositor-owned; this phase does not modify HyprGlass, Hyprland or Nix configuration. Packaging integration, including Python's runtime closure, is deferred. ## Validation QML validation and configuration, dock, launcher and provider unit tests pass. Real Wayland tests cover foundation persistence/live palette reload/corrupt-file protection, launcher, dock and StatusNotifier/DBusMenu regressions. Settings tests exercise the colour picker, gallery selection, recording-backend apply, real Matugen generation, automatic/manual regeneration, failure recovery, stale in-flight results, bar editing and media preference persistence. Runtime logs are checked for warnings/errors. The settings test uses disposable images and isolated XDG paths. It does not change the user's wallpaper. Actual Serpantinum apply and awww rendering were not exercised: Serpantinum discovery was checked read-only, and awww's CLI was inspected while no daemon was running. Matugen 4.2.0 was tested directly. One foundation startup timeout cleared on rerun; the passing run had clean logs. ```sh ./scripts/validate # With tested Quickshell and Matugen on PATH; use an isolated clone if already running: python3 tests/settings_runtime.py ``` QtTest is needed only for input-driving tests. See the Phase 2–4 documents for their fixture dependencies. No Nix build or system rebuild was performed. ## Changed files - `README.md` - `dependencies.json` - `docs/architecture.md` - `docs/compatibility.md` - `docs/phase-5.md` - `docs/validation.md` - `quickshell/bar/modules/ClockModule.qml` - `quickshell/bar/modules/WorkspacesModule.qml` - `quickshell/components/GlassButton.qml` - `quickshell/components/GlassColorPicker.qml` - `quickshell/components/GlassComboBox.qml` - `quickshell/components/GlassPanel.qml` - `quickshell/components/GlassPopup.qml` - `quickshell/components/GlassTextArea.qml` - `quickshell/components/GlassTextField.qml` - `quickshell/config/defaults.json` - `quickshell/core/SettingsRegistry.qml` - `quickshell/core/ShellState.qml` - `quickshell/dock/DockItem.qml` - `quickshell/helpers/desktop.py` - `quickshell/services/ConfigLogic.js` - `quickshell/services/ConfigService.qml` - `quickshell/services/ProviderJob.qml` - `quickshell/services/SettingsLogic.js` - `quickshell/services/WallpaperService.qml` - `quickshell/services/qmldir` - `quickshell/settings/Settings.qml` - `quickshell/settings/controls/PreferenceChoice.qml` - `quickshell/settings/controls/PreferenceSlider.qml` - `quickshell/settings/controls/PreferenceToggle.qml` - `quickshell/settings/controls/SettingsPage.qml` - `quickshell/settings/pages/Appearance.qml` - `quickshell/settings/pages/Bar.qml` - `quickshell/settings/pages/Dock.qml` - `quickshell/settings/pages/Launcher.qml` - `quickshell/settings/pages/Media.qml` - `quickshell/settings/pages/Wallpaper.qml` - `quickshell/shell.qml` - `quickshell/testing/SettingsDriver.qml` - `quickshell/theme/MatugenService.qml` - `quickshell/theme/Theme.qml` - `quickshell/theme/ThemeManager.qml` - `scripts/validate` - `tests/config.test.cjs` - `tests/providers_test.py` - `tests/settings_runtime.py`