Browse Source

Update to SF Symbol image!

pull/92/head
Abhishek 5 years ago
parent
commit
68b152c669
  1. 14
      Clocker/Overall App/Themer.swift
  2. 7
      Clocker/Panel/UI/TimezoneDataSource.swift

14
Clocker/Overall App/Themer.swift

@ -166,6 +166,11 @@ extension Themer {
}
func preferenceImage() -> NSImage {
if #available(macOS 10.16, *) {
return NSImage(systemSymbolName: "gear",
accessibilityDescription: nil)!
}
if #available(macOS 10.14, *) {
switch themeIndex {
case .light:
@ -177,7 +182,10 @@ extension Themer {
}
}
return themeIndex == .light ? NSImage(named: NSImage.Name("Settings"))! : NSImage(named: NSImage.Name("Settings-White"))!
return
themeIndex == .light
? NSImage(named: NSImage.Name("Settings"))!
: NSImage(named: NSImage.Name("Settings-White"))!
}
func pinImage() -> NSImage {
@ -192,7 +200,9 @@ extension Themer {
}
}
return themeIndex == .light ? NSImage(named: NSImage.Name("Float"))! : NSImage(named: NSImage.Name("Float-White"))!
return themeIndex == .light
? NSImage(named: NSImage.Name("Float"))!
: NSImage(named: NSImage.Name("Float-White"))!
}
func sunriseImage() -> NSImage {

7
Clocker/Panel/UI/TimezoneDataSource.swift

@ -136,7 +136,12 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate {
})
swipeToDelete.image = NSImage(named: NSImage.Name("Trash"))
if #available(OSX 10.16, *) {
swipeToDelete.image = NSImage(systemSymbolName: "trash.fill",
accessibilityDescription: nil)
} else {
swipeToDelete.image = NSImage(named: NSImage.Name("Trash"))
}
return [swipeToDelete]
}

Loading…
Cancel
Save