Skip to content

Fix menu bar label color in dark appearance#11

Draft
tesuheee wants to merge 1 commit into
otoha1119:mainfrom
tesuheee:codex/fix-menubar-dark-text
Draft

Fix menu bar label color in dark appearance#11
tesuheee wants to merge 1 commit into
otoha1119:mainfrom
tesuheee:codex/fix-menubar-dark-text

Conversation

@tesuheee

Copy link
Copy Markdown

Summary

Fix the menu bar percentage labels being rendered with the wrong foreground color in dark appearance.

The menu bar label is rendered into an NSImage with ImageRenderer. Without an explicit color scheme, Color.primary can be resolved while rendering the bitmap in a way that does not match the actual dark menu bar, making the percentage text difficult to read.

Changes

  • Resolve the current effective AppKit appearance.
  • Pass the matching SwiftUI color scheme into the rendered label content before creating the NSImage.

Validation

  • swift build -c release
  • Verified locally that the app launches after reinstalling the built .app.

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