fixed some app theme issues
This commit is contained in:
@@ -505,7 +505,7 @@ static const float REFRESH_CYCLE = 2.0f;
|
||||
}
|
||||
|
||||
- (bool)isDarkTheme{
|
||||
return self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark;
|
||||
return ThemeManager.userInterfaceStyle == UIUserInterfaceStyleDark;
|
||||
}
|
||||
|
||||
- (void) updateLoop {
|
||||
|
||||
@@ -34,10 +34,10 @@ static UIUserInterfaceStyle _userInterfaceStyle;
|
||||
}
|
||||
|
||||
+ (void)setUserInterfaceStyle:(UIUserInterfaceStyle)style {
|
||||
_privateUserInterfaceStyle = style;
|
||||
if (_userInterfaceStyle == style) {
|
||||
return;
|
||||
}
|
||||
_privateUserInterfaceStyle = style;
|
||||
[ThemeManager setPublicUIStyle];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:ThemeDidChangeNotification object:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user