diff --git a/src/qml/ControlsBar.qml b/src/qml/ControlsBar.qml index 435287d..5d27f65 100644 --- a/src/qml/ControlsBar.qml +++ b/src/qml/ControlsBar.qml @@ -107,6 +107,7 @@ Item { Layout.fillWidth: true Layout.fillHeight: true color: appearance.mainBackground + visible: controlsOverlay.controlsShowing } Item { @@ -118,7 +119,7 @@ Item { anchors.leftMargin: parent.width / 128 anchors.bottom: parent.bottom anchors.bottomMargin: 2 - visible: true + visible: controlsOverlay.controlsShowing VideoProgress { id: progressBar anchors.bottom: parent.top diff --git a/src/qml/main.qml b/src/qml/main.qml index aaae98f..9775cf2 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -17,7 +17,7 @@ Window { height: 480 property bool onTop: false - + Translator { id: translate } @@ -44,7 +44,8 @@ Window { property string chapterMarkerColor: "#fc0" property string volumeSliderBackground: "white" } - + + Settings { id: i18n category: "I18N" @@ -121,11 +122,11 @@ Window { mainWindow.visibility = lastScreenVisibility } } - + Utils { id: utils } - + PlayerBackend { id: player anchors.fill: parent @@ -199,7 +200,7 @@ Window { } } } - + Item { id: controlsOverlay anchors.centerIn: player @@ -221,7 +222,7 @@ Window { mouseAreaPlayer.cursorShape = Qt.ArrowCursor } } - + MouseArea { id: mouseAreaBar @@ -326,9 +327,9 @@ Window { && ((!appearance.titleOnlyOnFullscreen) || (mainWindow.visibility == Window.FullScreen)) Connections { - target: player - enabled: true - onTitleChanged: function (title) { + target: player + enabled: true + onTitleChanged: function (title) { titleLabel.text = title } } @@ -337,7 +338,6 @@ Window { ControlsBar { id: controlsBar - visible: controlsOverlay.controlsShowing } } }