]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Make menu bar height 20.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 25 Jul 2014 07:05:18 +0000 (15:05 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 25 Jul 2014 07:05:18 +0000 (15:05 +0800)
On Windows applications used to have lower menu bars.

atom/browser/native_window_views.cc

index 448fd28a2aaf663c59c6a0d810435245cd740107..df013e33c56ac4e40564999cf15def94efe25f8a 100644 (file)
@@ -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: