[vlc-devel] [RFC 58/82] qt: add graphic for menu and track selection

Pierre Lamot pierre at videolabs.io
Fri Feb 1 14:02:02 CET 2019


---
 modules/gui/qt/Makefile.am                  |   2 +
 modules/gui/qt/pixmaps/menu.svg             | 109 ++++++++++++++++++++
 modules/gui/qt/pixmaps/toolbar/audiosub.svg |  71 +++++++++++++
 modules/gui/qt/vlc.qrc                      |   3 +
 4 files changed, 185 insertions(+)
 create mode 100644 modules/gui/qt/pixmaps/menu.svg
 create mode 100644 modules/gui/qt/pixmaps/toolbar/audiosub.svg

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 4096f192c5..ef74b63329 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -403,6 +403,7 @@ libqt_plugin_la_RES = \
 	gui/qt/pixmaps/addons/addon_red.svg \
 	gui/qt/pixmaps/addons/addon_yellow.svg \
 	gui/qt/pixmaps/addons/score.svg \
+	gui/qt/pixmaps/menu.svg \
 	gui/qt/pixmaps/menus/exit_16px.svg \
 	gui/qt/pixmaps/menus/help_16px.svg \
 	gui/qt/pixmaps/menus/info_16px.svg \
@@ -465,6 +466,7 @@ libqt_plugin_la_RES = \
 	gui/qt/pixmaps/slower2.svg \
 	gui/qt/pixmaps/space.svg \
 	gui/qt/pixmaps/stop.svg \
+	gui/qt/pixmaps/toolbar/audiosub.svg \
 	gui/qt/pixmaps/toolbar/arrows.svg \
 	gui/qt/pixmaps/toolbar/aspect-ratio.svg \
 	gui/qt/pixmaps/toolbar/atob.svg \
