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

Unified Diff: ui/views/controls/menu/menu_config_views.cc

Issue 25144002: views: Make sure menu checks and submenu arrows have high contrast even when selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 3 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 | « ui/resources/ui_resources.grd ('k') | ui/views/controls/menu/menu_image_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_config_views.cc
diff --git a/ui/views/controls/menu/menu_config_views.cc b/ui/views/controls/menu/menu_config_views.cc
index baa56156b61c46a5d86bc6ec14e9b5b12c6cd85c..de2375c4221336b327b7dba597c8239be51ae76a 100644
--- a/ui/views/controls/menu/menu_config_views.cc
+++ b/ui/views/controls/menu/menu_config_views.cc
@@ -32,12 +32,12 @@ void MenuConfig::InitAura(const ui::NativeTheme* theme) {
text_color = theme->GetSystemColor(
ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor);
submenu_horizontal_inset = 1;
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
arrow_to_edge_padding = 20;
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
arrow_width =
rb.GetImageNamed(IDR_MENU_HIERARCHY_ARROW).ToImageSkia()->width();
- const gfx::ImageSkia* check = GetMenuCheckImage();
- check_height = check->height();
+ gfx::ImageSkia check = GetMenuCheckImage(false);
+ check_height = check.height();
item_min_height = 29;
separator_spacing_height = 7;
separator_lower_height = 8;
« no previous file with comments | « ui/resources/ui_resources.grd ('k') | ui/views/controls/menu/menu_image_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698