Skip to content

Commit d1b6c38

Browse files
committed
Update status bar icon color for BigSur
- from 10.14 there are dynamic colors available to reflect system colors.
1 parent 5cc7d24 commit d1b6c38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Telegram-Mac/GlobalBadgeNode.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ func forceUpdateStatusBarIconByDockTile(sharedContext: SharedAccountContext) {
228228
if let count = Int(NSApplication.shared.dockTile.badgeLabel ?? "0") {
229229
var color: NSColor = .black
230230
if #available(OSX 10.14, *) {
231-
if systemAppearance.name != .aqua {
232-
color = .white
233-
}
231+
color = .windowBackgroundColor
234232
}
235233
resourcesQueue.async {
236234
let icon = generateStatusBarIcon(count, color: color)

0 commit comments

Comments
 (0)