Browse Source

Dark mode changes.

pull/92/head
Abhishek 5 years ago
parent
commit
cb9af50fde
  1. 7
      Clocker/Media.xcassets/Privacy/Privacy Dynamic.imageset/Contents.json
  2. BIN
      Clocker/Media.xcassets/Privacy/Privacy Dynamic.imageset/Privacy Dynamic-1.png
  3. 7
      Clocker/Preferences/OneWindowController.swift

7
Clocker/Media.xcassets/Privacy/Privacy Dynamic.imageset/Contents.json vendored

@ -6,13 +6,14 @@
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"scale" : "1x", "filename" : "Privacy Dynamic.png",
"appearances" : [ "appearances" : [
{ {
"appearance" : "luminosity", "appearance" : "luminosity",
"value" : "dark" "value" : "dark"
} }
] ],
"scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
@ -21,7 +22,7 @@
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "Privacy Dynamic.png", "filename" : "Privacy Dynamic-1.png",
"appearances" : [ "appearances" : [
{ {
"appearance" : "luminosity", "appearance" : "luminosity",

BIN
Clocker/Media.xcassets/Privacy/Privacy Dynamic.imageset/Privacy Dynamic-1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

7
Clocker/Preferences/OneWindowController.swift

@ -96,12 +96,13 @@ class OneWindowController: NSWindowController {
} }
let themer = Themer.shared() let themer = Themer.shared()
let identifierTOImageMapping: [String: NSImage] = ["Appearance": themer.appearanceTabImage(), let identifierTOImageMapping: [String: NSImage] = ["Appearance Tab": themer.appearanceTabImage(),
"Calendar": themer.calendarTabImage(), "Calendar Tab": themer.calendarTabImage(),
"Permissions": themer.privacyTabImage()] "Permissions Tab": themer.privacyTabImage()]
tabViewController.tabViewItems.forEach { tabViewItem in tabViewController.tabViewItems.forEach { tabViewItem in
let identity = (tabViewItem.identifier as? String) ?? "" let identity = (tabViewItem.identifier as? String) ?? ""
print(identity)
if identifierTOImageMapping[identity] != nil { if identifierTOImageMapping[identity] != nil {
tabViewItem.image = identifierTOImageMapping[identity] tabViewItem.image = identifierTOImageMapping[identity]
} }

Loading…
Cancel
Save