mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 02:08:55 +00:00
apply to contentView instead of bezelView
This commit is contained in:
1 parent
3652931be8
commit
634c6dd455
1 file changed
+5
-1
@@ -1730,7 +1730,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
relativeToEphemeralSubviewNamed:@"content-view"];
|
||||
|
||||
if (bezelView)
|
||||
[bezelView setBackgroundColor:_textFieldBackgroundColor || [self currentValueForThemeAttribute:@"bezel-color"]];
|
||||
[bezelView setBackgroundColor:[self currentValueForThemeAttribute:@"bezel-color"]];
|
||||
|
||||
var contentView = [self layoutEphemeralSubviewNamed:@"content-view"
|
||||
positioned:CPWindowAbove
|
||||
@@ -1755,6 +1755,10 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
[contentView setText:string];
|
||||
|
||||
[contentView setTextColor:[self currentValueForThemeAttribute:@"text-color"]];
|
||||
|
||||
if (_textFieldBackgroundColor)
|
||||
[contentView setBackgroundColor:_textFieldBackgroundColor];
|
||||
|
||||
[contentView setFont:[self currentValueForThemeAttribute:@"font"]];
|
||||
[contentView setAlignment:[self currentValueForThemeAttribute:@"alignment"]];
|
||||
[contentView setVerticalAlignment:[self currentValueForThemeAttribute:@"vertical-alignment"]];
|
||||
|
||||
Reference in new issue
Block a user