[vlc-commits] qml: add shadows to TableColumns.titleDelegate
Prince Gupta
git at videolan.org
Thu Dec 17 14:57:22 UTC 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Dec 7 19:54:24 2020 +0530| [ba3b8ef1f0577697139d6dd63cc2fb3880575c1a] | committer: Pierre Lamot
qml: add shadows to TableColumns.titleDelegate
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba3b8ef1f0577697139d6dd63cc2fb3880575c1a
---
modules/gui/qt/widgets/qml/TableColumns.qml | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/TableColumns.qml b/modules/gui/qt/widgets/qml/TableColumns.qml
index d9b11ec70e..b2e943ab83 100644
--- a/modules/gui/qt/widgets/qml/TableColumns.qml
+++ b/modules/gui/qt/widgets/qml/TableColumns.qml
@@ -44,17 +44,27 @@ Item {
anchors.fill: parent
spacing: VLCStyle.margin_normal
- Widgets.MediaCover {
- source: ( !rowModel || root.showTitleText ? rowModel.cover : rowModel[model.criteria]) || VLCStyle.noArtCover
- mipmap: true // this widget can down scale the source a lot, so for better visuals we use mipmap
- playCoverVisible: currentlyFocused || containsMouse
- playIconSize: VLCStyle.play_cover_small
- onPlayIconClicked: medialib.addAndPlay( rowModel.id )
- radius: root.titleCover_radius
- labels: root.titlecoverLabels(rowModel)
-
+ Item {
Layout.preferredHeight: root.titleCover_height
Layout.preferredWidth: root.titleCover_width
+
+ ListCoverShadow {
+ source: cover
+ anchors.fill: cover
+ }
+
+ Widgets.MediaCover {
+ id: cover
+
+ anchors.fill: parent
+ source: ( !rowModel || root.showTitleText ? rowModel.cover : rowModel[model.criteria]) || VLCStyle.noArtCover
+ mipmap: true // this widget can down scale the source a lot, so for better visuals we use mipmap
+ playCoverVisible: currentlyFocused || containsMouse
+ playIconSize: VLCStyle.play_cover_small
+ onPlayIconClicked: medialib.addAndPlay( rowModel.id )
+ radius: root.titleCover_radius
+ labels: root.titlecoverLabels(rowModel)
+ }
}
Widgets.ListLabel {
More information about the vlc-commits
mailing list