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

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

Issue 12041085: Fix menu corners: the menu background was being painted as a rect when in fact, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 11 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/views/controls/menu/menu_config.cc ('k') | ui/views/controls/menu/menu_host.cc » ('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 edb1ecae94654420e438d902ad46b1d9e50541ea..9e50807f1a9d51a90eb1ac3677293c3c720101b7 100644
--- a/ui/views/controls/menu/menu_config_views.cc
+++ b/ui/views/controls/menu/menu_config_views.cc
@@ -14,6 +14,14 @@
namespace views {
+namespace {
+#if defined(OS_WIN)
+static const int kMenuCornerRadiusForAura = 0;
+#else
+static const int kMenuCornerRadiusForAura = 2;
+#endif
+} // namespace
+
#if !defined(OS_WIN)
void MenuConfig::Init(const ui::NativeTheme* theme) {
InitAura();
@@ -47,6 +55,7 @@ void MenuConfig::InitAura() {
always_use_icon_to_label_padding = true;
align_arrow_and_shortcut = true;
offset_context_menus = true;
+ corner_radius = kMenuCornerRadiusForAura;
}
#if !defined(OS_WIN)
« no previous file with comments | « ui/views/controls/menu/menu_config.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698