[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: use `DefaultShadow` in `PlayCover`

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Jun 15 17:03:25 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
990c6d60 by Fatih Uzunoglu at 2025-06-15T16:39:33+00:00
qml: use `DefaultShadow` in `PlayCover`

- - - - -
2bffc170 by Fatih Uzunoglu at 2025-06-15T16:39:33+00:00
qt: remove `play_shadow.png`

Since e0576790 made it obsolete.

- - - - -


5 changed files:

- modules/gui/qt/Makefile.am
- modules/gui/qt/assets.qrc
- − modules/gui/qt/pixmaps/misc/play_shadow.png
- modules/gui/qt/style/VLCStyle.qml
- modules/gui/qt/widgets/qml/PlayCover.qml


Changes:

=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -901,7 +901,6 @@ libqt_plugin_la_RES = \
 	pixmaps/menu/volume-muted.svg \
 	pixmaps/misc/cone.svg \
 	pixmaps/misc/new_indicator.svg \
-	pixmaps/misc/play_shadow.png \
 	pixmaps/misc/theme_dark.svg \
 	pixmaps/misc/theme_daynight.svg \
 	pixmaps/misc/theme_light.svg \


=====================================
modules/gui/qt/assets.qrc
=====================================
@@ -58,7 +58,6 @@
     </qresource>
     <qresource prefix="/misc">
         <file alias="cone.svg">pixmaps/misc/cone.svg</file>
-        <file alias="play_shadow.png">pixmaps/misc/play_shadow.png</file>
         <file alias="new_indicator.svg">pixmaps/misc/new_indicator.svg</file>
         <file alias="theme_dark.svg">pixmaps/misc/theme_dark.svg</file>
         <file alias="theme_daynight.svg">pixmaps/misc/theme_daynight.svg</file>


=====================================
modules/gui/qt/pixmaps/misc/play_shadow.png deleted
=====================================
Binary files a/modules/gui/qt/pixmaps/misc/play_shadow.png and /dev/null differ


=====================================
modules/gui/qt/style/VLCStyle.qml
=====================================
@@ -304,9 +304,6 @@ QtObject {
     readonly property url noArtArtistCover: "qrc:///placeholder/noart_artistCover.svg";
     readonly property url noArtVideoCover: "qrc:///placeholder/noart_videoCover.svg";
 
-    // Play shadow
-    readonly property url playShadow: "qrc:///misc/play_shadow.png";
-
     // New indicator
     readonly property url newIndicator: "qrc:///misc/new_indicator.svg";
 


=====================================
modules/gui/qt/widgets/qml/PlayCover.qml
=====================================
@@ -85,24 +85,16 @@ Item {
         grabPermissions: PointerHandler.CanTakeOverFromHandlersOfDifferentType | PointerHandler.ApprovesTakeOverByAnything
     }
 
-    ScaledImage {
-        anchors.centerIn: parent
-
-        // NOTE: We round this to avoid blurry textures with the QML renderer.
-        width: Math.round(parent.width * 3.2)
-        height: width
-
-        z: -1
-
-        source: VLCStyle.playShadow
-    }
-
     Rectangle {
         anchors.fill: parent
 
         radius: width
 
         color: "white"
+
+        Widgets.DefaultShadow {
+
+        }
     }
 
     Widgets.IconLabel {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/771f0b3bed77d89c31cc285ad565e06f21481336...2bffc170e6e12990494fcfceac4221cba638d698

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/771f0b3bed77d89c31cc285ad565e06f21481336...2bffc170e6e12990494fcfceac4221cba638d698
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list