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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc

Issue 9585015: Fixing highlight & autocomplete colors according to spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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/gfx/native_theme_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc b/chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc
index dc2ce4f0355fbe872269dbdb5304ccee4dee7d8f..781bcc357855b40be01a027ea0d1663157aa99dc 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc
@@ -153,6 +153,9 @@ SkColor AutocompleteResultView::GetColor(ResultViewState state,
gfx::NativeTheme::kColorId_TextfieldDefaultBackground);
colors[NORMAL][TEXT] = theme->GetSystemColor(
gfx::NativeTheme::kColorId_TextfieldDefaultColor);
+ colors[NORMAL][URL] = SkColorSetARGB(0xff, 0x00, 0x99, 0x33);
+ colors[SELECTED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
+ colors[HOVERED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
#elif defined(TOOLKIT_USES_GTK)
GdkColor bg_color, selected_bg_color, text_color, selected_text_color;
gtk_util::GetTextColors(
@@ -175,8 +178,10 @@ SkColor AutocompleteResultView::GetColor(ResultViewState state,
for (int i = 0; i < NUM_STATES; ++i) {
colors[i][DIMMED_TEXT] =
color_utils::AlphaBlend(colors[i][TEXT], colors[i][BACKGROUND], 128);
+#if !defined(USE_AURA)
colors[i][URL] = color_utils::GetReadableColor(SkColorSetRGB(0, 128, 0),
colors[i][BACKGROUND]);
+#endif
}
initialized = true;
}
« no previous file with comments | « no previous file | ui/gfx/native_theme_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698