Commit 10f088f2 authored by gcasto's avatar gcasto Committed by Commit bot

[Password Generation] Small UI tweaks

BUG=412955

Review URL: https://codereview.chromium.org/595353003

Cr-Commit-Position: refs/heads/master@{#296550}
parent 10d32223
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
namespace autofill { namespace autofill {
const SkColor PasswordGenerationPopupView::kPasswordTextColor =
SkColorSetRGB(0x33, 0x33, 0x33);
const SkColor PasswordGenerationPopupView::kExplanatoryTextBackgroundColor = const SkColor PasswordGenerationPopupView::kExplanatoryTextBackgroundColor =
SkColorSetRGB(0xF5, 0xF5, 0xF5); SkColorSetRGB(0xF5, 0xF5, 0xF5);
const SkColor PasswordGenerationPopupView::kExplanatoryTextColor = const SkColor PasswordGenerationPopupView::kExplanatoryTextColor =
......
...@@ -44,6 +44,7 @@ class PasswordGenerationPopupView { ...@@ -44,6 +44,7 @@ class PasswordGenerationPopupView {
static PasswordGenerationPopupView* Create( static PasswordGenerationPopupView* Create(
PasswordGenerationPopupController* controller); PasswordGenerationPopupController* controller);
static const SkColor kPasswordTextColor;
static const SkColor kExplanatoryTextBackgroundColor; static const SkColor kExplanatoryTextBackgroundColor;
static const SkColor kExplanatoryTextColor; static const SkColor kExplanatoryTextColor;
static const SkColor kDividerColor; static const SkColor kDividerColor;
......
...@@ -40,7 +40,7 @@ class PasswordTextBox : public views::View { ...@@ -40,7 +40,7 @@ class PasswordTextBox : public views::View {
const base::string16& generated_password, const base::string16& generated_password,
const gfx::FontList& font_list) { const gfx::FontList& font_list) {
views::BoxLayout* box_layout = new views::BoxLayout( views::BoxLayout* box_layout = new views::BoxLayout(
views::BoxLayout::kVertical, 0, 10, 5); views::BoxLayout::kVertical, 0, 12, 5);
box_layout->set_main_axis_alignment( box_layout->set_main_axis_alignment(
views::BoxLayout::MAIN_AXIS_ALIGNMENT_START); views::BoxLayout::MAIN_AXIS_ALIGNMENT_START);
SetLayoutManager(box_layout); SetLayoutManager(box_layout);
...@@ -49,14 +49,14 @@ class PasswordTextBox : public views::View { ...@@ -49,14 +49,14 @@ class PasswordTextBox : public views::View {
suggestion_text, font_list.DeriveWithStyle(gfx::Font::BOLD)); suggestion_text, font_list.DeriveWithStyle(gfx::Font::BOLD));
suggestion_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); suggestion_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
suggestion_label->SetEnabledColor( suggestion_label->SetEnabledColor(
PasswordGenerationPopupViewViews::kItemTextColor); PasswordGenerationPopupView::kPasswordTextColor);
AddChildView(suggestion_label); AddChildView(suggestion_label);
views::Label* password_label = views::Label* password_label =
new views::Label(generated_password, font_list); new views::Label(generated_password, font_list);
password_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); password_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
password_label->SetEnabledColor( password_label->SetEnabledColor(
PasswordGenerationPopupViewViews::kItemTextColor); PasswordGenerationPopupView::kPasswordTextColor);
AddChildView(password_label); AddChildView(password_label);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment