Lighter window background

Native windows get lighter when they’re backgrounded so they stand out
less (at least on OS X). Let’s do this too.

Even the Spotify app, which has dozens of developers gets this wrong.
We’re so awesome :)

Also:

- Renamed a bunch of state variables (next time will make separate
commit, sry)
- All window-related variables (e.g. isFullScreen, isFocused, etc.)
live in `state.window` now
- Remove negative class name, use CSS :not() instead
This commit is contained in:
Feross Aboukhadijeh
2016-03-08 17:18:31 -08:00
parent 2c70e2e3de
commit 67217bdc7e
5 changed files with 46 additions and 32 deletions

View File

@@ -30,7 +30,7 @@ function Header (state, dispatch) {
function getTitle () {
if (process.platform === 'darwin') {
return hx`<div class='title'>${state.title}</div>`
return hx`<div class='title'>${state.window.title}</div>`
}
}