Fix menubar icon invisible in light mode (#741)

Set isTemplate = true on the menu bar icon image so macOS automatically
renders it black in light mode and white in dark mode. Changed the glyph
fill from white to black per template image convention.

Closes https://github.com/manaflow-ai/cmux/issues/737
This commit is contained in:
Lawrence Chen 2026-03-01 21:35:50 -08:00 committed by GitHub
parent aaf6a24165
commit 33242f8780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7750,6 +7750,7 @@ enum MenuBarIconRenderer {
drawBadge(text: text, in: config.badgeRect, config: config)
}
image.isTemplate = true
return image
}
@ -7778,7 +7779,7 @@ enum MenuBarIconRenderer {
path.line(to: map(384.0, 369.0))
path.close()
NSColor.white.setFill()
NSColor.black.setFill()
path.fill()
}