Repository navigation
Description
What happens
After choosing a theme in Customize or the Packages tab, colours that StableBar wrote earlier stay on top of it. Widgets keep the colours setup wrote for Light or Dark, and the workspace highlight keeps the starter configuration's #007aff instead of the theme's accent.
Steps to reproduce
- Start from the starter configuration and install
examples/themes/slatein Customize → Packages. - In setup, choose Appearance: Dark and finish.
- In Customize → Editor → Bar, choose Slate.
- Widgets get Slate's corner radius but keep setup's dark colours, and stay dark in light mode.
Expected
The bar shows Slate's colours and follows light and dark mode. Colours StableBar wrote on its own don't count as the user's overrides.
Environment
main at 878fccc. Theme packages are in v0.5.0-beta.31, not in v0.4.0.
Evidence
Found by reading the code; not yet reproduced in the running app.
Diagnosis
ConfigurationLoader.compose (Sources/StableBar/ConfigurationLoader.swift:196) merges widget packages, then the theme, then the main file, so any defaults key in the main file beats the theme. That order is intended (#26), but StableBar itself puts colours there:
- The starter sets
defaults.accentto#007aff(Resources/config.json). Without it, the accent falls back to#f7821b(Sources/StableBar/Configuration.swift:178). - Setup's Light and Dark write five colours into
defaults(Sources/StableBar/SetupPreferences.swift:47). Setup removes them when it chooses a theme (:67), but thethemeedit that Customize and the Packages tab use only setstheme(Sources/StableBar/ConfigurationEdits.swift:82,Sources/StableBar/PackagesView.swift:219). - Customize → Editor → Bar → All widgets writes text and background colours into
defaults(Sources/StableBar/CustomizationWindow.swift:341), which then beat every theme.
Related
- feat: pick a theme from installed theme packages #26 lists two neighbouring limitations: setup removes its five colour keys whatever their values, and a theme chosen in an include still applies after choosing Built-in.
- Merge profiles by name across includes, packages and the main file #24: a main file with its own
profilesdrops the theme's dark profile. - Let colours vary by light and dark appearance, and ship the built-in look as a theme #29: one key that forces light or dark, instead of setup writing colours.
Triaged by Claude Code (Claude Opus 5.5).
Activity
stablebar-releases commentedon Oct 21, 2026
🎉 This issue has been resolved in version 0.5.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