From: Cheng Zhao Date: Fri, 25 Jul 2014 07:05:18 +0000 (+0800) Subject: win: Make menu bar height 20. X-Git-Tag: v0.14.2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=709670be8ead09e2f77851a4a4ccbeef33f8f1d7;p=electron.git win: Make menu bar height 20. On Windows applications used to have lower menu bars. --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 448fd28a..df013e33 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -52,7 +52,11 @@ namespace atom { namespace { // The menu bar height in pixels. +#if defined(OS_WIN) +const int kMenuBarHeight = 20; +#else const int kMenuBarHeight = 25; +#endif class NativeWindowClientView : public views::ClientView { public: