|
@@ -109,7 +109,12 @@ class KMSegmentedControl: NSControl {
|
|
|
return
|
|
|
}
|
|
|
if action == .enter {
|
|
|
- cbtn.layer?.backgroundColor = NSColor(hex: "DFE1E5").cgColor
|
|
|
+ if KMAppearance.isDarkMode() {
|
|
|
+ cbtn.layer?.backgroundColor = NSColor(hex: "282A2D").cgColor
|
|
|
+ } else {
|
|
|
+ cbtn.layer?.backgroundColor = NSColor(hex: "DFE1E5").cgColor
|
|
|
+ }
|
|
|
+
|
|
|
} else if action == .exit {
|
|
|
cbtn.layer?.backgroundColor = .clear
|
|
|
}
|