Browse Source

Use monospaced font for standard timezones.

master
Abhishek Banthia 9 months ago
parent
commit
34e808e638
  1. 4
      Clocker/Preferences/Menu Bar/StatusItemHandler.swift

4
Clocker/Preferences/Menu Bar/StatusItemHandler.swift

@ -285,7 +285,9 @@ class StatusItemHandler: NSObject {
// Need setting button's image to nil
// Especially if we have showUpcomingEvents turned to true and menubar timezones are empty
statusItem.button?.image = nil
statusItem.button?.title = title
let attributes = [NSAttributedString.Key.font: NSFont.monospacedDigitSystemFont(ofSize: 13.0, weight: NSFont.Weight.regular),
NSAttributedString.Key.baselineOffset: 0.1] as [NSAttributedString.Key: Any]
statusItem.button?.attributedTitle = NSAttributedString(string: title, attributes: attributes)
updateMenubar()
} else {
setClockerIcon()

Loading…
Cancel
Save