summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/menu/menu_config_chromeos.cc
blob: 75250e7c43f07ecf3631f74a76ac1fd082642c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/controls/menu/menu_config.h"

#include "ui/views/controls/menu/menu_image_util.h"

namespace views {

void MenuConfig::Init() {
  submenu_horizontal_inset = 1;
  arrow_to_edge_padding = 21;
  gfx::ImageSkia check = GetMenuCheckImage(false);
  check_height = check.height();
  item_min_height = 29;
  separator_spacing_height = 7;
  separator_lower_height = 8;
  separator_upper_height = 8;
  label_to_arrow_padding = 20;
  label_to_minor_text_padding = 20;
  always_use_icon_to_label_padding = true;
  align_arrow_and_shortcut = true;
  offset_context_menus = true;
  corner_radius = 2;

  // In Ash, the border is provided by the shadow.
  use_outer_border = false;
}

}  // namespace views