fix: fixed combined modules selector icons color when dark mode is enable (#1311)

This commit is contained in:
Serhiy Mytrovtsiy
2023-02-13 18:28:00 +01:00
parent acd120f9d7
commit c7ab1e8a03
2 changed files with 2 additions and 3 deletions

View File

@@ -563,6 +563,7 @@ internal class ModulePreview: NSStackView {
self.spacing = 0
self.imageView.image = icon
self.imageView.contentTintColor = .textBackgroundColor
self.addArrangedSubview(self.imageView)

View File

@@ -538,9 +538,7 @@ private class MenuItem: NSView {
}
imageView.frame = NSRect(x: 8, y: (32 - 18)/2, width: 18, height: 18)
imageView.wantsLayer = true
if #available(OSX 10.14, *) {
imageView.contentTintColor = .labelColor
}
imageView.contentTintColor = .labelColor
self.imageView = imageView
let titleView = TextView(frame: NSRect(x: 34, y: ((32 - 16)/2) + 1, width: 100, height: 16))