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

Unified Diff: chrome/browser/ui/views/harmony/harmony_typography_provider.cc

Issue 2964453002: Use style::CONTEXT_TEXTFIELD for Combobox and Textfield (Closed)
Patch Set: Try mac again 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
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:
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc » ('j') | ui/views/controls/combobox/combobox.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698