1
0
Fork 0

[UI] Fixed subtitles visibility.

This commit is contained in:
NamedKitten 2018-11-28 20:35:14 +00:00
parent 98f56251f8
commit bdea9ade90
2 changed files with 12 additions and 11 deletions

View file

@ -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

View file

@ -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
}
}
}