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

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

Issue 2429923002: Implement all system menu title row buttons for Ash MD (Closed)
Patch Set: OS_WIN define in tests Created 4 years, 2 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 | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/tray_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_menu_button.cc
diff --git a/ash/common/system/tray/system_menu_button.cc b/ash/common/system/tray/system_menu_button.cc
index 3ac437d6e40a3cf517917011f5d41a760a5b0095..091441920a39416251d0b0b576246d3372959d50 100644
--- a/ash/common/system/tray/system_menu_button.cc
+++ b/ash/common/system/tray/system_menu_button.cc
@@ -22,6 +22,10 @@ SystemMenuButton::SystemMenuButton(views::ButtonListener* listener,
: views::ImageButton(listener) {
gfx::ImageSkia image = gfx::CreateVectorIcon(icon, kMenuIconColor);
SetImage(views::Button::STATE_NORMAL, &image);
+ gfx::ImageSkia disabled_image =
+ gfx::CreateVectorIcon(icon, kMenuIconColorDisabled);
+ SetImage(views::Button::STATE_DISABLED, &disabled_image);
+
const int horizontal_padding = (kMenuButtonSize - image.width()) / 2;
const int vertical_padding = (kMenuButtonSize - image.height()) / 2;
SetBorder(
« no previous file with comments | « ash/common/system/tray/special_popup_row.cc ('k') | ash/common/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698