[vlc-devel] [PATCH 15/21] qml: use Widget labels and change spacing for artist and album text in Max player

Prince Gupta guptaprince8832 at gmail.com
Fri Oct 23 15:21:09 CEST 2020


---
 modules/gui/qt/player/qml/Player.qml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index 2aabb25864..943a77483a 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -269,7 +269,7 @@ Widgets.NavigableFocusScope {
 
             ColumnLayout {
                 anchors.fill: parent
-                spacing: VLCStyle.margin_small
+                spacing: 0
 
 
                 visible: !rootPlayer.hasEmbededVideo
@@ -321,31 +321,30 @@ Widgets.NavigableFocusScope {
                     }
                 }
 
-                Label {
+                Widgets.SubtitleLabel {
                     id: albumLabel
 
                     Layout.fillWidth: true
                     Layout.preferredHeight: implicitHeight
-                    Layout.alignment: Qt.AlignHCenter
+                    Layout.topMargin: VLCStyle.margin_normal
 
                     text: mainPlaylistController.currentItem.album
-                    font.pixelSize: VLCStyle.fontSize_xxlarge
-                    font.bold: true
+                    font.weight: Font.Light
                     horizontalAlignment: Text.AlignHCenter
                     color: VLCStyle.colors.playerFg
                     Accessible.description: i18n.qtr("album")
                 }
 
-                Label {
+                Widgets.MenuLabel {
                     id: artistLabel
 
                     Layout.fillWidth: true
                     Layout.preferredHeight: implicitHeight
-                    Layout.alignment: Qt.AlignHCenter
+                    Layout.topMargin: VLCStyle.margin_xxsmall
 
                     text: mainPlaylistController.currentItem.artist
+                    font.weight: Font.Light
                     horizontalAlignment: Text.AlignHCenter
-                    font.pixelSize: VLCStyle.fontSize_xlarge
                     color: VLCStyle.colors.playerFg
                     Accessible.description: i18n.qtr("artist")
                 }
-- 
2.25.1



More information about the vlc-devel mailing list