Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 2964453002: Use style::CONTEXT_TEXTFIELD for Combobox and Textfield (Closed)
Patch Set: Rebase on top of https://codereview.chromium.org/2957263002 Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/style/typography_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/style/typography_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698