File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/com/inet/gradle/setup/dmg/preferences/SetupBuilderOSXPrefPane/Service Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ - (void)setService:(Service *)service
4343 }];
4444
4545 NSString *asRootString = localized (@" runAsRoot" );
46+
47+ NSString *osxMode = [[NSUserDefaults standardUserDefaults ] stringForKey: @" AppleInterfaceStyle" ];
48+ NSColor *color = [@" dark" isEqualToString: osxMode.lowercaseString] ? [NSColor whiteColor ] : [NSColor blueColor ];
49+
4650 for ( NSDictionary *starter in [service starter ] ) {
4751
4852 NSString *action = [starter valueForKey: @" action" ];
@@ -57,7 +61,6 @@ - (void)setService:(Service *)service
5761 NSButton *button = [[NSButton alloc ] init ];
5862 button.title = title;
5963
60- NSColor *color = [NSColor blueColor ];
6164 NSMutableAttributedString *colorTitle = [[NSMutableAttributedString alloc ] initWithAttributedString: [button attributedTitle ]];
6265// DLog(@"title: %@", colorTitle);
6366
You can’t perform that action at this time.
0 commit comments