Skip to content

feat: share your bar from a borderless panel, with StableBar's badge in the image - #859

Merged
M4n0x merged 1 commit into
mainfrom
feat/share-window-redesign
Nov 19, 2026
Merged

M4n0x merged 1 commit into
mainfrom
feat/share-window-redesign

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Share My Bar's panel puts a title bar, a grey box and rows of controls around its image, so a thin Bar only strip floats in empty space and the controls take more room than the bar. And an image posted on social media doesn't say what made the bar. Fixes #858

Changes

  • Borderless panel (BarShareWindow): the panel keeps a title bar, so it stays resizable and closes with ⌘W, but hides it and its buttons and draws its content under it. × at the top right closes it, Esc closes the bar link card first, and Return shares.
  • Layout (BarShareView): a blur of the image fills the panel. A menu at the top left holds the screen, Notch and StableBar Badge. One toolbar under the image holds the shapes (Bar, 16:9, 1:1, 4:5), Copy, Save, the bar link and Share. The panel stays dark over any image; a bar without its own appearance still takes the system's in the image, as before.
  • Bar link card: the link, Copy Link and What it shares open in a card above the toolbar instead of a box under the image. Its rows no longer use SettingsPalette, which follows the window's appearance rather than the panel's dark one.
  • Badge (BarShareBadge): the app icon, "StableBar" in Shantell Sans and stablebar.app, drawn with ImageRenderer and composited onto the drawn desktop, so turning it on or off doesn't redraw the bar. It sits bottom right, or top right for a bar at the bottom, on the wallpaper beyond the bar. It's on by default, and the choice is kept in UserDefaults (shareMyBarBadge), not in the configuration. Only the image carries it, not the bar link. Copy, Save and Share encode the composite as PNG when used.
  • The backdrop's blur is made once per drawing, at a quarter of the size, instead of on every view update.
  • Scenes: sharePreset (in scene.schema.json) picks the shape, and the new share-my-bar-landscape scene draws the 16:9 image. Share scenes are 680 points wide by default.
  • Docs: Share your bar.
  • The issue's corner handle is left out: the toolbar's shapes already cover it, and social sites crop to fixed shapes, so a free shape wouldn't survive posting either.

Screens

Drawn from the scenes with a bundled debug build of main and of this branch.

Before After
Bar only, before Bar only, after
14-inch MacBook Pro, before 14-inch MacBook Pro, after
Bar link, before Bar link, after

