[vlc-devel] [PATCH 05/28] qml: change playlist list item status image to font icon

Fatih Uzunoglu fuzun54 at outlook.com
Tue Jul 21 19:28:35 CEST 2020


---
 modules/gui/qt/playlist/qml/PLItem.qml | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt/playlist/qml/PLItem.qml b/modules/gui/qt/playlist/qml/PLItem.qml
index 540bfc5d24..35da202eb4 100644
--- a/modules/gui/qt/playlist/qml/PLItem.qml
+++ b/modules/gui/qt/playlist/qml/PLItem.qml
@@ -143,14 +143,17 @@ Rectangle {
                     visible: !statusIcon.visible
                 }
 
-                Image {
+                Widgets.IconLabel {
                     id: statusIcon
-                    anchors.centerIn: parent
-                    visible: (model.isCurrent && source !== "")
-                    width: VLCStyle.play_cover_small
-                    height: VLCStyle.play_cover_small
-                    source: player.playingState === PlayerController.PLAYING_STATE_PLAYING ? "qrc:///toolbar/play_b.svg" :
-                                                        player.playingState === PlayerController.PLAYING_STATE_PAUSED ? "qrc:///toolbar/pause_b.svg" : ""
+                    anchors.fill: parent
+                    visible: (model.isCurrent && text !== "")
+                    width: height
+                    height: VLCStyle.icon_normal
+                    horizontalAlignment: Text.AlignHCenter
+                    verticalAlignment: Text.AlignVCenter
+                    color: VLCStyle.colors.accent
+                    text: player.playingState === PlayerController.PLAYING_STATE_PLAYING ? VLCIcons.volume_high :
+                                                    player.playingState === PlayerController.PLAYING_STATE_PAUSED ? VLCIcons.pause : ""
                 }
             }
 
-- 
2.25.1



More information about the vlc-devel mailing list