|
@@ -136,6 +136,15 @@ class KMHomeContentView: KMBaseXibView {
|
|
|
horizontalButton.image = NSImage(named: "KMImageNameUXIconHomeViewlistNor")
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ override func updateUI() {
|
|
|
+ self.contentView.wantsLayer = true
|
|
|
+ if(KMAppearance.isDarkMode()){
|
|
|
+ self.contentView.layer?.backgroundColor = NSColor.init(red: 0.055, green: 0.067, blue: 0.078, alpha: 1).cgColor
|
|
|
+ } else {
|
|
|
+ self.contentView.layer?.backgroundColor = NSColor.init(red: 0.922, green: 0.925, blue: 0.941, alpha: 1).cgColor
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//MARK: Action
|