Browse Source

Fallback to System font if the Avenir font is not available.

pull/101/head
Abhishek 3 years ago
parent
commit
d646f5c7aa
  1. 2
      Clocker/Onboarding/OnboardingSearchController.swift

2
Clocker/Onboarding/OnboardingSearchController.swift

@ -60,7 +60,7 @@ class OnboardingSearchController: NSViewController {
resultsTableView.reloadData()
func setupUndoButton() {
let font = NSFont(name: "Avenir", size: 13)!
let font = NSFont(name: "Avenir", size: 13) ?? NSFont.systemFont(ofSize: 13)
let attributes = [NSAttributedString.Key.foregroundColor: NSColor.linkColor,
NSAttributedString.Key.font: font]
undoButton.attributedTitle = NSAttributedString(string: "UNDO", attributes: attributes)

Loading…
Cancel
Save