Description
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,ThemeOverrideNoticeinSources/StableBar/LinkedThemeCard.swift). - It counts a widget's own style wherever the theme's
defaultsset the same property (ThemeOverrides.initinSources/StableBar/ThemeOverrides.swift). Use this bar keeps each shared widget'sstyle(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:)inSources/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 withfrom: 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
- 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.
- Every look setting has one control, one name and one place.
- Everything resets in one click: a value, a section, a widget's style, a widget, a theme's edits, a saved theme.
- 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'sheight,margin,inset,spacing,background,style,notchWidth,notchSpacing,fillNotch,popupOffsetandglass. They also include a widget's Style tab:style,background,popupBackground,tooltipBackgroundandworkspace. 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
imageblock takes"tinted": trueto 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:
- Stop counting widget styles in the notice, which fixes the shared bar now.
- Theme edits and the theme line.
- One look editor and the Editing menu.
- Widget style state, the Light/Dark columns and theme colors in pairs.
- Gallery sections, badges and Delete.
- Tinted images and the Profiles groups.
Edge cases, decided
- Edits made for one screen stay under
screensas 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
- Keep settings tuned for one theme from applying under every other theme #666 (open) keeps settings tuned for one theme from applying under every other theme. feat: match profiles to the theme the bar is drawn with #697 shipped its
when.themecondition. This issue covers its parts 3 and 4 in another form: edits go to the theme by default, with no Every theme / Only with Fern switch, and Apply to every theme moves a single value out. - Organise Customize around the bar's look, and show what overrides the theme #30 led to the notice; Export the current look as a theme package #91 and Saved themes don't keep the Liquid Glass setting #836 cover Save as Theme; Share your bar's look and its built-in and Store widgets with a bar link #807 and feat: share your bar from a floating panel, and bring it over as it was sent #844 cover bar links; After using a shared bar, choosing another theme fails with Unknown group #845 is why a shared bar adds empty
groupsentries. - Uninstall every local-folder version of a package at once #279 (not planned) asked to uninstall every local-folder version of a package at once, which matters only while developing a package. Delete… here is different: a gallery card stands for a whole theme, and re-saving one adds versions for anyone.
- Let colours vary by light and dark appearance, and ship the built-in look as a theme #29 brought light and dark color pairs; Match profiles to more situations, and make their conditions easier to set #810 brought more profile conditions.
Triaged by Claude Code (Claude Opus 5.5).
Activity
stablebar-releases commentedon Nov 20, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