Merge pull request #3168 from deepak1556/window_background_color_patch
browser: option to set window background color
This commit is contained in:
commit
15e0248d82
4 changed files with 41 additions and 1 deletions
|
@ -61,6 +61,13 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
key is pressed.
|
||||
* `enable-larger-than-screen` Boolean - Enable the window to be resized larger
|
||||
than screen.
|
||||
* `background-color` String - Window's background color as Hexadecimal value.
|
||||
```javascript
|
||||
var win = new BrowserWindow({ width: 800, height: 600, 'background-color': '#66CD00' })
|
||||
|
||||
// #abc will be expanded to #aabbcc
|
||||
var win = new BrowserWindow({ width: 800, height: 600, 'background-color': '#fff' })
|
||||
```
|
||||
* `dark-theme` Boolean - Forces using dark theme for the window, only works on
|
||||
some GTK+3 desktop environments.
|
||||
* `transparent` Boolean - Makes the window [transparent](frameless-window.md).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue