mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Fix for issue #807 (NSTextField sets text color unconditionally, which causes theme lookup failure later)
This commit is contained in:
1 parent
4fc894e430
commit
5b1ca8a7f9
1 file changed
+6
-1
@@ -54,7 +54,12 @@
|
||||
|
||||
[self setPlaceholderString:[cell placeholderString]];
|
||||
|
||||
[self setTextColor:[cell textColor]];
|
||||
var textColor = [cell textColor],
|
||||
defaultColor = [self currentValueForThemeAttribute:@"text-color"];
|
||||
|
||||
// Don't change the text color if it is not the default, that messes up the theme lookups later
|
||||
if (![textColor isEqual:defaultColor])
|
||||
[self setTextColor:[cell textColor]];
|
||||
|
||||
var frame = [self frame];
|
||||
|
||||
|
||||
Reference in new issue
Block a user