[UI] Fixed subtitles visibility.
This commit is contained in:
parent
98f56251f8
commit
bdea9ade90
src/qml
|
@ -107,6 +107,7 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
color: appearance.mainBackground
|
color: appearance.mainBackground
|
||||||
|
visible: controlsOverlay.controlsShowing
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -118,7 +119,7 @@ Item {
|
||||||
anchors.leftMargin: parent.width / 128
|
anchors.leftMargin: parent.width / 128
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 2
|
anchors.bottomMargin: 2
|
||||||
visible: true
|
visible: controlsOverlay.controlsShowing
|
||||||
VideoProgress {
|
VideoProgress {
|
||||||
id: progressBar
|
id: progressBar
|
||||||
anchors.bottom: parent.top
|
anchors.bottom: parent.top
|
||||||
|
|
|
@ -17,7 +17,7 @@ Window {
|
||||||
height: 480
|
height: 480
|
||||||
|
|
||||||
property bool onTop: false
|
property bool onTop: false
|
||||||
|
|
||||||
Translator {
|
Translator {
|
||||||
id: translate
|
id: translate
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,8 @@ Window {
|
||||||
property string chapterMarkerColor: "#fc0"
|
property string chapterMarkerColor: "#fc0"
|
||||||
property string volumeSliderBackground: "white"
|
property string volumeSliderBackground: "white"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
id: i18n
|
id: i18n
|
||||||
category: "I18N"
|
category: "I18N"
|
||||||
|
@ -121,11 +122,11 @@ Window {
|
||||||
mainWindow.visibility = lastScreenVisibility
|
mainWindow.visibility = lastScreenVisibility
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils {
|
Utils {
|
||||||
id: utils
|
id: utils
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerBackend {
|
PlayerBackend {
|
||||||
id: player
|
id: player
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -199,7 +200,7 @@ Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: controlsOverlay
|
id: controlsOverlay
|
||||||
anchors.centerIn: player
|
anchors.centerIn: player
|
||||||
|
@ -221,7 +222,7 @@ Window {
|
||||||
mouseAreaPlayer.cursorShape = Qt.ArrowCursor
|
mouseAreaPlayer.cursorShape = Qt.ArrowCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: mouseAreaBar
|
id: mouseAreaBar
|
||||||
|
|
||||||
|
@ -326,9 +327,9 @@ Window {
|
||||||
&& ((!appearance.titleOnlyOnFullscreen)
|
&& ((!appearance.titleOnlyOnFullscreen)
|
||||||
|| (mainWindow.visibility == Window.FullScreen))
|
|| (mainWindow.visibility == Window.FullScreen))
|
||||||
Connections {
|
Connections {
|
||||||
target: player
|
target: player
|
||||||
enabled: true
|
enabled: true
|
||||||
onTitleChanged: function (title) {
|
onTitleChanged: function (title) {
|
||||||
titleLabel.text = title
|
titleLabel.text = title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -337,7 +338,6 @@ Window {
|
||||||
|
|
||||||
ControlsBar {
|
ControlsBar {
|
||||||
id: controlsBar
|
id: controlsBar
|
||||||
visible: controlsOverlay.controlsShowing
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue