Repository navigation
Conversation
macOS 27 discards a status item whose length reaches half the display width instead of clamping it, and the menu bar is now one window with a native overflow. Inflating the separator to twice the widest screen dropped the item outright, so nothing hid. Size each collapse unit just under half the narrowest attached display, and add spacer items between the separator and the arrow so the total span still covers wide and mixed-width setups. Displaced icons go into the system overflow menu. Suppress the separator glyph while collapsed because that span is now on-screen. Retry the launch collapse until item frames exist in the shared menu-bar window. Verified on macOS 27.0 (26A428): collapse hides icons left of the separator; expand restores them.
|
this aint working on mine bruh |
Builds the app (ad-hoc signed, Release) on macos-latest via xcodebuild and uploads it as an artifact, so the macOS 27 fix from PR consolelabs#396 can be built reproducibly on our own CI/CD pipeline, not just locally. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PR consolelabs#396 hardcoded 6 spacer items, sized for its own dual-monitor test case (5800pt next to 1800pt). On a single, more modest display that massively over-inflates: on this machine's single 3840pt screen it requested ~7 * 1856pt =~ 13,000pt against a 3840pt-wide bar, which broke layout instead of cleanly collapsing (confirmed visually via a capture of the real Menubar WindowServer window, not just Accessibility geometry: real icons and the separator glyph ended up scattered instead of the hidden zone being empty). spacerCount now derives from the widest attached screen divided by collapseUnit, rounded up. This reduces to the PR's own tested value in its tested scenario (5800/836 -> 6 spacers) and gives 2 on a single 3840pt screen instead of 6 -- verified end-to-end on this machine: clean collapse (empty hidden zone, pinned icons stay visible) and expand (previously-hidden icon reappears), confirmed via direct screenshots of the WindowServer Menubar window, not just Accessibility state. Also gitignore local build/dist artifacts and the App Store backup app copy -- they were accidentally staged in a prior commit attempt and don't belong in the repo (the backup in particular embeds Apple's own signed binary and MAS receipt). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Still doesn't work |
|
This fixes the problem for macOS 27 Golden Gate. I created a fork and tested it. |
|
|
@rocky-zh Try it out in real-world conditions; this was also fixed here https://github.com/xvoland/hidden/releases |
It worked, but the behavior is a bit odd. When toggling the hidden status all hidden items fly out to the left of the status bar. |
you can try fix it again |
|
it worked with 4k display.good job |
|
Hidden-Bar-v1.11.1-macos can't work in 4k display monitor. |
|
Heads-up: the hiding path this PR modifies was refactored and superseded by the native menu-bar engine that landed in #402/#403 and shipped in v1.11.1 ( Recommend closing; remaining macOS 27 regressions are tracked in #409–#414 and belong in the new engine's code path, not the old length-based one. |
Thank you @tieubao ! |
Fixes #360. Icon hiding stopped working entirely on macOS 27; this restores it using the existing length-inflation mechanism, adapted for the new menu bar.
What's this PR do?
isVisible, which keeps their slot in the layout table.«) rather than off-screen.|glyph while collapsed on macOS 27+, where the item's span is on-screen._v27autosave names so spacers land between the arrow and the separator. Upgraders ⌘-drag icons past the separator once, as on a fresh install.#availablegated), including the existing widest-screen rule and 10,000pt bound.Root cause. macOS 27 discards a status item whose length reaches half the display width, where macOS 26 and earlier clamped it. Hidden Bar inflated the separator to
widestScreen * 2, which is over that limit on every Mac, so on 27 the separator was dropped outright: it displaced no icons and its own glyph vanished.A single sub-half-width item is enough on typical laptop displays because macOS 27 owns overflow. Wide and mixed-width setups need more span than one item can hold, so spacers sit to the right of the separator (between it and the arrow). macOS overflows from the left, so real icons go first and surplus spacers overflow themselves.
Builds on the measurements in #382 and the spacer approach in #392 (closed).
What are the relevant Git tickets?
Verification
Measured and click-tested on macOS 27.0 (26A428), 1512pt built-in display:
Not verified on this machine: multi-display and notched-only layouts (spacer count is sized from #392's 1800+3008pt measurements).
Known limitation, unchanged from #392: the always-hidden separator still inflates as a single unit, so with the regular section expanded its icons can show on a very wide display.
Any background context you want to provide?
#available-gated and take the original code path.