Browse Source

Update remove image for Preferences.

master
Abhishek Banthia 9 months ago
parent
commit
8674d538a4
  1. 12
      Clocker/Overall App/Themer.swift
  2. 4
      Clocker/Preferences/General/PreferencesViewController.swift

12
Clocker/Overall App/Themer.swift

@ -219,6 +219,18 @@ extension Themer {
NSImage(named: NSImage.Name("WhiteSunset"))!)
}
func remove() -> NSImage {
if let symbolImage = symbolImage(for: "xmark") {
return symbolImage
}
return fallbackImageProvider(NSImage(named: NSImage.Name("Remove"))!,
NSImage(named: NSImage.Name("WhiteRemove"))!,
NSImage(named: NSImage.Name("Remove Dynamic"))!,
NSImage(named: NSImage.Name("Remove"))!,
NSImage(named: NSImage.Name("WhiteRemove"))!)
}
func removeImage() -> NSImage {
if let symbolImage = symbolImage(for: "xmark.circle") {
return symbolImage

4
Clocker/Preferences/General/PreferencesViewController.swift

@ -134,7 +134,7 @@ class PreferencesViewController: ParentViewController {
private func darkModeChanges() {
addTimezoneButton.image = Themer.shared().addImage()
deleteButton.image = Themer.shared().removeImage()
deleteButton.image = Themer.shared().remove()
}
private func setupLocalizedText() {
@ -259,7 +259,7 @@ class PreferencesViewController: ParentViewController {
timezonePanel.contentView?.wantsLayer = true
timezonePanel.contentView?.layer?.backgroundColor = Themer.shared().textBackgroundColor().cgColor
addTimezoneButton.image = themer.addImage()
deleteButton.image = themer.removeImage()
deleteButton.image = themer.remove()
}
private func setupShortcutObserver() {

Loading…
Cancel
Save