Merge pull request #4997 from atom/default-app-background-color
Set backgroundColor for the default app
This commit is contained in:
commit
442ccbe204
2 changed files with 2 additions and 2 deletions
|
@ -15,6 +15,7 @@ exports.load = function (appUrl) {
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
|
backgroundColor: '#A5ECFA',
|
||||||
useContentSize: true
|
useContentSize: true
|
||||||
})
|
})
|
||||||
mainWindow.loadURL(appUrl)
|
mainWindow.loadURL(appUrl)
|
||||||
|
|
|
@ -83,8 +83,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
||||||
than screen. Default is `false`.
|
than screen. Default is `false`.
|
||||||
* `backgroundColor` String - Window's background color as Hexadecimal value,
|
* `backgroundColor` String - Window's background color as Hexadecimal value,
|
||||||
like `#66CD00` or `#FFF` or `#80FFFFFF` (alpha is supported). Default is
|
like `#66CD00` or `#FFF` or `#80FFFFFF` (alpha is supported). Default is
|
||||||
`#000` (black) for Linux and Windows, `#FFF` for Mac (or clear if
|
`#FFF` (white).
|
||||||
transparent).
|
|
||||||
* `hasShadow` Boolean - Whether window should have a shadow. This is only
|
* `hasShadow` Boolean - Whether window should have a shadow. This is only
|
||||||
implemented on OS X. Default is `true`.
|
implemented on OS X. Default is `true`.
|
||||||
* `darkTheme` Boolean - Forces using dark theme for the window, only works on
|
* `darkTheme` Boolean - Forces using dark theme for the window, only works on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue