Skip to content

Commit

Permalink
Fix menubar icon size on macOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
pakerwreah committed Jan 21, 2022
1 parent 64ed097 commit 1c1bd39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Calendr/MenuBar/StatusItemViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class StatusItemViewModel {
let attachment = NSTextAttachment()
attachment.image = Icons.MenuBar.icon.with(scale: .large)
title.append(NSAttributedString(attachment: attachment))

if #available(macOS 12, *) {
title.addAttributes(
[.font: NSFont.systemFont(ofSize: 15), .baselineOffset: -0.5],
range: NSRange(location: 0, length: title.length)
)
}
}

if showDate {
Expand Down

0 comments on commit 1c1bd39

Please sign in to comment.