1
0
Fork 0

[UI] Added more ways to toggle fullscreen.

This commit is contained in:
NamedKitten 2018-11-17 20:28:07 +00:00
parent d66cedb2b8
commit 074ced6844

View file

@ -139,7 +139,7 @@ ApplicationWindow {
controlsBar.background.visible = false
titleBar.visible = false
titleBackground.visible = false
menuBar.visible = false
menuBar.visible = false;
mouseAreaPlayer.cursorShape = Qt.BlankCursor
}
}
@ -189,14 +189,33 @@ ApplicationWindow {
anchors.top: titleBar.bottom
anchors.topMargin: 0
hoverEnabled: true
onDoubleClicked: {
playTimer.stop()
toggleFullscreen()
}
Action {
onTriggered: {
if (mainWindow.visibility == Window.FullScreen) {toggleFullscreen()}
}
shortcut: "Esc"
}
Timer {
id: playTimer
interval: 200
running: false
repeat: false
onTriggered: {
player.playerCommand(Enums.Commands.TogglePlayPause)
}
}
onClicked: {
if (appearance.clickToPause) {
player.playerCommand(Enums.Commands.TogglePlayPause)
playTimer.start()
}
}
Timer {
id: mouseAreaPlayerTimer
interval: 1000
interval: 2000
running: true
repeat: false
onTriggered: {