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

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

Issue 2498293003: CrOS md user row adjustments (Closed)
Patch Set: is_active_user() 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 | « ash/common/system/tray/system_tray.cc ('k') | ash/common/system/user/rounded_image_view.h » ('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 60f36e275f7151a16d0d0d4a0c1777769d9d9b52..00bbda863956519dcceae494033859257556c8ea 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -11,6 +11,7 @@
#include "ash/common/system/tray/fixed_sized_image_view.h"
#include "ash/common/system/tray/size_range_layout.h"
#include "ash/common/system/tray/tray_constants.h"
+#include "ash/common/system/tray/tray_popup_item_style.h"
#include "ash/common/system/tray/tray_popup_label_button.h"
#include "ash/common/system/tray/tray_popup_label_button_border.h"
#include "ash/common/wm_shell.h"
@@ -105,8 +106,10 @@ 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 = 20;
+ const int kHorizontalPadding = 8;
SetBorder(views::CreateEmptyBorder(gfx::Insets(0, kHorizontalPadding)));
+ TrayPopupItemStyle style(nullptr, TrayPopupItemStyle::FontStyle::BUTTON);
+ style.SetupLabel(label());
// TODO(tdanderson): Update focus rect for material design. See
// crbug.com/615892
} else {
« no previous file with comments | « ash/common/system/tray/system_tray.cc ('k') | ash/common/system/user/rounded_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698