From 165009681bedf4737a160da775d7f38900b985b5 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 3 Apr 2016 13:53:09 +0900 Subject: [PATCH 1/2] Set backgroundColor for the default app --- default_app/default_app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/default_app/default_app.js b/default_app/default_app.js index eda1300f0079..200e8c585af2 100644 --- a/default_app/default_app.js +++ b/default_app/default_app.js @@ -15,6 +15,7 @@ exports.load = function (appUrl) { width: 800, height: 600, autoHideMenuBar: true, + backgroundColor: '#A5ECFA', useContentSize: true }) mainWindow.loadURL(appUrl) From eb82f7cea9c341bb495e794200647e0f5c515481 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 3 Apr 2016 13:55:33 +0900 Subject: [PATCH 2/2] Update docs for backgroundColor --- docs/api/browser-window.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index e42b2d9bd090..0e79659854ae 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -83,8 +83,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`. than screen. Default is `false`. * `backgroundColor` String - Window's background color as Hexadecimal value, like `#66CD00` or `#FFF` or `#80FFFFFF` (alpha is supported). Default is - `#000` (black) for Linux and Windows, `#FFF` for Mac (or clear if - transparent). + `#FFF` (white). * `hasShadow` Boolean - Whether window should have a shadow. This is only implemented on OS X. Default is `true`. * `darkTheme` Boolean - Forces using dark theme for the window, only works on