]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: background-color is Linux-only for now
authorCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 06:16:17 +0000 (14:16 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 06:16:17 +0000 (14:16 +0800)
docs/api/browser-window.md

index c59fbbdbcb473e34dd0a0bcab9d9ef947503aa5a..165ce70a977ee2912f6583d6ffec557a85a0a147 100644 (file)
@@ -61,13 +61,8 @@ 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' })
-```
+* `background-color` String - Window's background color as Hexadecimal value,
+  like `#66CD00` or `#FFF`. This is only implemented on Linux.
 * `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).