Skip to content

Commit fd60595

Browse files
committed
Make DarkMode Links better
1 parent 30c3590 commit fd60595

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/inet/gradle/setup/dmg/preferences/SetupBuilderOSXPrefPane/Service/ServiceController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)