Browse Source

Fixing 10.16 panel images bug.

pull/92/head
Abhishek 4 years ago
parent
commit
60ec78d791
  1. 15
      Clocker/Overall App/Themer.swift

15
Clocker/Overall App/Themer.swift

@ -448,13 +448,12 @@ extension Themer {
func symbolImage(for name: String) -> NSImage {
assert(name.count > 0)
return NSImage(named: NSImage.Name("Calendar Tab Icon"))!
// if #available(OSX 10.16, *) {
// return NSImage(systemSymbolName: name,
// accessibilityDescription: name)!
// } else {
// // Dummy image for older xcodes
// return NSImage(named: NSImage.Name("Calendar Tab Icon"))!
// }
if #available(OSX 10.16, *) {
return NSImage(systemSymbolName: name,
accessibilityDescription: name)!
} else {
// Dummy image for older xcodes
return NSImage(named: NSImage.Name("Calendar Tab Icon"))!
}
}
}

Loading…
Cancel
Save