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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.cc

Issue 2152243002: [Autofill] Tweak credit card signin promo visually. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no curlies Created 4 years, 5 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 | « chrome/browser/ui/views/autofill/autofill_popup_base_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
index 0e47429d67abc81e89cff00bcb1e6cac72cf32f0..b40c8e3116f6960f8070df7abb071e0aa36ab14e 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
#include "chrome/browser/ui/autofill/autofill_popup_layout_model.h"
+#include "chrome/browser/ui/autofill/popup_constants.h"
#include "components/autofill/core/browser/popup_item_ids.h"
#include "components/autofill/core/browser/suggestion.h"
#include "ui/base/resource/resource_bundle.h"
@@ -56,7 +57,7 @@ void AutofillPopupViewViews::OnPaint(gfx::Canvas* canvas) {
if (controller_->GetSuggestionAt(i).frontend_id ==
POPUP_ITEM_ID_SEPARATOR) {
- canvas->FillRect(line_rect, kItemTextColor);
+ canvas->FillRect(line_rect, kLabelTextColor);
} else {
DrawAutofillEntry(canvas, i, line_rect);
}
@@ -70,8 +71,7 @@ void AutofillPopupViewViews::InvalidateRow(size_t row) {
void AutofillPopupViewViews::DrawAutofillEntry(gfx::Canvas* canvas,
int index,
const gfx::Rect& entry_rect) {
- if (controller_->selected_line() == index)
- canvas->FillRect(entry_rect, kHoveredBackgroundColor);
+ canvas->FillRect(entry_rect, controller_->GetBackgroundColorForRow(index));
const bool is_rtl = controller_->IsRTL();
const int text_align =
@@ -117,7 +117,7 @@ void AutofillPopupViewViews::DrawAutofillEntry(gfx::Canvas* canvas,
canvas->DrawStringRectWithFlags(
controller_->GetElidedLabelAt(index), controller_->GetLabelFontList(),
- kItemTextColor,
+ kLabelTextColor,
gfx::Rect(x_align_left, entry_rect.y(), label_width, entry_rect.height()),
text_align);
}
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_popup_base_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698