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

Unified Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Fix focus changing to other Views. Created 4 years, 2 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 | « no previous file | ui/gfx/render_text.h » ('j') | ui/native_theme/native_theme_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
index 67ad658386ddf24797b2aaa27ba7e97f50b5cd90..4004b33cb411d5a5fa22b67a3d179a54f537d78b 100644
--- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
@@ -331,21 +331,18 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
return GetTextColor(GetEntry(), ACTIVE);
case kColorId_TextfieldReadOnlyBackground:
return GetBaseColor(GetEntry(), ACTIVE);
- case kColorId_TextfieldSelectionColor:
- return GetTextColor(GetEntry(), SELECTED);
- case kColorId_TextfieldSelectionBackgroundFocused:
- return GetBaseColor(GetEntry(), SELECTED);
#else
case kColorId_TextfieldReadOnlyColor:
return GetTextColor(GetEntry(), SELECTED);
case kColorId_TextfieldReadOnlyBackground:
return GetBaseColor(GetEntry(), SELECTED);
+#endif
case kColorId_TextfieldSelectionColor:
return GetTextColor(GetLabel(), SELECTED);
case kColorId_TextfieldSelectionBackgroundFocused:
return GetBaseColor(GetLabel(), SELECTED);
-#endif
-
+ case kColorId_TextfieldSelectionBackgroundUnfocused:
+ return GetBaseColor(GetLabel(), SELECTED);
// Tooltips
case kColorId_TooltipBackground:
« no previous file with comments | « no previous file | ui/gfx/render_text.h » ('j') | ui/native_theme/native_theme_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698