Browse Source

Quick updates.

pull/113/head
Abhishek 3 years ago
parent
commit
4e67028b78
  1. 6
      Clocker/Overall App/Themer.swift
  2. 4
      Clocker/Preferences/General/PreferencesViewController.swift
  3. 2
      Clocker/Preferences/Menu Bar/StatusItemHandler.swift

6
Clocker/Overall App/Themer.swift

@ -191,7 +191,7 @@ extension Themer {
}
func preferenceImage() -> NSImage {
if let symbolImageForPreference = symbolImage(for: "gear") {
if let symbolImageForPreference = symbolImage(for: "plus") {
return symbolImageForPreference
}
@ -389,6 +389,10 @@ extension Themer {
}
func addImage() -> NSImage {
if let symbolImageForPreference = symbolImage(for: "plus") {
return symbolImageForPreference
}
if #available(macOS 10.14, *) {
switch themeIndex {
case .light, .solarizedLight:

4
Clocker/Preferences/General/PreferencesViewController.swift

@ -172,8 +172,8 @@ class PreferencesViewController: ParentViewController {
private func darkModeChanges() {
if #available(macOS 10.14, *) {
addTimezoneButton.image = NSImage(named: .addDynamicIcon)
deleteButton.image = NSImage(named: NSImage.Name("Remove Dynamic"))!
addTimezoneButton.image = Themer.shared().addImage()
deleteButton.image = Themer.shared().removeImage()
}
}

2
Clocker/Preferences/Menu Bar/StatusItemHandler.swift

@ -123,7 +123,7 @@ class StatusItemHandler: NSObject {
self.menubarTimer?.invalidate()
}
NSWorkspace.shared.notificationCenter.addObserver(forName: NSWorkspace.didWakeNotification, object: nil, queue: OperationQueue.main) { notification in
NSWorkspace.shared.notificationCenter.addObserver(forName: NSWorkspace.didWakeNotification, object: nil, queue: OperationQueue.main) { notification in
self.setupStatusItem()
}
}

Loading…
Cancel
Save