1
0
Fork 0

[UI] Added click to run and made subtitles behave better.

This commit is contained in:
Kitteh 2018-10-29 00:59:26 +00:00
parent 30e56c2d08
commit 772247a17d

View file

@ -247,6 +247,7 @@ ApplicationWindow {
id: appearance id: appearance
category: "Appearance" category: "Appearance"
property bool titleOnlyOnFullscreen: true property bool titleOnlyOnFullscreen: true
property bool clickToPause: true
} }
Settings { Settings {
@ -326,7 +327,7 @@ ApplicationWindow {
hoverEnabled: true hoverEnabled: true
cursorShape: controlsBar.visible ? Qt.ArrowCursor : Qt.BlankCursor cursorShape: controlsBar.visible ? Qt.ArrowCursor : Qt.BlankCursor
onClicked: { onClicked: {
player.command(["cycle", "pause"]) if (clickToPause) { player.command(["cycle", "pause"]) }
} }
Timer { Timer {
id: mouseAreaPlayerTimer id: mouseAreaPlayerTimer
@ -923,7 +924,7 @@ ApplicationWindow {
text: "" text: ""
color: "white" color: "white"
font.family: notoFont.name font.family: notoFont.name
font.pixelSize: 24 font.pixelSize: Screen.height / 24
renderType: Text.NativeRendering renderType: Text.NativeRendering
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
anchors.bottom: parent.top anchors.bottom: parent.top