Skip to content

feat: set widget, popup and tooltip backgrounds separately - #514

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/widget-surface-backgrounds
Nov 9, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/widget-surface-backgrounds

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Problem

Making a widget transparent in Settings also made its popup and tooltip transparent. There was no separate tooltip background control.

Closes #513.

Changes

  • Add Widget background, Popup background and Tooltip background to the widget's Style tab, with the existing color, theme token, gradient and reset controls.
  • Store them as background, popupBackground and tooltipBackground on the widget. The popup override covers shared and built-in popups; the tooltip override also covers hover controls.
  • Preserve existing JSON behavior: style.background still inherits into all three surfaces when the new overrides are absent. Settings now changes the independent properties.
  • Carry the properties through includes, templates, package overrides, profiles and the shared Settings/CLI edit path. Include them in resets, source explanations and the schema, and update the guide and interactive example.

Testing

  • swift build --build-tests and scripts/check.sh --quick passed.
  • Focused style, configuration editor, composition, schema parity, Settings binding, presentation role, popup click and architecture tests passed. Regression cases cover independent backgrounds, legacy inheritance, profile persistence, dotted widget IDs, per-surface reset and Undo.
  • The updated interactive example validates: 5 widgets in 3 files.
  • git diff --check and commitlint passed.
  • Inspected light and dark offscreen renders. Added settings-widget-backgrounds for CI's before/after comparison. No visible app session was launched; live pointer interaction was not manually tested.

Settings on the same configuration:

Before After
Widget Settings before Widget Settings after

A transparent widget chosen through the old background control (style.background) versus the new widget-only control (background). The popup keeps its inherited white background after the change:

Before After
Transparent widget popup before Transparent widget popup after

Merging

One conventional commit; squash or rebase preserves the feat: subject. Leave the PR for maintainer review and visual approval.

gpt-6-astra via Codex in T3 Code

@Seb-GRAF
Seb-GRAF requested a review from M4n0x as a code owner November 9, 2026 10:21
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Before and after

main at ef22935 → this pull request at 7eaf5af · 58 screens drawn in one CI job · 2 changed

Screen Change Where (image pixels)
scenes/settings-widget-backgrounds-dark 345,422 pixels 502,922 · 1584×520
scenes/settings-widget-backgrounds-light 330,825 pixels 502,923 · 1584×519

scenes/settings-widget-backgrounds-dark

Before After
Before After

Difference, changed pixels in red:

Difference

scenes/settings-widget-backgrounds-light

Before After
Before After

Difference, changed pixels in red:

Difference

56 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-theme-dark, scenes/settings-theme-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-permissions-dark, scenes/setup-placement-dark, scenes/setup-touches-dark, scenes/setup-try-dark, scenes/slider-end-stop-popup-dark, scenes/slider-end-stop-popup-light, scenes/starter-bar-dark, scenes/starter-bar-light, scenes/starter-edit-bar-dark, scenes/starter-edit-bar-light, scenes/update-popup-dark, scenes/update-popup-light

Visual review: 2 changed screens approved.

@Seb-GRAF Seb-GRAF added the visual-ok A maintainer looked at the changed screens and approves them label Nov 9, 2026
@Seb-GRAF
Seb-GRAF merged commit f105cfe into main Nov 9, 2026
15 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/widget-surface-backgrounds branch November 9, 2026 10:59
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.12.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

Labels

released visual-ok A maintainer looked at the changed screens and approves them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set widget, popup and tooltip backgrounds independently

1 participant