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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2142173002: Margin tweaks in the desktop user menu UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified variable name 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index cbae94c49150976daea87beb1a9ca1efbfd16644..7ea8a877bd3b70d1022a96622dc541c2a54ceb97 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1565,7 +1565,7 @@ views::View* ProfileChooserView::CreateMaterialDesignCurrentProfileView(
current_profile_name->SetHorizontalAlignment(gfx::ALIGN_LEFT);
NonInteractiveContainer* profile_name_container =
new NonInteractiveContainer();
- int name_container_v_spacing = views::kRelatedControlSmallVerticalSpacing;
+ int name_container_v_spacing = views::kRelatedControlVerticalSpacing;
if (!avatar_item.signed_in || switches::IsEnableAccountConsistency())
name_container_v_spacing += views::kRelatedControlVerticalSpacing;
profile_name_container->SetLayoutManager(new views::BoxLayout(
@@ -1801,15 +1801,17 @@ views::View* ProfileChooserView::CreateOptionsView(bool display_lock,
views::View* ProfileChooserView::CreateSupervisedUserDisclaimerView() {
views::View* view = new views::View();
+ int horizontal_margin = switches::IsMaterialDesignUserMenu() ?
+ kMaterialMenuEdgeMargin : views::kButtonHEdgeMarginNew;
views::GridLayout* layout = CreateSingleColumnLayout(
- view, GetFixedMenuWidth() - 2 * views::kButtonHEdgeMarginNew);
+ view, GetFixedMenuWidth() - 2 * horizontal_margin);
if (switches::IsMaterialDesignUserMenu()) {
- layout->SetInsets(0, kMaterialMenuEdgeMargin, kMaterialMenuEdgeMargin,
- kMaterialMenuEdgeMargin);
+ layout->SetInsets(0, horizontal_margin,
+ kMaterialMenuEdgeMargin, horizontal_margin);
} else {
layout->SetInsets(
- views::kRelatedControlVerticalSpacing, views::kButtonHEdgeMarginNew,
- views::kRelatedControlVerticalSpacing, views::kButtonHEdgeMarginNew);
+ views::kRelatedControlVerticalSpacing, horizontal_margin,
+ views::kRelatedControlVerticalSpacing, horizontal_margin);
}
views::Label* disclaimer = new views::Label(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698