refactor
This commit is contained in:
parent
de2cad679b
commit
e4fdb9c260
|
@ -431,7 +431,7 @@ public Q_SLOTS:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto view = static_cast<NSVisualEffectView *>(blurEffect);
|
const auto view = static_cast<NSVisualEffectView *>(blurEffect);
|
||||||
if (Utils::shouldAppsUseDarkMode()) {
|
if (FramelessManager::instance()->systemTheme() == SystemTheme::Dark) {
|
||||||
view.appearance = [NSAppearance appearanceNamed:@"NSAppearanceNameVibrantDark"];
|
view.appearance = [NSAppearance appearanceNamed:@"NSAppearanceNameVibrantDark"];
|
||||||
} else {
|
} else {
|
||||||
view.appearance = [NSAppearance appearanceNamed:@"NSAppearanceNameVibrantLight"];
|
view.appearance = [NSAppearance appearanceNamed:@"NSAppearanceNameVibrantLight"];
|
||||||
|
|
Loading…
Reference in New Issue