Skip to content

Commit 894027c

Browse files
committed
There is a link color already. Lets use it!
1 parent 4d0671a commit 894027c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ - (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];
4946

5047
for ( NSDictionary *starter in [service starter] ) {
5148

@@ -65,8 +62,8 @@ - (void)setService:(Service *)service
6562
// DLog(@"title: %@", colorTitle);
6663

6764
NSRange titleRange = NSMakeRange(0, [colorTitle length]);
68-
[colorTitle addAttribute:NSForegroundColorAttributeName value:color range:titleRange];
69-
[colorTitle addAttribute:NSUnderlineColorAttributeName value:color range:titleRange];
65+
[colorTitle addAttribute:NSForegroundColorAttributeName value:[NSColor linkColor] range:titleRange];
66+
[colorTitle addAttribute:NSUnderlineColorAttributeName value:[NSColor linkColor] range:titleRange];
7067
[colorTitle addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:titleRange];
7168
/*
7269
if ( asRoot ) {

0 commit comments

Comments
 (0)