|
|
@ -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] |
|
|
|
} |
|
|
|
} |
|
|
|