[vlc-devel] [PATCH 1/5] qml: add no art cover images

Prince Gupta guptaprince8832 at gmail.com
Fri Jan 22 16:03:14 UTC 2021


---
 modules/gui/qt/Makefile.am                   |  3 +++
 modules/gui/qt/pixmaps/noart_albumCover.svg  |  9 +++++++++
 modules/gui/qt/pixmaps/noart_artistCover.svg | 12 ++++++++++++
 modules/gui/qt/pixmaps/noart_videoCover.svg  |  9 +++++++++
 modules/gui/qt/style/VLCStyle.qml            |  3 +++
 modules/gui/qt/vlc.qrc                       |  3 +++
 6 files changed, 39 insertions(+)
 create mode 100644 modules/gui/qt/pixmaps/noart_albumCover.svg
 create mode 100644 modules/gui/qt/pixmaps/noart_artistCover.svg
 create mode 100644 modules/gui/qt/pixmaps/noart_videoCover.svg

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 75cf5f28ea..8a92b51680 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -477,8 +477,11 @@ libqt_plugin_la_RES = \
 	gui/qt/pixmaps/noart-64.png \
 	gui/qt/pixmaps/noart.png \
 	gui/qt/pixmaps/noart_album.svg \
+	gui/qt/pixmaps/noart_albumCover.svg \
 	gui/qt/pixmaps/noart_artist.svg \
 	gui/qt/pixmaps/noart_artist_small.svg \
+	gui/qt/pixmaps/noart_artistCover.svg \
+	gui/qt/pixmaps/noart_videoCover.svg \
 	gui/qt/pixmaps/pause.svg \
 	gui/qt/pixmaps/play.svg \
 	gui/qt/pixmaps/play_button.svg \
