Repository navigation
fix: offer the Notch preset only on Macs with a notch - #548
Conversation
Setup checked only the bar's placement, so unnotched Macs offered a preset intended to blend into a display's notch. Check all connected displays with the bar's own notch detection, through the setup system, and refresh on screen changes without clearing a chosen preset. Cover notch availability and display changes, add a no-notch setup scene, and document when the preset appears. Fixes #457
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Before and after
|
## [0.13.0](v0.12.0...v0.13.0) (2026-11-11) ### Features * answer common questions and send feedback from a Help section ([#564](#564)) ([325083e](325083e)) * apply migrations to includes, packages and every screen setup's bar ([#539](#539)) ([6cc59f4](6cc59f4)) * check in setup that Workspaces can reach yabai or OmniWM ([#552](#552)) ([3a9ef7e](3a9ef7e)), closes [#463](#463) * check the Switch to Desktop shortcuts in setup and Settings ([#551](#551)) ([92c11e1](92c11e1)), closes [#447](#447) * follow Reduce Transparency and Increase Contrast ([#542](#542)) ([3ea111b](3ea111b)) * guide Accessibility access with a panel to drag StableBar into System Settings ([#559](#559)) ([29f000c](29f000c)) * pause scripts and providers while the displays sleep or the screen is locked ([#538](#538)) ([a09513d](a09513d)) * sign updates with an EdDSA key as well as the Developer ID ([#540](#540)) ([7e34d56](7e34d56)) * turn on Keep windows clear in setup when no window manager runs ([#553](#553)) ([a80b001](a80b001)), closes [#466](#466) [#439](#439) ### Bug Fixes * follow Reduce Motion in setup's steps, theme row and tiles ([9c3f0c4](9c3f0c4)), closes [#465](#465) * install packages when the configuration folder is a symbolic link ([#531](#531)) ([7e4f88b](7e4f88b)), closes [#530](#530) * keep setup's later choices when the preset changes ([3318ae0](3318ae0)), closes [#461](#461) * keep the website's Store review sheet inside its window ([9519645](9519645)), closes [#526](#526) * leave windows alone until setup finishes ([#547](#547)) ([c9b75cf](c9b75cf)), closes [#466](#466) * let a group wider than its tray scroll sideways while editing the bar in place ([#543](#543)) ([f6e6e25](f6e6e25)) * make setup's tiles, closing card and permission buttons work with the keyboard and VoiceOver ([#554](#554)) ([0944100](0944100)), closes [#464](#464) * offer Keep notifications clear only on macOS 26 and later ([#550](#550)) ([5fd428a](5fd428a)), closes [#458](#458) * offer the Notch preset only on Macs with a notch ([#548](#548)) ([3fef60f](3fef60f)), closes [#457](#457) * open an app's own menu when Menu bar items can't draw its rows ([#541](#541)) ([24f16d7](24f16d7)) * shorten long errors in the bar's menus and open Status from them ([#536](#536)) ([5710a3e](5710a3e))
|
🎉 This PR is included in version 0.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

Problem
SetupPreferences.Preset.offered(on:keeping:)checked only the placement, so a Mac mini, an iMac or a MacBook without a notch saw the Notch preset whenever the bar was on the top edge. Its theme is a black bar meant to blend into a MacBook's notch.Fixes #457
Changes
offered(on:hasNotchedDisplay:keeping:)offers Notch only on the top edge and when a connected display has a notch. A Notch preset that's already chosen stays offered, so it can still be deselected.SetupSystem.hasNotchedDisplayuses the bar's own notch detection (BarDisplay(screen:).notch), so setup offers Notch exactly where the bar leaves a notch gap anddisplays: "notched"matches. It's injectable for tests and scenes.notchstub in thesetupblock (defaulttrue, so existing drawings don't change) and a newsetup-look-no-notchscene.docs/getting-started.mdsays when Notch appears.Testing
setupOffersTheNotchPreset…(every placement, with and without a notch) andsetupKeepsTheSelectedNotchPreset….setupUpdatesNotchPresetsWhenDisplaysChange: refresh, unplugging with Notch chosen, deselecting, plugging back in, and a placement change. Its first expectation fails onmain.SceneFileand scene tests: the new key decodes and defaults to a notch;everySceneInTheRepositoryLoadspasses.scripts/check.sh --quickand commitlint pass.setup-lookrenders byte-identical before and after.The screens bot draws the PR's scenes with
main's build too.maincan't read the newnotchkey, so it will reportsetup-look-no-notchas a base error rather than a before image. These are local renders frommainand from this branch, drawn as a Mac without a notch with the bar on the top edge:Not checked in the running app: plugging in a display while setup is open.
Merging
One commit; any merge method works. Other open setup PRs also add stubs to
SceneFile,SceneRendererandscene.schema.json; whichever merges later needs a small rebase.GPT-6.1-sol via Codex, reviewed by Claude Opus 5.5 via Claude Code