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

Unified Diff: ash/common/system/tray/tray_popup_utils.cc

Issue 2535003002: CrOS MD Menu - Some more user row tweaks. (Closed)
Patch Set: sign out button improvements Created 4 years, 1 month 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 | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_popup_utils.cc
diff --git a/ash/common/system/tray/tray_popup_utils.cc b/ash/common/system/tray/tray_popup_utils.cc
index b5e3deb294380a84caf165b59617c1bbc0a1994d..44a75fd50a940ea34c5b8bf21e9cbf4a0607e5d6 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -113,9 +113,9 @@ class BorderlessLabelButton : public views::LabelButton {
set_has_ink_drop_action_on_click(true);
set_ink_drop_base_color(kTrayPopupInkDropBaseColor);
set_ink_drop_visible_opacity(kTrayPopupInkDropRippleOpacity);
- const int kHorizontalPadding = 8;
+ const int kHorizontalPadding = 20;
SetBorder(views::CreateEmptyBorder(gfx::Insets(0, kHorizontalPadding)));
- TrayPopupItemStyle style(nullptr, TrayPopupItemStyle::FontStyle::BUTTON);
+ TrayPopupItemStyle style(TrayPopupItemStyle::FontStyle::BUTTON);
style.SetupLabel(label());
// TODO(tdanderson): Update focus rect for material design. See
// crbug.com/615892
@@ -139,7 +139,7 @@ class BorderlessLabelButton : public views::LabelButton {
// views::LabelButton:
int GetHeightForWidth(int width) const override {
if (MaterialDesignController::IsSystemTrayMenuMaterial())
- return kMenuButtonSize - 2 * kTrayPopupInkDropInset;
+ return kMenuButtonSize;
return LabelButton::GetHeightForWidth(width);
}
« no previous file with comments | « no previous file | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698