[vlc-commits] qml: use customized label widgets for playlist item text

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:45:40 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul  2 14:41:07 2020 +0300| [829f922dca8a63f9bc3def9928ca77f060f1add3] | committer: Pierre Lamot

qml: use customized label widgets for playlist item text

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

 modules/gui/qt/playlist/qml/PLItem.qml | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/modules/gui/qt/playlist/qml/PLItem.qml b/modules/gui/qt/playlist/qml/PLItem.qml
index 35da202eb4..5ed3995347 100644
--- a/modules/gui/qt/playlist/qml/PLItem.qml
+++ b/modules/gui/qt/playlist/qml/PLItem.qml
@@ -165,14 +165,10 @@ Rectangle {
                     id: textInfo
 
                     font.weight: model.isCurrent ? Font.Bold : Font.Normal
-                    font.pixelSize: VLCStyle.fontSize_normal
-                    elide: Text.ElideRight
-
                     text: model.title
-                    color: VLCStyle.colors.text
                 }
 
-                Widgets.CaptionLabel {
+                Widgets.ListSubtitleLabel {
                     id: textArtist
 
                     font.weight: model.isCurrent ? Font.DemiBold : Font.Normal
@@ -180,14 +176,11 @@ Rectangle {
                 }
             }
 
-            Text {
+            Widgets.ListLabel {
                 id: textDuration
-
                 Layout.rightMargin: VLCStyle.margin_xsmall
-                font.pixelSize: VLCStyle.fontSize_normal
 
                 text: model.duration
-                color: VLCStyle.colors.text
             }
 
         }



More information about the vlc-commits mailing list