From 9da7b86f6a7cf06eefe5a6730e59f6b173eccc72 Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 17 Apr 2017 12:15:59 +0900 Subject: [PATCH] tweak default window size --- main/app.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main/app.ts b/main/app.ts index 8a84d48..d2d213a 100644 --- a/main/app.ts +++ b/main/app.ts @@ -9,8 +9,6 @@ const IS_DEBUG = process.env.NODE_ENV === 'development'; const IS_DARWIN = process.platform === 'darwin'; const APP_ICON = path.join(__dirname, '..', 'resources', 'icon', 'icon.png'); const PRELOAD_JS = path.join(__dirname, '..', 'renderer', 'preload.js'); -const DEFAULT_WIDTH = 340; -const DEFAULT_HEIGHT = 400; export class App { private account: Account; @@ -148,8 +146,8 @@ function startMenuBar(config: Config): Promise { log.debug('Setup a menubar window'); return new Promise(resolve => { const state = windowState({ - defaultWidth: DEFAULT_WIDTH, - defaultHeight: DEFAULT_HEIGHT, + defaultWidth: 350, + defaultHeight: 420, }); const icon = trayIcon(config.icon_color); const mb = menubar({