diff --git a/Stats/Views/AppSettings.swift b/Stats/Views/AppSettings.swift index 855542b0..de25aec1 100644 --- a/Stats/Views/AppSettings.swift +++ b/Stats/Views/AppSettings.swift @@ -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() }