Merge pull request #98 from feross/window-ui-improvements
Lighter window background; small state changes
This commit is contained in:
@@ -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' : ''
|
||||
]
|
||||
|
||||
@@ -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>`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user