[vlc-commits] qml: change playlist list item status image to font icon
Fatih Uzunoglu
git at videolan.org
Fri Jul 24 11:45:37 CEST 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Jul 2 12:57:36 2020 +0300| [ebfd7815cfd19a57217428ff8087754f51b35fbd] | committer: Pierre Lamot
qml: change playlist list item status image to font icon
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebfd7815cfd19a57217428ff8087754f51b35fbd
---
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 : ""
}
}
More information about the vlc-commits
mailing list