move background color fallbacks to +themeAttributes

This commit is contained in:
daboe01 committed 2016-05-15 11:51:44 +02:00
1 parent 8774090086
commit bacb78e9e8
1 file changed
+4 -4
+4 -4
View File
@@ -102,8 +102,8 @@ var cachedBlackColor,
return @{
@"alternate-selected-control-color": [CPNull null],
@"secondary-selected-control-color": [CPNull null],
@"selected-text-background-color": [CPNull null],
@"selected-text-inactive-background-color": [CPNull null]
@"selected-text-background-color": [CPColor colorWithHexString:"99CCFF"],
@"selected-text-inactive-background-color": [CPColor colorWithHexString:"CCCCCC"]
};
}
@@ -502,12 +502,12 @@ var cachedBlackColor,
+ (CPColor)selectedTextBackgroundColor
{
return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-background-color"] || [CPColor colorWithHexString:"99CCFF"];
return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-background-color"];
}
+ (CPColor)_selectedTextBackgroundColorUnfocussed
{
return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-inactive-background-color"] || [CPColor colorWithHexString:"CCCCCC"];
return [[self _cachedThemeColor] valueForThemeAttribute:@"selected-text-inactive-background-color"];
}
/* @ignore */