浏览代码

dark mode

marinofaggiana 5 年之前
父节点
当前提交
6c95a98c74
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Main/CCSplit.m

+ 1 - 1
iOSClient/Main/CCSplit.m

@@ -273,7 +273,7 @@
     BOOL isRunningInFullScreen = CGRectEqualToRect([UIApplication sharedApplication].delegate.window.frame, [UIApplication sharedApplication].delegate.window.screen.bounds);
     
     // detect Dark Mode
-    if (@available(iOS 12.0, *)) {
+    if (@available(iOS 13.0, *)) {
         appDelegate.preferredUserInterfaceStyle = self.traitCollection.userInterfaceStyle;
         if ([CCUtility getDarkModeDetect]) {
             if (appDelegate.preferredUserInterfaceStyle == UIUserInterfaceStyleDark) {