[vlc-commits] qml: add progress indicator text to miniplayer

Fatih Uzunoglu git at videolan.org
Thu Aug 27 12:44:29 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jun 19 21:26:07 2020 +0300| [f46765ecdd184d9d54e1327adadc06ac4257de0a] | committer: Pierre Lamot

qml: add progress indicator text to miniplayer

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f46765ecdd184d9d54e1327adadc06ac4257de0a
---

 modules/gui/qt/player/qml/MiniPlayer.qml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index 5bee416abc..4ee41d91de 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -107,18 +107,19 @@ Widgets.NavigableFocusScope {
                         anchors.verticalCenter: parent.verticalCenter
                         leftPadding: VLCStyle.margin_normal
 
-                        Text {
+                        Widgets.MenuLabel {
                             id: titleLabel
                             text: mainPlaylistController.currentItem.title
-                            font.pixelSize: VLCStyle.fontSize_large
-                            color: VLCStyle.colors.text
                         }
 
-                        Text {
+                        Widgets.MenuCaption {
                             id: artistLabel
                             text: mainPlaylistController.currentItem.artist
-                            font.pixelSize: VLCStyle.fontSize_normal
-                            color: VLCStyle.colors.textInactive
+                        }
+
+                        Widgets.MenuCaption {
+                            id: progressIndicator
+                            text: player.time.toString() + " / " + player.length.toString()
                         }
                     }
                 }



More information about the vlc-commits mailing list