diff --git a/modules/gui/qt/pixmaps/noart_albumCover.svg b/modules/gui/qt/pixmaps/noart_albumCover.svg
new file mode 100644
index 0000000000..18387159ab
--- /dev/null
+++ b/modules/gui/qt/pixmaps/noart_albumCover.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="114" height="114" viewBox="0 0 114 114">
+  <g fill="none" fill-rule="evenodd">
+    <rect fill="#ECECEC" width="114" height="114" x="0" y="0" rx="2"/>
+    <g fill-rule="nonzero" transform="translate(41 41)">
+      <path stroke="#979797" d="M26.222.5c1.458 0 2.777.59 3.732 1.546C30.91 3 31.5 4.32 31.5 5.778h0v20.444c0 1.458-.59 2.777-1.546 3.732C29 30.91 27.68 31.5 26.222 31.5h0H5.778c-1.458 0-2.777-.59-3.732-1.546C1.09 29 .5 27.68.5 26.222h0V5.778C.5 4.32 1.09 3 2.046 2.046 3 1.09 4.32.5 5.778.5h0z" />
+      <path fill="#FF610A" d="M15.5 8.75c0-.192.072-.367.19-.5.018-.02.037-.038.057-.056.133-.12.31-.194.503-.194.101 0 .197.02.285.056l4.882 1.878c1.255.482 2.083 1.688 2.083 3.033v1.783c0 .247-.122.478-.325.618-.204.14-.464.17-.694.082L17 13.342v7.408c0 .971-.514 1.8-1.245 2.362-.73.562-1.706.888-2.755.888s-2.025-.326-2.755-.888C9.514 22.55 9 21.722 9 20.75c0-.971.514-1.8 1.245-2.362.73-.562 1.706-.888 2.755-.888.93 0 1.805.257 2.5.707V8.75z"/>
+    </g>
+  </g>
+</svg>
diff --git a/modules/gui/qt/pixmaps/noart_artistCover.svg b/modules/gui/qt/pixmaps/noart_artistCover.svg
new file mode 100644
index 0000000000..227d21a068
--- /dev/null
+++ b/modules/gui/qt/pixmaps/noart_artistCover.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="114" height="114" viewBox="0 0 114 114">
+    <g fill="none" fill-rule="evenodd">
+        <rect fill="#ECECEC" width="114" height="114" x="0" y="0" rx="2"/>
+        <g transform="translate(41 41)">
+          <path fill-rule="nonzero" stroke="#979797" d="M26.222.5c1.458 0 2.777.59 3.732 1.546C30.91 3 31.5 4.32 31.5 5.778h0v20.444c0 1.458-.59 2.777-1.546 3.732C29 30.91 27.68 31.5 26.222 31.5h0H5.778c-1.458 0-2.777-.59-3.732-1.546C1.09 29 .5 27.68.5 26.222h0V5.778C.5 4.32 1.09 3 2.046 2.046 3 1.09 4.32.5 5.778.5h0z"/>
+          <g transform="translate(5 7)">
+            <path fill="#FF610A" fill-rule="nonzero" d="M18.034 13.469c0-.12.045-.23.119-.312.01-.013.022-.025.035-.036.082-.075.192-.121.312-.121.063 0 .123.012.177.035l3.03 1.174c.779.301 1.293 1.055 1.293 1.895v1.115c0 .154-.076.299-.202.386-.126.088-.287.107-.43.051l-3.402-1.317v4.63c0 .607-.32 1.125-.773 1.476s-1.06.555-1.71.555c-.651 0-1.257-.204-1.71-.555-.454-.351-.773-.87-.773-1.476 0-.607.319-1.125.773-1.477.453-.35 1.059-.555 1.71-.555.577 0 1.12.161 1.551.443v-5.911z"/>
+            <path fill="#979797" d="M4.975 9.832c.316.727.746 1.361 1.289 1.904.543.543 1.177.973 1.904 1.289.727.317 1.504.475 2.332.475.828 0 1.605-.158 2.332-.475.727-.316 1.361-.746 1.904-1.289.543-.543.973-1.177 1.289-1.904.317-.727.475-1.504.475-2.332 0-.828-.158-1.605-.475-2.332-.316-.727-.746-1.361-1.289-1.904-.543-.543-1.177-.973-1.904-1.289-.727-.317-1.504-.475-2.332-.475-.828 0-1.605.158-2.332.475-.727.316-1.361.746-1.904 1.289-.543.543-.973 1.177-1.289 1.904C4.658 5.895 4.5 6.672 4.5 7.5c0 .828.158 1.605.475 2.332zm11.787 5.484l-2.4.487c-.09-.033-.187-.073-.294-.117C12.971 15.229 11.781 15 10.5 15c-.836 0-1.641.105-2.414.316-.773.211-1.494.51-2.162.897-.668.387-1.274.851-1.817 1.394-.543.543-1.007 1.149-1.394 1.817-.387.668-.686 1.389-.897 2.162-.211.773-.316 1.578-.316 2.414H0c0-1.125.164-2.201.492-3.229.328-1.027.793-1.97 1.395-2.83.601-.859 1.33-1.617 2.185-2.273.856-.656 1.811-1.176 2.866-1.559-.61-.328-1.157-.726-1.641-1.195-.485-.469-.897-.99-1.236-1.564-.34-.575-.602-1.188-.786-1.84C3.092 8.857 3 8.187 3 7.5c0-1.039.195-2.014.586-2.924.391-.91.926-1.705 1.605-2.385.68-.679 1.475-1.214 2.385-1.605C8.486.195 9.461 0 10.5 0s2.014.195 2.924.586c.91.391 1.705.926 2.385 1.605.679.68 1.214 1.475 1.605 2.385.391.91.586 1.885.586 2.924 0 .687-.092 1.355-.275 2.004-.184.648-.446 1.258-.786 1.828-.339.57-.75 1.092-1.23 1.564-.48.473-1.021.874-1.623 1.202.708.245 1.6.65 2.676 1.218z"/>
+          </g>
+        </g>
+    </g>
+</svg>
diff --git a/modules/gui/qt/pixmaps/noart_videoCover.svg b/modules/gui/qt/pixmaps/noart_videoCover.svg
new file mode 100644
index 0000000000..984c012daa
--- /dev/null
+++ b/modules/gui/qt/pixmaps/noart_videoCover.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="182" height="114" viewBox="0 0 182 114">
+  <g fill="none" fill-rule="evenodd">
+    <rect fill="#ECECEC" width="182" height="114" x="0" y="0" rx="2"/>
+    <g transform="translate(75 46)">
+      <path fill="#FF610A" fill-rule="nonzero" d="M16 7c1.105 0 2 .895 2 2v5c0 1.105-.895 2-2 2h-4c-1.105 0-2-.895-2-2V9c0-1.105.895-2 2-2zm4.734 1.196c.478-.452 1.266-.113 1.266.545v5.518c0 .658-.788.997-1.266.545L19 13.162V9.838z"/>
+      <rect width="31" height="21" x=".5" y=".5" stroke="#979797" rx="4"/>
+    </g>
+  </g>
+</svg>
diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 6c401cfcba..919de6ccef 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -226,6 +226,9 @@ Item {
     property url noArtAlbum: "qrc:///noart_album.svg";
     property url noArtArtist: "qrc:///noart_artist.svg";
     property url noArtArtistSmall: "qrc:///noart_artist_small.svg";
+    property url noArtAlbumCover: "qrc:///noart_albumCover.svg";
+    property url noArtArtistCover: "qrc:///noart_artistCover.svg";
+    property url noArtVideoCover: "qrc:///noart_videoCover.svg";
 
     //device pixel
     function dp(px, scale) {
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index 3c74a483d3..3c3a581f04 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -110,8 +110,11 @@
         <file alias="menu.svg">pixmaps/menu.svg</file>
         <file alias="VLCIcons.ttf">pixmaps/VLCIcons.ttf</file>
         <file alias="noart_album.svg">pixmaps/noart_album.svg</file>
+        <file alias="noart_albumCover.svg">pixmaps/noart_albumCover.svg</file>
         <file alias="noart_artist.svg">pixmaps/noart_artist.svg</file>
         <file alias="noart_artist_small.svg">pixmaps/noart_artist_small.svg</file>
+        <file alias="noart_artistCover.svg">pixmaps/noart_artistCover.svg</file>
+        <file alias="noart_videoCover.svg">pixmaps/noart_videoCover.svg</file>
         <file alias="play_button.svg">pixmaps/play_button.svg</file>
         <file alias="back.svg">pixmaps/back.svg</file>
     </qresource>
-- 
2.25.1



More information about the vlc-devel mailing list