Repository navigation
feat: share your bar from a borderless panel, with StableBar's badge in the image - #859
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
db8f0c5 to
3b488b4
Compare
…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
3b488b4 to
f8cd612
Compare
Before and after
|
| Before | After |
|---|---|
![]() |
![]() |
scenes/share-my-bar-landscape-dark
The base couldn't draw this scene: sharePreset: Unknown property.
scenes/share-my-bar-landscape-light
The base couldn't draw this scene: sharePreset: Unknown property.
scenes/share-my-bar-light
| Before | After |
|---|---|
![]() |
![]() |
scenes/share-my-bar-link-dark
| Before | After |
|---|---|
![]() |
![]() |
scenes/share-my-bar-link-light
| Before | After |
|---|---|
![]() |
![]() |
scenes/share-my-bar-macbook-dark
| Before | After |
|---|---|
![]() |
![]() |
scenes/share-my-bar-macbook-light
| 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.
|
🎉 This PR is included in version 0.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |














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
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.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.SettingsPalette, which follows the window's appearance rather than the panel's dark one.BarShareBadge): the app icon, "StableBar" in Shantell Sans and stablebar.app, drawn withImageRendererand 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 inUserDefaults(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.sharePreset(inscene.schema.json) picks the shape, and the newshare-my-bar-landscapescene draws the 16:9 image. Share scenes are 680 points wide by default.Screens
Drawn from the scenes with a bundled debug build of
mainand of this branch.16:9 with the pointer over the image, which shows × on the badge (drawn with the hover state forced on; scenes can't point):
Testing
swift build --build-tests, thenswift test --disable-xctest --filterforBarShareTests(5 new: shape snapping, badge placement, compositing, the remembered choice,sharePreset),SceneFileTestsandArchitectureRules, and the 51 scene tests: all passed.scripts/check.sh --quickpassed.Capsule's outline drew a stray straight line beside it in these offscreen drawings, so the panel's capsules use the circular style.performClosecloses a panel whose close button is hidden, so ⌘W still works.Merging
One commit: any merge method.
Claude Opus 5.5 via Claude Code