16:9 with the pointer over the image, which shows × on the badge (drawn with the hover state forced on; scenes can't point):

16:9 with the pointer over the image

Testing

  • swift build --build-tests, then swift test --disable-xctest --filter for BarShareTests (5 new: shape snapping, badge placement, compositing, the remembered choice, sharePreset), SceneFileTests and ArchitectureRules, and the 51 scene tests: all passed. scripts/check.sh --quick passed.
  • Drew the share scenes light and dark from a bundled build, and once with the hover state forced on, as above. A continuous Capsule's outline drew a stray straight line beside it in these offscreen drawings, so the panel's capsules use the circular style.
  • Checked that performClose closes a panel whose close button is hidden, so ⌘W still works.
  • The developer tried the panel in a running app with a scratch configuration, with the bar at the bottom.
  • Not checked: VoiceOver.

Merging

One commit: any merge method.

Claude Opus 5.5 via Claude Code

@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner November 19, 2026 14:01
@github-actions github-actions Bot added the deep-review CodeRabbit reviews this pull request: big or risky changes label Nov 19, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread Sources/StableBar/Themes/BarShare.swift Resolved
@M4n0x
M4n0x force-pushed the feat/share-window-redesign branch from db8f0c5 to 3b488b4 Compare November 19, 2026 14:13
…in the image

Share My Bar's panel loses its title bar: a blur of the image fills it, a menu at the top left
holds the screen, Notch and badge choices, and one toolbar under the image holds the shapes, Copy,
Save, the bar link and Share. The bar link opens in a card above the toolbar.

The image carries StableBar's logo, name and website in the corner beyond the bar. × on the badge
or the menu removes it, and the choice is kept in the app's preferences.

Scenes take a sharePreset, and share-my-bar-landscape draws the 16:9 image.

Fixes #858
@M4n0x
M4n0x force-pushed the feat/share-window-redesign branch from 3b488b4 to f8cd612 Compare November 19, 2026 14:20
@M4n0x M4n0x added the visual-ok A maintainer looked at the changed screens and approves them label Nov 19, 2026
@M4n0x
M4n0x added this pull request to the merge queue Nov 19, 2026
@M4n0x
M4n0x removed this pull request from the merge queue due to a manual request Nov 19, 2026
@github-actions github-actions Bot removed the visual-ok A maintainer looked at the changed screens and approves them label Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Before and after

main at 6972bf5 → this pull request at f8cd612 · 245 screens drawn · 8 changed

Screen Change Where (image pixels)
scenes/share-my-bar-dark new size the whole screen
scenes/share-my-bar-landscape-dark new the whole screen
scenes/share-my-bar-landscape-light new the whole screen
scenes/share-my-bar-light new size the whole screen
scenes/share-my-bar-link-dark new size the whole screen
scenes/share-my-bar-link-light new size the whole screen
scenes/share-my-bar-macbook-dark new size the whole screen
scenes/share-my-bar-macbook-light new size the whole screen

scenes/share-my-bar-dark

Before After
Before After

scenes/share-my-bar-landscape-dark

The base couldn't draw this scene: sharePreset: Unknown property.

After

scenes/share-my-bar-landscape-light

The base couldn't draw this scene: sharePreset: Unknown property.

After

scenes/share-my-bar-light

Before After
Before After

scenes/share-my-bar-link-dark

Before After
Before After

scenes/share-my-bar-link-light

Before After
Before After

scenes/share-my-bar-macbook-dark

Before After
Before After

scenes/share-my-bar-macbook-light

Before After
Before After
237 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/accessibility-guide-dark, scenes/accessibility-guide-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/apple-menu-symbol-bar-dark, scenes/apple-menu-symbol-bar-light, scenes/apple-menu-symbol-settings-dark, scenes/apple-menu-symbol-settings-light, scenes/bottom-bar-popup-dark, scenes/bottom-bar-popup-light, scenes/chat-popup-dark, scenes/chat-popup-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/disk-meter-bar-dark, scenes/disk-meter-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/edit-bar-wide-group-dark, scenes/edit-bar-wide-group-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/essentials-disk-popup-dark, scenes/essentials-disk-popup-light, scenes/filled-slider-popup-dark, scenes/filled-slider-popup-light, scenes/group-members-bar-dark, scenes/group-members-bar-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/increase-contrast-bar-dark, scenes/increase-contrast-bar-light, scenes/increase-contrast-popup-dark, scenes/increase-contrast-popup-light, scenes/input-source-popup-dark, scenes/input-source-popup-light, scenes/labeled-metric-built-in-dark, scenes/labeled-metric-built-in-light, scenes/labeled-metric-catppuccin-dark, scenes/labeled-metric-catppuccin-light, scenes/meeting-live-popup-dark, scenes/meeting-live-popup-light, scenes/meeting-soon-bar-dark, scenes/meeting-soon-bar-light, scenes/menu-bar-items-widget-settings-dark, scenes/menu-bar-items-widget-settings-light, scenes/merged-status-bar-dark, scenes/merged-status-bar-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/output-device-popup-dark, scenes/output-device-popup-light, scenes/popup-gap-bar-dark, scenes/popup-gap-bar-light, scenes/popup-spacing-bar-dark, scenes/popup-spacing-bar-light, scenes/popup-view-dark, scenes/popup-view-light, scenes/privacy-both-bar-dark, scenes/privacy-both-bar-light, scenes/privacy-hide-when-idle-bar-dark, scenes/privacy-hide-when-idle-bar-light, scenes/privacy-idle-bar-dark, scenes/privacy-idle-bar-light, scenes/privacy-microphone-bar-dark, scenes/privacy-microphone-bar-light, scenes/privacy-settings-dark, scenes/privacy-settings-light, scenes/reduce-transparency-bar-dark, scenes/reduce-transparency-bar-light, scenes/reduce-transparency-glass-bar-dark, scenes/reduce-transparency-glass-bar-light, scenes/ring-bar-dark, scenes/ring-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-link-dark, scenes/settings-bar-link-light, scenes/settings-bar-link-review-dark, scenes/settings-bar-link-review-light, scenes/settings-bar-placement-bottom-dark, scenes/settings-bar-placement-bottom-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-calendar-picker-dark, scenes/settings-calendar-picker-light, scenes/settings-calendar-widget-dark, scenes/settings-calendar-widget-light, scenes/settings-crashes-dark, scenes/settings-crashes-light, scenes/settings-disk-widget-dark, scenes/settings-disk-widget-light, scenes/settings-feedback-dark, scenes/settings-feedback-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-macos15-dark, scenes/settings-general-macos15-light, scenes/settings-general-macos27-dark, scenes/settings-general-macos27-light, scenes/settings-general-move-dark, scenes/settings-general-move-failed-dark, scenes/settings-general-move-failed-light, scenes/settings-general-move-light, scenes/settings-general-move-moving-dark, scenes/settings-general-move-moving-light, scenes/settings-general-move-replace-dark, scenes/settings-general-move-replace-light, scenes/settings-general-setup-open-dark, scenes/settings-general-setup-open-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-general-yabai-gap-dark, scenes/settings-general-yabai-gap-light, scenes/settings-group-dark, scenes/settings-group-defaults-dark, scenes/settings-group-defaults-light, scenes/settings-group-light, scenes/settings-group-theme-color-dark, scenes/settings-group-theme-color-light, scenes/settings-help-dark, scenes/settings-help-light, scenes/settings-help-starred-dark, scenes/settings-help-starred-light, scenes/settings-labeled-metric-dark, scenes/settings-labeled-metric-light, scenes/settings-narrow-dark, scenes/settings-narrow-light, scenes/settings-package-dark, scenes/settings-package-light, scenes/settings-package-widget-dark, scenes/settings-package-widget-light, scenes/settings-profiles-conditions-dark, scenes/settings-profiles-conditions-light, scenes/settings-profiles-dark, scenes/settings-profiles-light, scenes/settings-profiles-theme-dark, scenes/settings-profiles-theme-light, scenes/settings-store-dark, scenes/settings-store-light, scenes/settings-theme-dark, scenes/settings-theme-groups-dark, scenes/settings-theme-groups-light, scenes/settings-theme-light, scenes/settings-theme-link-dark, scenes/settings-theme-link-light, scenes/settings-theme-versions-dark, scenes/settings-theme-versions-light, scenes/settings-tiled-dark, scenes/settings-tiled-light, scenes/settings-tiled-narrowest-dark, scenes/settings-tiled-narrowest-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/settings-widget-backgrounds-dark, scenes/settings-widget-backgrounds-light, scenes/settings-workspace-hidden-dark, scenes/settings-workspace-hidden-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-look-no-notch-dark, scenes/setup-look-suggestions-dark, scenes/setup-move-existing-dark, scenes/setup-move-failed-dark, scenes/setup-move-ready-dark, scenes/setup-move-replace-dark, scenes/setup-omniwm-connection-dark, scenes/setup-permissions-dark, scenes/setup-permissions-macos27-dark, scenes/setup-permissions-spaces-dark, scenes/setup-permissions-spaces-ready-dark, scenes/setup-placement-bottom-dark, scenes/setup-placement-dark, scenes/setup-touches-dark, scenes/setup-touches-macos15-dark, scenes/setup-touches-spaces-dark, scenes/setup-try-aerospace-gap-dark, scenes/setup-try-dark, scenes/setup-yabai-connection-dark, scenes/slider-end-stop-popup-dark, and 37 more

Visual review: 8 changed screens approved.

@M4n0x M4n0x added the visual-ok A maintainer looked at the changed screens and approves them label Nov 19, 2026
@M4n0x
M4n0x added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 365d3e0 Nov 19, 2026
36 of 37 checks passed
@M4n0x
M4n0x deleted the feat/share-window-redesign branch November 19, 2026 17:03
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included 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

Labels

deep-review CodeRabbit reviews this pull request: big or risky changes 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.

Share My Bar's panel crowds its image, and a shared image doesn't say where the bar comes from

1 participant