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

Unified Diff: ui/native_theme/native_theme_win.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
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index eb03ae51ad6f3595fbddc584441a787b4965da73..ef155f2e07b86447dee3df6de98e68802e94f490 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -563,6 +563,9 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
return system_colors_[COLOR_HIGHLIGHTTEXT];
case kColorId_TextfieldSelectionBackgroundFocused:
return system_colors_[COLOR_HIGHLIGHT];
+ case kColorId_TextfieldSelectionBackgroundUnfocused:
+ return system_colors_[IsUsingHighContrastTheme() ? COLOR_MENUHIGHLIGHT
+ : COLOR_BTNFACE];
tapted 2016/10/13 06:21:35 This comes up for kColorId_TreeSelectionBackground
Patti Lor 2016/10/24 02:43:17 Done.
// Tooltip
case kColorId_TooltipBackground:

Powered by Google App Engine
This is Rietveld 408576698