[vlc-commits] qml: add text above the seekbar in the fullplayer
Pierre Lamot
git at videolan.org
Thu Aug 29 10:44:54 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Aug 1 16:51:14 2019 +0200| [eefd93224d2d3018bbea588e9e81553c3463e773] | committer: Jean-Baptiste Kempf
qml: add text above the seekbar in the fullplayer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eefd93224d2d3018bbea588e9e81553c3463e773
---
modules/gui/qt/qml/player/ControlBar.qml | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/qml/player/ControlBar.qml b/modules/gui/qt/qml/player/ControlBar.qml
index e65dfac186..9ae066e341 100644
--- a/modules/gui/qt/qml/player/ControlBar.qml
+++ b/modules/gui/qt/qml/player/ControlBar.qml
@@ -43,8 +43,38 @@ Utils.NavigableFocusScope {
ColumnLayout {
anchors.fill: parent
- spacing: 0
+ spacing: VLCStyle.margin_xsmall
+
+ RowLayout {
+ Text {
+ text: player.time.toString()
+ color: VLCStyle.colors.playerFg
+ font.pixelSize: VLCStyle.fontSize_normal
+ font.bold: true
+ Layout.alignment: Qt.AlignLeft
+ }
+
+ Item {
+ Layout.fillWidth: true
+ }
+
+
+ Text {
+ text: (rootWindow.showRemainingTime && player.remainingTime.valid())
+ ? "-" + player.remainingTime.toString()
+ : player.length.toString()
+ color: VLCStyle.colors.playerFg
+ font.pixelSize: VLCStyle.fontSize_normal
+ font.bold: true
+ Layout.alignment: Qt.AlignRight
+ MouseArea {
+ anchors.fill: parent
+ onClicked: rootWindow.showRemainingTime = !rootWindow.showRemainingTime
+ }
+ }
+
+ }
SliderBar {
id: trackPositionSlider
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
More information about the vlc-commits
mailing list