Skip to content

Fix menu-bar icon sizing stability - #1

Open
FarnoodF wants to merge 1 commit into
Aboudjem:mainfrom
FarnoodF:fix/menu-bar-icon-stability
Open

FarnoodF wants to merge 1 commit into
Aboudjem:mainfrom
FarnoodF:fix/menu-bar-icon-stability

Conversation

@FarnoodF

@FarnoodF FarnoodF commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • Render all menu-bar glyph states into a shared natural-size canvas so toggling the icon does not resize the status item.
  • Use a square status item slot for the icon-only menu extra to avoid shifting neighboring menu-bar icons.

Test plan

  • ./build.sh
  • Checked App.swift with IDE diagnostics; no linter errors reported.

Made with Cursor

Render each menu-bar state into a shared natural-size canvas so toggling state does not shift the status item or neighboring menu-bar icons.

Co-authored-by: Cursor <cursoragent@cursor.com>
jxz345 added a commit to jxz345/Sleepless that referenced this pull request Oct 7, 2026
Render all glyph states into one fixed canvas, use a square status-item
slot with an autosave name, recreate the item if its button goes nil, and
pulse via the AppKit animator instead of the button's CALayer. Unlike Aboudjem#5,
isVisible is not forced on every poll, so hiding the icon in System
Settings is respected.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant