| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 7e9dbae11d8d961b29cab6b5deea857572a2bc70..f7f2b04da61fd4ce255b9afdcd46468305b05c73 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -385,9 +385,9 @@ SkColor Textfield::GetTextColor() const {
|
| if (!use_default_text_color_)
|
| return text_color_;
|
|
|
| - return GetNativeTheme()->GetSystemColor(read_only() || !enabled() ?
|
| - ui::NativeTheme::kColorId_TextfieldReadOnlyColor :
|
| - ui::NativeTheme::kColorId_TextfieldDefaultColor);
|
| + int style = (read_only() || !enabled()) ? style::STYLE_DISABLED
|
| + : style::STYLE_PRIMARY;
|
| + return style::GetColor(style::CONTEXT_TEXTFIELD, style, GetNativeTheme());
|
| }
|
|
|
| void Textfield::SetTextColor(SkColor color) {
|
|
|