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

Unified Diff: ash/system/tray/system_menu_button.cc

Issue 2889623002: Apply View::set_preferred_size in some more places. (Closed)
Patch Set: fix SystemMenuButton Created 3 years, 7 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 | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_menu_button.cc
diff --git a/ash/system/tray/system_menu_button.cc b/ash/system/tray/system_menu_button.cc
index 9700fb3b0ae6757a4f012740d3499eb5cf6c8b85..cca6f654d19dd37d29400ff5aa5a189554e46ffd 100644
--- a/ash/system/tray/system_menu_button.cc
+++ b/ash/system/tray/system_menu_button.cc
@@ -28,9 +28,10 @@ SystemMenuButton::SystemMenuButton(views::ButtonListener* listener,
DCHECK_EQ(normal_icon.width(), disabled_icon.width());
DCHECK_EQ(normal_icon.height(), disabled_icon.height());
- SetImage(views::Button::STATE_NORMAL, &normal_icon);
- SetImage(views::Button::STATE_DISABLED, &disabled_icon);
+ SetImage(STATE_NORMAL, &normal_icon);
+ SetImage(STATE_DISABLED, &disabled_icon);
+ SetImageAlignment(ALIGN_CENTER, ALIGN_MIDDLE);
set_preferred_size(gfx::Size(kMenuButtonSize, kMenuButtonSize));
SetTooltipText(l10n_util::GetStringUTF16(accessible_name_id));
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698