OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/views/controls/menu/menu_config.h" | |
6 | |
7 #include "ui/base/resource/resource_bundle.h" | |
8 #include "ui/gfx/image/image.h" | |
9 #include "ui/gfx/image/image_skia.h" | |
10 #include "ui/resources/grit/ui_resources.h" | |
11 #include "ui/views/controls/menu/menu_image_util.h" | |
12 | |
13 namespace views { | |
14 | |
15 void MenuConfig::Init() { | |
16 submenu_horizontal_inset = 1; | |
17 arrow_to_edge_padding = 20; | |
18 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | |
19 arrow_width = rb.GetImageNamed(IDR_MENU_HIERARCHY_ARROW).Width(); | |
20 gfx::ImageSkia check = GetMenuCheckImage(false); | |
21 check_height = check.height(); | |
22 item_min_height = 29; | |
23 separator_spacing_height = 7; | |
24 separator_lower_height = 8; | |
25 separator_upper_height = 8; | |
26 label_to_arrow_padding = 20; | |
27 label_to_minor_text_padding = 20; | |
28 always_use_icon_to_label_padding = true; | |
29 align_arrow_and_shortcut = true; | |
30 offset_context_menus = true; | |
31 corner_radius = 2; | |
32 | |
33 // In Ash, the border is provided by the shadow. | |
34 use_outer_border = false; | |
35 } | |
36 | |
37 } // namespace views | |
OLD | NEW |