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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Fix lifetime issues with BorderView's widget_ and address review comments. Created 4 years, 1 month 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/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index 526dea73582c7493a7947f0f7627b09e80c940ee..e6c92fad18e1217179b6c49dc4e592ff9ceb21e2 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -212,6 +212,8 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kTextfieldSelectionColor;
case NativeTheme::kColorId_TextfieldSelectionBackgroundFocused:
return kTextfieldSelectionBackgroundFocused;
+ case NativeTheme::kColorId_TextfieldSelectionBackgroundUnfocused:
+ return kTextfieldSelectionBackgroundFocused;
// Tooltip
case NativeTheme::kColorId_TooltipBackground:

Powered by Google App Engine
This is Rietveld 408576698