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",
"scale" : "1x",
"filename" : "Privacy Dynamic.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
],
"scale" : "1x"
},
{
"idiom" : "universal",
@ -21,7 +22,7 @@
},
{
"idiom" : "universal",
"filename" : "Privacy Dynamic.png",
"filename" : "Privacy Dynamic-1.png",
"appearances" : [
{
"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 identifierTOImageMapping: [String: NSImage] = ["Appearance": themer.appearanceTabImage(),
"Calendar": themer.calendarTabImage(),
"Permissions": themer.privacyTabImage()]
let identifierTOImageMapping: [String: NSImage] = ["Appearance Tab": themer.appearanceTabImage(),
"Calendar Tab": themer.calendarTabImage(),
"Permissions Tab": themer.privacyTabImage()]
tabViewController.tabViewItems.forEach { tabViewItem in
let identity = (tabViewItem.identifier as? String) ?? ""
print(identity)
if identifierTOImageMapping[identity] != nil {
tabViewItem.image = identifierTOImageMapping[identity]
}

Loading…
Cancel
Save