mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 08:14:19 +09:00
fix: fixed combined modules selector icons color when the light mode is enabled (added watcher for dark/light mode)
This commit is contained in:
@@ -563,7 +563,7 @@ internal class ModulePreview: NSStackView {
|
||||
self.spacing = 0
|
||||
|
||||
self.imageView.image = icon
|
||||
self.imageView.contentTintColor = .textBackgroundColor
|
||||
self.imageView.contentTintColor = self.isDarkMode ? .textBackgroundColor : .textColor
|
||||
|
||||
self.addArrangedSubview(self.imageView)
|
||||
|
||||
@@ -584,6 +584,10 @@ internal class ModulePreview: NSStackView {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func updateLayer() {
|
||||
self.imageView.contentTintColor = self.isDarkMode ? .textBackgroundColor : .textColor
|
||||
}
|
||||
|
||||
override func mouseEntered(with: NSEvent) {
|
||||
NSCursor.pointingHand.set()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user