Fix artworks view background in dark mode.

This commit is contained in:
Damiano Galassi committed 2018-10-06 11:12:03 +02:00
1 parent fcd94b78b3
commit 40ee904ff4
1 file changed
+10
+10
View File
@@ -33,11 +33,21 @@ import Quartz
override init(frame frameRect: NSRect) {
pasteboardTypes = Array()
super.init(frame: frameRect)
if #available(OSX 10.14, *) {
updateBackgroundColor()
}
}
required init?(coder: NSCoder) {
pasteboardTypes = Array()
super.init(coder: coder)
if #available(OSX 10.14, *) {
updateBackgroundColor()
}
}
private func updateBackgroundColor() {
setValue(NSColor.clear, forKey: IKImageBrowserBackgroundColorKey)
}
private func implements(selector: Selector) -> Bool {