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

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

Issue 267183002: Password manager: Implement password generation UI for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 7 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: chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
index 33272c1da37ccadb90a18ff2e324e36c03da5397..7a3459adc8e171b1c3eac6c11bc0431376f7e0c7 100644
--- a/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc
@@ -18,11 +18,6 @@ namespace autofill {
namespace {
-const SkColor kExplanatoryTextBackground = SkColorSetRGB(0xF5, 0xF5, 0xF5);
-const SkColor kExplanatoryTextColor = SkColorSetRGB(0x66, 0x66, 0x66);
-const SkColor kDividerColor = SkColorSetRGB(0xE9, 0xE9, 0xE9);
-const SkColor kLinkColor = SkColorSetRGB(0x55, 0x59, 0xFE);
-
// The amount of whitespace that is present when there is no padding. Used
// to get the proper spacing in the help section.
const int kHelpVerticalOffset = 3;
@@ -48,7 +43,8 @@ class PasswordRow : public views::View {
suggestion_label_ = new views::Label(suggestion, font_list);
suggestion_label_->SetHorizontalAlignment(gfx::ALIGN_RIGHT);
- suggestion_label_->SetEnabledColor(kExplanatoryTextColor);
+ suggestion_label_->SetEnabledColor(
+ PasswordGenerationPopupView::kExplanatoryTextColor);
AddChildView(suggestion_label_);
}
virtual ~PasswordRow() {}
@@ -90,7 +86,8 @@ PasswordGenerationPopupViewViews::PasswordGenerationPopupViewViews(
help_label_->SetBoundsRect(controller_->help_bounds());
help_label_->set_background(
- views::Background::CreateSolidBackground(kExplanatoryTextBackground));
+ views::Background::CreateSolidBackground(
+ kExplanatoryTextBackgroundColor));
help_label_->SetBorder(views::Border::CreateEmptyBorder(
controller_->kHelpVerticalPadding - kHelpVerticalOffset,
controller_->kHorizontalPadding,
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698