Repository navigation
Description
Problem
A user can change a theme, widget or popup property without seeing why the rendered result stays the same. A value in the configuration, an active profile, a more specific style or runtime output can take precedence.
Customize already shows From… / Default from… and Reset to default (#30 / #31). Those identify a source but do not explain the relationship between the value being edited and the value actually drawn, or show the values hidden underneath it. Shared Appearance controls also do not say which widgets or popups override them.
Examples:
- Changing the shared widget background leaves a widget unchanged because its own
style.backgroundis set in the main configuration. - Changing Appearance → Popups → Background leaves one popup unchanged because its widget's explicit background or the popup's own style wins.
- Changing a base font size has no visible effect while an active profile supplies another size.
The reporter called the file settings.json; the default is ~/.config/stablebar/config.json. Labels should name the actual source file, including custom configuration paths.
Proposal
Extend the existing property rows with a short status and an information button. Keep this beside the control, where the user encounters the problem.
- Explain the relationship. Use labels such as Inherited from Slate, Overrides Slate, or Overridden by profile “Work”. Show the value the control writes separately from the effective value when they differ, so a masked edit does not appear to have been discarded. Identify unsaved edits as such.
- Show the competing values. The information popover lists the contributions for that property in precedence order, with the winning value clearly marked. Each entry includes its value, source file and property path, plus the theme/package, template, profile, widget or runtime source where applicable. Keep overridden entries visible. For token references, show both the reference and where its resolved value comes from.
- Explain shared settings per target. For shared defaults and roles, show a concise summary such as Overridden on 2 widgets / 1 popup, expanding into the affected targets and their winning sources. For theme colors, distinguish an overridden token definition from a widget using an explicit color or another token; not using a token is not itself an override of that token.
- Make the source reachable. Offer Show source to select the relevant existing Customize section/property, or show a copyable file path and JSON path when no dedicated control exists. Retain property-level reset through the existing edit/undo/save flow. State which local value reset removes and which source takes over; removing a key and setting it to
nullmust remain distinct. - Describe the current context. The details identify the widget, popup/block or bar surface and applicable state. Explain script output and active data/mode/hover/open states as temporary overrides, and refresh when they change. Use each surface's real inheritance rules: the popup panel does not inherit the bar widget's role or data state.
Use the same explanation across existing Appearance and Widgets controls. Expose nested popup/block properties through the property details/Diagnostics surface without requiring a new editor for every block type. The feature explains precedence; it does not change it or automatically clear overrides when switching themes.
Implementation direction: build on ConfigurationOrigin, StyleFields/OverrideRow and the shared style resolution. Composition currently retains one winning origin per path, so the competing values must be retained or traced where merging happens. Combine that with the actual presentation layers; a second precedence implementation in the UI would drift from rendering.
Acceptance:
- A shared widget background, popup default and role font each identify the more specific source preventing the change from reaching an affected target.
- An active profile overriding a base edit shows the edited value, effective value and named profile; disabling it updates the explanation.
- Include, template, package, theme, root and widget-override contributions retain their source paths; token references identify the token's source too.
- Script/state overrides appear and disappear with the applicable context, including the different inheritance of popup panels and blocks.
- Explicit overrides remain identifiable even when their value currently equals the inherited value. Reset, undo/redo, save, discard and reload keep the explanation consistent; explicit
nullremains distinguishable from an absent property. - Cover the precedence tracing with focused regression tests, verify the native property UI, and document the feature in the README.
Possible today
Partly supported, verified by reading origin/main at f9a5cf1:
- CustomizationWindow.swift selects a winning source caption, with a special case for hover background.
OverrideRowprovides the caption/reset link, but no competing-value explanation. - ConfigurationLoader.swift records file, detail and token origin;
ConfigurationLayer.mergereplaces earlier origins for the same path. - BarStore.swift exposes origins,
resolvedStyleandpresentationLayersin Diagnostics /--query. This helps manual investigation but is not a per-property explanation beside the control. - The README documents module overrides, profile precedence and the separate presentation layers.
examples/modulardemonstrates includes, templates, profiles and widget overrides.
No live reproduction or implementation was performed for this triage. Checked CHANGELOG.md, current main and releases: #31's source labels are included from v0.5.0-beta.33, and #58's presentation diagnostics from v0.5.0-beta.74; the latest published beta checked was v0.5.0-beta.85. The remaining UI explanation is absent on current main.
Related
- Organise Customize around the bar's look, and show what overrides the theme #30 / feat: give themes light and dark colors and organize Customize around the bar's look #31 delivered source captions and local resets. This is a follow-up for masked edits, competing values and affected targets, not another request for those existing captions.
- Add a shared presentation system for themes and bar layout #55 / feat: add shared presentation for themes and bar layout #58 added shared presentation and ordered style diagnostics. Add a shared presentation system for themes and bar layout #55 remains open, but its documented scope does not include this property UI.
- Merge profiles by name across includes, packages and the main file #24 / feat: merge profiles by name across configuration layers #66 define profile composition; Resolve widget styles in one place, with named states #15 / feat: resolve widget styles in one place, with named states #50 define state precedence. This proposal reports those rules without changing them.
Searched issues and PRs in every state for override, precedence, inherit, theme, provenance, settings.json, overridden, source label and inspect style; read matching bodies/comments and repeated the duplicate search before filing.
Triaged by Codex via T3 Code (gpt-6-astra).
Activity