Fixed: Combo box disabled state dims text

Previously, setting a CPComboBox to disabled would not dim the text. This commit fixes the theme state to include a setting for the text colour and text shadow colour.
This commit is contained in:
Andrew Hankinson
2013-03-26 19:19:03 -04:00
parent 7d6cdf1b7b
commit d50439161a
+4 -1
View File
@@ -834,7 +834,10 @@ var themedButtonValues = nil,
// Because combo box uses a three-part bezel, the height is fixed
[@"min-size", CGSizeMake(0, 31.0)],
[@"max-size", CGSizeMake(-1, 31.0)]
[@"max-size", CGSizeMake(-1, 31.0)],
[@"text-color", [CPColor colorWithCalibratedWhite:0.6 alpha:1.0], CPThemeStateBordered | CPThemeStateDisabled],
[@"text-shadow-color", [CPColor colorWithCalibratedWhite:240.0 / 255.0 alpha:0.6], CPThemeStateBordered | CPThemeStateDisabled],
];
[self registerThemeValues:overrides forView:combo inherit:themedTextFieldValues];