diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 8192f2772..813a0995a 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -102,8 +102,8 @@ var cachedBlackColor, return @{ @"alternate-selected-control-color": [CPNull null], @"secondary-selected-control-color": [CPNull null], - @"selected-text-background-color": [CPColor colorWithHexString:"99CCFF"], - @"selected-text-inactive-background-color": [CPColor colorWithHexString:"CCCCCC"] + @"selected-text-background-color": [CPNull null], + @"selected-text-inactive-background-color": [CPNull null] }; } @@ -502,12 +502,12 @@ var cachedBlackColor, + (CPColor)selectedTextBackgroundColor { - return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-background-color"]; + return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-background-color"] || [CPColor colorWithHexString:"99CCFF"]; } + (CPColor)_selectedTextBackgroundColorUnfocussed { - return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-inactive-background-color"]; + return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-inactive-background-color"] || [CPColor colorWithHexString:"CCCCCC"]; } /* @ignore */