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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.cc

Issue 2077803002: Modify the ommnibox dropdown colors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@theme_cleanup
Patch Set: Created 4 years, 6 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/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_result_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
index 1d7bfeab123773224d3973963418a0145baf2e51..e288c4afd52bb6c5355776f9e82587101e5aa60b 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc
@@ -624,8 +624,11 @@ gfx::ImageSkia OmniboxResultView::GetKeywordIcon() const {
gfx::ImageSkia OmniboxResultView::GetVectorIcon(
gfx::VectorIconId icon_id) const {
- return gfx::CreateVectorIcon(icon_id, 16, color_utils::DeriveDefaultIconColor(
- GetColor(GetState(), TEXT)));
+ // For selected rows, paint the icon the same color as the text.
+ SkColor color = GetColor(GetState(), TEXT);
+ if (GetState() != SELECTED)
+ color = color_utils::DeriveDefaultIconColor(color);
+ return gfx::CreateVectorIcon(icon_id, 16, color);
}
bool OmniboxResultView::ShowOnlyKeywordMatch() const {
« no previous file with comments | « no previous file | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698