Merge pull request #98 from feross/window-ui-improvements

Lighter window background; small state changes
This commit is contained in:
Feross Aboukhadijeh
2016-03-08 18:41:53 -08:00
5 changed files with 48 additions and 34 deletions

View File

@@ -22,8 +22,9 @@ function App (state, dispatch) {
!state.video.isPaused
var cls = [
process.platform, /* 'windows', 'linux', or 'darwin' for OSX */
state.isFullScreen ? 'fullscreen' : 'not-fullscreen',
'is-' + process.platform, /* 'is-darwin' (OS X), 'is-win32' (Windows), 'is-linux' */
state.window.isFullScreen ? 'is-fullscreen' : '',
state.window.isFocused ? 'is-focused' : '',
isVideoPlayer ? 'view-player' : '',
hideControls ? 'hide-video-controls' : ''
]

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>`
}
}