|
@@ -420,9 +420,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
|
|
|
@objc private func _themeChanged(_ sender: Notification) {
|
|
|
let isDarkModel = KMAdvertisementConfig.isDarkModel()
|
|
|
if isDarkModel {
|
|
|
- NSApp.appearance = .init(named: .darkAqua)
|
|
|
+ NSApp.appearance = NSAppearance(named: .darkAqua)
|
|
|
} else {
|
|
|
- NSApp.appearance = .init(named: .aqua)
|
|
|
+ NSApp.appearance = NSAppearance(named: .aqua)
|
|
|
}
|
|
|
// if let data = NSApp.appearance?.name, data == .darkAqua {
|
|
|
// NSApp.appearance = .init(named: .aqua)
|