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

Unified Diff: chrome/browser/ui/libgtkui/native_theme_gtk.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
« no previous file with comments | « no previous file | ui/gfx/render_text.h » ('j') | ui/gfx/render_text.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/native_theme_gtk.cc
diff --git a/chrome/browser/ui/libgtkui/native_theme_gtk.cc b/chrome/browser/ui/libgtkui/native_theme_gtk.cc
index 8a0a23a2aa0bd5798789048313aeea80c5b82b6d..9d1cd67f6209031d19eb06148881daa73f681097 100644
--- a/chrome/browser/ui/libgtkui/native_theme_gtk.cc
+++ b/chrome/browser/ui/libgtkui/native_theme_gtk.cc
@@ -322,20 +322,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(), INSENSITIVE);
// Tooltips
case kColorId_TooltipBackground:
« no previous file with comments | « no previous file | ui/gfx/render_text.h » ('j') | ui/gfx/render_text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698