Chromium Code Reviews| Index: chrome/browser/ui/views/harmony/harmony_typography_provider.cc |
| diff --git a/chrome/browser/ui/views/harmony/harmony_typography_provider.cc b/chrome/browser/ui/views/harmony/harmony_typography_provider.cc |
| index 939f5a5844dd0adedd803aac227a3fefd92ce7df..45efc5f97da9360dd5192b56325ff1b965fc34d8 100644 |
| --- a/chrome/browser/ui/views/harmony/harmony_typography_provider.cc |
| +++ b/chrome/browser/ui/views/harmony/harmony_typography_provider.cc |
| @@ -66,6 +66,12 @@ SkColor HarmonyTypographyProvider::GetColor( |
| // themed typography with a custom native theme. Typically just incognito |
| // browser windows, when the native theme is NativeThemeDarkAura. |
| if (foreground_color != SK_ColorBLACK) { |
| + if (context == views::style::CONTEXT_TEXTFIELD) { |
| + return theme.GetSystemColor( |
|
Peter Kasting
2017/06/29 20:24:57
Can we just return TypographyProvider::GetColor(..
tapted
2017/06/30 05:53:43
I ended up tearing out this "what to do when we ca
|
| + style == views::style::STYLE_DISABLED |
| + ? ui::NativeTheme::kColorId_TextfieldReadOnlyColor |
| + : ui::NativeTheme::kColorId_TextfieldDefaultColor); |
| + } |
| switch (style) { |
| case views::style::STYLE_DISABLED: |
| case STYLE_SECONDARY: |