Skip to content

Customizing a theme is confusing: edits read as overrides, two editors disagree and resets are hard to find #853

Closed

Description

@Seb-GRAF

Problem

Settings → Theme does four jobs on one long page: choosing a theme, accepting links, editing the look, and saving or sharing themes. It treats every edit as a conflict with the theme, and the same values are edited again, differently, in the bar editor.

Edits read as overrides, and the count is wrong

  • Under the gallery, "N of your settings replace what Léman sets" uses the warning color. It stays even with nothing to reset: "None of your settings replace…" beside a disabled Reset them (ThemeOverrides.notice, ThemeOverrideNotice in Sources/StableBar/LinkedThemeCard.swift).
  • It counts a widget's own style wherever the theme's defaults set the same property (ThemeOverrides.init in Sources/StableBar/ThemeOverrides.swift). Use this bar keeps each shared widget's style (BarLink.widgetProperties, BarLinkCandidate.edits), so someone who just installed a shared bar reads "25 of your settings replace what Léman (shared) sets". Reset them then deletes those styles and makes the bar less like the one that was shared.
  • Reset them removes only values the theme also sets. Values you added, such as a font or a margin, stay, so there's no way back to the plain theme. The notice disappears when a screen is selected (AppearanceView.body).
  • Edits made for one theme apply under every theme (Keep settings tuned for one theme from applying under every other theme #666): after switching from Léman to Nord, Nord no longer looks like its card.

Two editors for the same values

Theme → Widgets, Groups and Bar and the bar editor's Every widget, Every group and Bar write the same keys with different fields, names and scope:

  • Only the bar editor has widget hover background and border width, group flare, and the bar's margin, which sits in Placement although it's a theme property.
  • Only Theme has popups, Liquid Glass and theme colors. Neither has popup text color or font.
  • Every widget and Every group always edit the main file; Theme can edit one screen.
  • One setting has two names: Corner radius or Corners; Spacing, Between widgets or Space between widgets; Background or Fill.

Resets are hard to find

  • A widget's Reset to defaults… is in its "…" menu. Go back to the Every widget look appears only at the bottom of Style, and only after a change (Sources/StableBar/BarInspector.swift).
  • Saved and shared themes have no menu in the gallery. Removing one means Store → the package → Uninstall… for each version, and each save under the same name adds a version.

Light and dark

  • A widget color can differ in dark mode only through Different in Dark Mode, a mini switch inside the color popover (Sources/StableBar/FillPicker.swift). Theme colors show a split swatch; widget colors show a hex with a grey "light/dark".
  • Both sides of a pair must be hex (HexColor.init(from:) in Sources/StableBar/Configuration.swift), so "the theme's Text color in light, green in dark" can't be saved.
  • A value that isn't a color, such as an image, a size or a token holding a name, needs a profile with when.appearance. OpenVPN Connect ships one to swap its black logo for a white one. The profile appears among the user's own profiles, with nothing saying it comes from the package (Sources/StableBar/ProfilesView.swift). It also picks the wrong logo when the bar's color doesn't follow the appearance: under Notch in light mode, the black logo sits on Notch's black strip.

Words and badges

  • Saved and shared themes show Local folder in the warning color (PackageOrigin.local; links and Save as Theme install with from: nil).
  • The screen segment, All setups / This setup only / Shared bar only and the profile picker sit at the top of the page and change what every control below edits, without saying so where you edit.
  • The All / Included / Store filter shows saved and shared themes only under All.
  • A theme's own settings appear only in Store → the package.

Proposal

Principles

  1. A theme is a starting point. Edits to the look belong to the theme they were made on: switching themes leaves them with it, and choosing it again brings them back.
  2. Every look setting has one control, one name and one place.
  3. Everything resets in one click: a value, a section, a widget's style, a widget, a theme's edits, a saved theme.
  4. Every color shows its light and dark values side by side.

1. Edits belong to their theme

  • Settings saves edits to the look into a main-file profile whose only condition is the theme, "when": { "theme": "leman" } (feat: match profiles to the theme the bar is drawn with #697, since 0.16.0), named "Léman edits". It creates the profile on the first edit, or uses an existing one whose only condition is that theme. It removes the profile once it's empty. No new configuration key, and it saves the way Edit the bar for this profile saves into a profile today.
  • A theme's edits are the look that Save as Theme… moves: theme colors, defaults, popupDefaults, groupDefaults, roles, workspaceDefaults, groups, and the bar's height, margin, inset, spacing, background, style, notchWidth, notchSpacing, fillNotch, popupOffset and glass. They also include a widget's Style tab: style, background, popupBackground, tooltipBackground and workspace. Save as Theme, Revert, the count and Share My Bar all read one list in the code.
  • What a widget shows and does (Content, Behavior), placement, appearance and animation stay the same under every theme.
  • The notice goes. The selected card shows Edited. Below the gallery, one line, shown only when there are edits: Léman · 5 changes, with Show changes, Save as Theme… and Revert to Léman.
  • Show changes lists each change by section, with its revert arrow. Its menu has Apply to every theme, which moves the value into the main file.
  • Look values already in the main file apply to every theme. They show as "3 settings apply to every theme", with Keep with Léman only, which moves them into Léman's edits. No migration.
  • Revert to Léman removes all of Léman's edits at once: its colors, its sections and the widget styles made on it. It asks first, in a sheet that lists what goes, with Save as Theme…, Cancel and Revert. Save as Theme… keeps the edits as a new theme under Yours, then reverts, and Léman stays selected. Undo still takes a revert back. A single revert arrow doesn't ask. Values that apply to every theme stay.
  • Save as Theme… moves Léman's edits into the new theme. A theme package can't hold widget styles, so those move to the new theme's edits.
  • Use this bar keeps the link's widget styles in the widgets, so a shared bar arrives with no changes and no warning. Share My Bar carries the sender's edits: the look in the shared theme, and widget styles in the widgets.
  • Try Themes already matches when.theme, so trying a theme shows it with its edits.

2. One look editor

  • The Theme page: Appearance (Automatic, Light, Dark) beside the title, then link cards, the gallery and the theme line. Next come the theme's own options when its package has settings, then Customize: Colors, Widgets, Groups, Popups, Bar, Workspaces, Liquid Glass and Advanced (roles, AeroSpace mode names).
  • The bar editor's Every widget, Every group and Bar (Size, Look) show these same sections, so the two can't disagree. Placement stays in the bar editor. Animation moves to General, since it isn't part of a theme.
  • Each section lists everything it styles. Widget hover background and border width, group flare, bar margin, and popup text color and font join.
  • A section's header has Reset when the section has edits.
  • One Editing: All screens menu replaces the screen segment, the setups segment and the profile picker. Any other choice shows a tinted line that says it in words, such as "Editing the laptop screen only", with a way back.

3. Widgets

  • Style starts with its state: "Follows Léman", or "Own style on Léman · 3 changes · Reset style".
  • Each color row shows a Light and a Dark swatch side by side. A theme color fills both; changing one side changes only that side. In a narrow window, a Light/Dark switch above the colors replaces the second column.
  • Reset to defaults… becomes Reset widget…, and its dialog keeps saying what stays.

4. The gallery

  • Sections replace the filter: Included, Yours (saved, shared, from links or folders) and Store.
  • A badge says where a theme came from: Saved by you, Shared, From a link, Folder, Store or Included, never in the warning color. The install record keeps that origin.
  • Your own themes get a menu with Show in Finder and Delete…. Delete removes every version, and isn't available for the theme in use.

5. Light and dark in the configuration (additive)

  • A side of a color pair can be a theme color: { "light": "@token.text", "dark": "#30d33c" } takes that token's value for the same appearance.
  • An image block takes "tinted": true to draw a one-color image in the widget's text color, the way symbols are drawn and the way StableBar already draws a one-color mirrored menu bar item (Sources/StableBar/MenuBarItemMirror.swift). OpenVPN Connect then needs one logo, with no logo tokens and no profile. The logo follows every theme, Notch included, and a widget's own text color. This replaces choosing between two images by appearance, which can't know the bar's color.
  • Settings → Profiles lists your profiles first, then Theme edits (one row per theme, with Edit in Theme), then From packages and themes. Each of those names its source, such as "From OpenVPN Connect", and has an on/off switch.

Order of work

Each step ships on its own, with its docs (docs/themes.md, docs/settings.md, docs/configuration.md) and schema:

  1. Stop counting widget styles in the notice, which fixes the shared bar now.
  2. Theme edits and the theme line.
  3. One look editor and the Editing menu.
  4. Widget style state, the Light/Dark columns and theme colors in pairs.
  5. Gallery sections, badges and Delete.
  6. Tinted images and the Profiles groups.

Edge cases, decided

  • Edits made for one screen stay under screens as today and apply under every theme on that screen.
  • A build before 0.16.0 doesn't know when.theme, so it shows the plain theme.
  • Your own profiles that change the look still apply on top. Show changes lists them under the profile's name, with a link to it.
  • A package whose image needs a different picture in dark mode, not only another color, keeps an appearance profile, which Profiles then shows under the package's name.

Possible today

Partly. A profile with The theme is… (#697) keeps values with one theme, but Theme and the bar editor don't write into it, and its values don't count as changes. A color can differ in dark mode through the color popover. A value that isn't a color needs an appearance profile.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

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

    @stablebar-releases

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