Skip to content

Choosing a theme in Customize keeps colours from setup and the starter configuration #28

Closed

Description

@Seb-GRAF

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

  1. Start from the starter configuration and install examples/themes/slate in Customize → Packages.
  2. In setup, choose Appearance: Dark and finish.
  3. In Customize → Editor → Bar, choose Slate.
  4. 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.accent to #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 the theme edit that Customize and the Packages tab use only sets theme (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

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 16, 2026
  2. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions