Browse Source

Match system clock font.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
4e1a56f834
  1. 6
      Clocker/Panel/ParentPanelController.swift

6
Clocker/Panel/ParentPanelController.swift

@ -587,6 +587,9 @@ class ParentPanelController: NSWindowController {
private lazy var menubarTitleHandler = MenubarTitleProvider(with: DataStore.shared(), eventStore: EventCenter.sharedCenter()) private lazy var menubarTitleHandler = MenubarTitleProvider(with: DataStore.shared(), eventStore: EventCenter.sharedCenter())
static private let attributes: [NSAttributedString.Key : Any] = [NSAttributedString.Key.font: NSFont.monospacedDigitSystemFont(ofSize: 13.0, weight: NSFont.Weight.regular),
NSAttributedString.Key.baselineOffset : 0.1]
@objc func updateTime() { @objc func updateTime() {
let store = DataStore.shared() let store = DataStore.shared()
@ -597,7 +600,8 @@ class ParentPanelController: NSWindowController {
if store.shouldDisplay(.menubarCompactMode) { if store.shouldDisplay(.menubarCompactMode) {
status.updateCompactMenubar() status.updateCompactMenubar()
} else { } else {
status.statusItem.title = menubarTitleHandler.titleForMenubar() status.statusItem.button?.attributedTitle = NSAttributedString(string: menubarTitleHandler.titleForMenubar() ?? "",
attributes: ParentPanelController.attributes)
} }
} }
} }

Loading…
Cancel
Save