Skip to content

Match profiles to the theme the bar is drawn with #696

Closed

Description

@M4n0x

Problem

Settings tuned for one theme, such as widget paddings sized for its pills or a date drawn as an accent chip, live in the main file and apply under every theme. Putting them in a profile only helps if you switch the profile on and off by hand whenever you change theme. Profiles match appearance, onBattery, displayCount, externalDisplay and app, but not the theme (ProfileConditions in Sources/StableBar/ThemeConfiguration.swift).

This is parts 1 and 2 of #666. Parts 3 and 4 (an Every theme / Only with Fern switch in Theme and Style, and a Theme notice that moves overrides into the theme's profile) stay in #666.

Proposal

  1. A theme profile condition that matches the ID of the theme the bar is drawn with, at any version:

    { "name": "Fern", "when": { "theme": "fern" }, "configuration": { "widgetOverrides": { "date": { "background": "@token.accent" } } } }
    • built-in matches Built-in, including a selected theme turned off with "enabled": false.
    • A theme set for one kind of screen under screens, a screen setup's own bar, and the theme being tried in Try Themes each count as the theme on that bar.
    • composeFiles in Sources/StableBar/ConfigurationLoader.swift settles the theme before finish matches profiles, so a profile can't change the condition it depends on.
    • Older versions treat a condition they don't know as never matching, so such a profile just stays off there.
  2. Settings → Profiles → + Condition → The theme is… lists Built-in and each bundled or installed theme once, whatever its version. The chip reads "Fern is the theme".

Possible today

Only by hand: turn the profile off before switching theme and on again after.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.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

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions