[vlc-commits] qml: use GridItem.pictureOverlay property for custom covers in Genre view's grid items
Prince Gupta
git at videolan.org
Mon Sep 28 14:01:37 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Sep 14 20:52:44 2020 +0530| [c159e7f6bd16738bf13013400da78da644142244] | committer: Pierre Lamot
qml: use GridItem.pictureOverlay property for custom covers in Genre view's grid items
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c159e7f6bd16738bf13013400da78da644142244
---
modules/gui/qt/medialibrary/qml/MusicGenres.qml | 41 +++++++++++++------------
1 file changed, 21 insertions(+), 20 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index b74d7aaf94..6a0ad55dc9 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -158,26 +158,27 @@ Widgets.NavigableFocusScope {
contextMenu.popup(selectionModel.selectedIndexes, globalMousePos)
}
- Column {
- anchors.centerIn: parent
- opacity: item._highlighted ? .3 : 1
-
- Label {
- width: item.width
- elide: Text.ElideRight
- font.pixelSize: VLCStyle.fontSize_large
- font.weight: Font.DemiBold
- text: model.name
- color: "white"
- horizontalAlignment: Text.AlignHCenter
- }
-
- Widgets.CaptionLabel {
- width: item.width
- text: model.nb_tracks > 1 ? i18n.qtr("%1 Tracks").arg(model.nb_tracks) : i18n.qtr("%1 Track").arg(model.nb_tracks)
- opacity: .7
- color: "white"
- horizontalAlignment: Text.AlignHCenter
+ pictureOverlay: Item {
+ Column {
+ anchors.centerIn: parent
+
+ Label {
+ width: item.width
+ elide: Text.ElideRight
+ font.pixelSize: VLCStyle.fontSize_large
+ font.weight: Font.DemiBold
+ text: model.name
+ color: "white"
+ horizontalAlignment: Text.AlignHCenter
+ }
+
+ Widgets.CaptionLabel {
+ width: item.width
+ text: model.nb_tracks > 1 ? i18n.qtr("%1 Tracks").arg(model.nb_tracks) : i18n.qtr("%1 Track").arg(model.nb_tracks)
+ opacity: .7
+ color: "white"
+ horizontalAlignment: Text.AlignHCenter
+ }
}
}
}
More information about the vlc-commits
mailing list