Browse Source

Match System Font.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
ab9147058e
  1. 7
      Clocker/Preferences/Menu Bar/StatusItemHandler.swift

7
Clocker/Preferences/Menu Bar/StatusItemHandler.swift

@ -365,9 +365,10 @@ class StatusItemHandler: NSObject {
setClockerIcon()
return
}
statusItem.button?.title = menubarText
statusItem.button?.font = NSFont.monospacedDigitSystemFont(ofSize: 14.0, weight: NSFont.Weight.regular)
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: menubarText, attributes: attributes)
statusItem.button?.image = nil
statusItem.button?.imagePosition = .imageLeft
}

Loading…
Cancel
Save