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

Unified Diff: ui/native_theme/native_theme_dark_aura.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_dark_aura.cc
diff --git a/ui/native_theme/native_theme_dark_aura.cc b/ui/native_theme/native_theme_dark_aura.cc
index f40f64c654bd48061b9941c4b791d450a093a2c8..124acd5ff3bc8e32a4a21309de3b336eeef19e12 100644
--- a/ui/native_theme/native_theme_dark_aura.cc
+++ b/ui/native_theme/native_theme_dark_aura.cc
@@ -23,6 +23,8 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
SkColorSetRGB(0x62, 0x62, 0x62);
static const SkColor kTextfieldSelectionBackgroundFocused =
SkColorSetA(gfx::kGoogleBlue700, 0xCC);
+ static const SkColor kTextfieldSelectionBackgroundUnfocused =
+ SkColorSetA(SK_ColorWHITE, 0xCC);
static const SkColor kResultsTableNormalBackground =
SkColorSetRGB(0x28, 0x28, 0x28);
@@ -60,6 +62,8 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
return kTextfieldDefaultBackground;
case kColorId_TextfieldSelectionBackgroundFocused:
return kTextfieldSelectionBackgroundFocused;
+ case kColorId_TextfieldSelectionBackgroundUnfocused:
+ return kTextfieldSelectionBackgroundUnfocused;
// Results Tables
case kColorId_ResultsTableNormalBackground:

Powered by Google App Engine
This is Rietveld 408576698