]> granicus.if.org Git - handbrake/commitdiff
MacGui: corrently display the presets popover on 10.14 dark mode.
authorDamiano Galassi <damiog@gmail.com>
Sat, 4 Aug 2018 09:48:15 +0000 (11:48 +0200)
committerDamiano Galassi <damiog@gmail.com>
Sat, 4 Aug 2018 09:48:15 +0000 (11:48 +0200)
macosx/HBPresetsViewController.m

index b2888d30fe78e8be80c4347dd864f3ba032f388d..0fe2fa47f9755decc668a217a7f88695f88ec0d7 100644 (file)
@@ -33,7 +33,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
         }
         else
         {
-            self.textField.textColor = [NSColor blueColor];
+            self.textField.textColor = [NSColor systemBlueColor];
         }
     }
     else
@@ -87,7 +87,7 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
 {
     [super viewDidLoad];
 
-    if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_10)
+    if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_10 && NSAppKitVersionNumber < 1651)
     {
         self.view.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
     }