diff --git a/modules/gui/qt/pixmaps/menu.svg b/modules/gui/qt/pixmaps/menu.svg
new file mode 100644
index 0000000000..1cfcb88c84
--- /dev/null
+++ b/modules/gui/qt/pixmaps/menu.svg
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48"
+   height="48"
+   viewBox="0 0 48 48"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.92.3 (2405546, 2018-03-11)"
+   sodipodi:docname="menu.svg">
+  <defs
+     id="defs8" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1920"
+     inkscape:window-height="1043"
+     id="namedview6"
+     showgrid="false"
+     inkscape:zoom="16"
+     inkscape:cx="32.05762"
+     inkscape:cy="31.136222"
+     inkscape:window-x="2560"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1"
+     showguides="true"
+     inkscape:guide-bbox="true">
+    <sodipodi:guide
+       position="7.9819172,22.579477"
+       orientation="1,0"
+       id="guide2390"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="5.1594825,7.9998945"
+       orientation="0,1"
+       id="guide2392"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="39.909586,13.878469"
+       orientation="1,0"
+       id="guide1183"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="-12.440285,5.3212781"
+       orientation="1,0"
+       id="guide1185"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="5.4570312,40"
+       orientation="0,1"
+       id="guide1187"
+       inkscape:locked="false" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Master"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-384,-1004.3622)"
+     style="display:inline">
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#747474;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.54330707;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:14.17322835, 14.17322835;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+       id="rect7208"
+       width="32"
+       height="8"
+       x="392"
+       y="1036.3622" />
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#747474;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.54330707;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:14.17322835, 14.17322835;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+       id="rect7208-3"
+       width="32"
+       height="8"
+       x="392"
+       y="1024.3622" />
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#747474;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.54330707;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:14.17322835, 14.17322835;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+       id="rect7208-6"
+       width="32"
+       height="8"
+       x="392"
+       y="1012.3622" />
+  </g>
+</svg>
diff --git a/modules/gui/qt/pixmaps/toolbar/audiosub.svg b/modules/gui/qt/pixmaps/toolbar/audiosub.svg
new file mode 100644
index 0000000000..764ca2fd2e
--- /dev/null
+++ b/modules/gui/qt/pixmaps/toolbar/audiosub.svg
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48"
+   height="48"
+   viewBox="0 0 48 48"
+   id="svg3428"
+   version="1.1"
+   inkscape:version="0.92.3 (2405546, 2018-03-11)"
+   sodipodi:docname="audiosub.svg">
+  <defs
+     id="defs3430" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="5.6568543"
+     inkscape:cx="-51.821021"
+     inkscape:cy="19.622447"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1043"
+     inkscape:window-x="2560"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:snap-grids="false">
+    <inkscape:grid
+       type="xygrid"
+       id="grid3436"
+       empspacing="4"
+       visible="true"
+       enabled="true"
+       snapvisiblegridlinesonly="true" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata3433">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1004.3622)">
+    <path
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#747474;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.9186148;marker:none;enable-background:accumulate"
+       d="m 12.946675,1008.6135 c -4.0713009,0 -7.3489184,3.2776 -7.3489184,7.3489 v 14.6979 c 0,4.0713 3.2776175,7.3489 7.3489184,7.3489 h 10.61 l -2.572121,9.3239 a 1.102448,0.99666884 0 0 0 1.860379,0.9646 l 11.367672,-10.2885 h 0.780823 c 4.071301,0 7.348918,-3.2776 7.348918,-7.3489 v -14.6979 c 0,-4.0713 -3.277617,-7.3489 -7.348918,-7.3489 z m -2.939567,5.5117 h 27.925887 c 0.40713,0 0.734892,0.3261 0.734892,0.7349 v 2.2047 c 0,0.4087 -0.327027,0.7348 -0.734892,0.7348 H 10.007108 c -0.4071305,0 -0.7348923,-0.3261 -0.7348923,-0.7348 v -2.2047 c 0,-0.4088 0.3270269,-0.7349 0.7348923,-0.7349 z m 0,7.3489 h 15.432728 c 0.40713,0 0.734891,0.3261 0.734891,0.7349 v 2.2047 c 0,0.4088 -0.327026,0.7349 -0.734891,0.7349 H 10.007108 c -0.4071305,0 -0.7348923,-0.3261 -0.7348923,-0.7349 v -2.2047 c 0,-0.4088 0.3270269,-0.7349 0.7348923,-0.7349 z m 20.57697,0 h 7.348917 c 0.40713,0 0.734892,0.3261 0.734892,0.7349 v 2.2047 c 0,0.4088 -0.327027,0.7349 -0.734892,0.7349 h -7.348917 c -0.40713,0 -0.734891,-0.3261 -0.734891,-0.7349 v -2.2047 c 0,-0.4088 0.327026,-0.7349 0.734891,-0.7349 z m -20.57697,7.3489 h 20.57697 c 0.40713,0 0.734892,0.3261 0.734892,0.7349 v 2.2047 c 0,0.4088 -0.327027,0.7349 -0.734892,0.7349 h -20.57697 c -0.4071305,0 -0.7348923,-0.3261 -0.7348923,-0.7349 v -2.2047 c 0,-0.4088 0.3270269,-0.7349 0.7348923,-0.7349 z m 25.721212,0 h 2.204675 c 0.40713,0 0.734892,0.3261 0.734892,0.7349 v 2.2047 c 0,0.4088 -0.327027,0.7349 -0.734892,0.7349 H 35.72832 c -0.40713,0 -0.734892,-0.3261 -0.734892,-0.7349 v -2.2047 c 0,-0.4088 0.327027,-0.7349 0.734892,-0.7349 z"
+       id="path6367"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index d7623bf96b..8c7eca1ded 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -62,6 +62,7 @@
         <file alias="space.svg">pixmaps/space.svg</file>
         <file alias="slower2.svg">pixmaps/slower2.svg</file>
         <file alias="faster2.svg">pixmaps/faster2.svg</file>
+        <file alias="audiosub.svg">pixmaps/toolbar/audiosub.svg</file>
     </qresource>
     <qresource prefix="/buttons/playlist">
         <file alias="playlist_add.svg">pixmaps/playlist/add.svg</file>
@@ -94,6 +95,8 @@
         <file alias="search_clear.svg">pixmaps/search_clear.svg</file>
         <file alias="dropzone.svg">pixmaps/playlist/dropzone.svg</file>
         <file alias="valid.svg">pixmaps/valid.svg</file>
+        <file alias="menu.svg">pixmaps/menu.svg</file>
+        <file alias="VLCIcons.ttf">pixmaps/VLCIcons.ttf</file>
     </qresource>
     <qresource prefix="/prefsmenu">
         <file alias="cone_audio_64.png">pixmaps/prefs/spref_cone_Audio_64.png</file>
-- 
2.19.1



More information about the vlc-devel mailing list