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 @@
namespace autofill {
const SkColor PasswordGenerationPopupView::kPasswordTextColor =
SkColorSetRGB(0x33, 0x33, 0x33);
const SkColor PasswordGenerationPopupView::kExplanatoryTextBackgroundColor =
SkColorSetRGB(0xF5, 0xF5, 0xF5);
const SkColor PasswordGenerationPopupView::kExplanatoryTextColor =
......
......@@ -44,6 +44,7 @@ class PasswordGenerationPopupView {
static PasswordGenerationPopupView* Create(
PasswordGenerationPopupController* controller);
static const SkColor kPasswordTextColor;
static const SkColor kExplanatoryTextBackgroundColor;
static const SkColor kExplanatoryTextColor;
static const SkColor kDividerColor;
......
......@@ -40,7 +40,7 @@ class PasswordTextBox : public views::View {
const base::string16& generated_password,
const gfx::FontList& font_list) {
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(
views::BoxLayout::MAIN_AXIS_ALIGNMENT_START);
SetLayoutManager(box_layout);
......@@ -49,14 +49,14 @@ class PasswordTextBox : public views::View {
suggestion_text, font_list.DeriveWithStyle(gfx::Font::BOLD));
suggestion_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
suggestion_label->SetEnabledColor(
PasswordGenerationPopupViewViews::kItemTextColor);
PasswordGenerationPopupView::kPasswordTextColor);
AddChildView(suggestion_label);
views::Label* password_label =
new views::Label(generated_password, font_list);
password_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
password_label->SetEnabledColor(
PasswordGenerationPopupViewViews::kItemTextColor);
PasswordGenerationPopupView::kPasswordTextColor);
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