mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 08:39:49 +02:00
Use snapcast icon in Pulse player
This commit is contained in:
parent
2c7411e949
commit
178888a512
4 changed files with 196 additions and 2 deletions
|
@ -109,5 +109,6 @@ else()
|
|||
|
||||
install(TARGETS snapclient COMPONENT client DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
install(FILES snapclient.1 COMPONENT client DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
|
||||
install(FILES etc/snapcast.svg COMPONENT client DESTINATION ${CMAKE_INSTALL_DATADIR}/pixmaps)
|
||||
endif()
|
||||
|
||||
|
|
192
client/etc/snapcast.svg
Normal file
192
client/etc/snapcast.svg
Normal file
|
@ -0,0 +1,192 @@
|
|||
<?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="1000"
|
||||
height="1000"
|
||||
viewBox="0 0 937.49998 937.49998"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
|
||||
inkscape:export-filename="/home/johannes/Develop/snapcast/doc/Snapcast_800.png"
|
||||
inkscape:export-xdpi="21.515625"
|
||||
inkscape:export-ydpi="21.515625"
|
||||
sodipodi:docname="Snapcast.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.5"
|
||||
inkscape:cx="421.33569"
|
||||
inkscape:cy="579.0038"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-center="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1015"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
units="px"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:snap-bbox-midpoints="true"
|
||||
inkscape:snap-page="true" />
|
||||
<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 />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-114.86231)">
|
||||
<circle
|
||||
style="fill:#ffc107;fill-opacity:1;stroke-width:10.48156548"
|
||||
id="path869"
|
||||
cx="-739.7981"
|
||||
cy="114.1432"
|
||||
r="431.25"
|
||||
transform="rotate(-120)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="-739.79773"
|
||||
sodipodi:cy="116.1728"
|
||||
sodipodi:rx="360.29697"
|
||||
sodipodi:ry="360.29697"
|
||||
sodipodi:start="5.7595865"
|
||||
sodipodi:end="0.52359878"
|
||||
d="m -427.77141,-63.975695 a 360.29697,360.29697 0 0 1 10e-6,360.296975"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(-120)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-6"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="-739.86572"
|
||||
sodipodi:cy="116.1728"
|
||||
sodipodi:rx="299.98148"
|
||||
sodipodi:ry="299.98148"
|
||||
sodipodi:start="5.8119464"
|
||||
sodipodi:end="0.4712389"
|
||||
d="m -472.58027,-20.015944 a 299.98148,299.98148 0 0 1 0,272.377484"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(-120)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-5-75"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="-739.86572"
|
||||
sodipodi:cy="116.1728"
|
||||
sodipodi:rx="240.16533"
|
||||
sodipodi:ry="240.16533"
|
||||
sodipodi:start="5.8643063"
|
||||
sodipodi:end="0.41887902"
|
||||
d="m -520.46378,18.488761 a 240.16533,240.16533 0 0 1 0,195.368079"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(-120)" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#c8c8c8;fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:33.33299637;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 580.04681,420.34268 -114.35941,98.91209 -108.23431,-10e-6 -2e-5,127.28711 106.59374,0 115.99998,100.33981 z"
|
||||
id="polygon1-3-9" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-7"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="468.75037"
|
||||
sodipodi:cy="585.64191"
|
||||
sodipodi:rx="360.29697"
|
||||
sodipodi:ry="360.29697"
|
||||
sodipodi:start="5.7595865"
|
||||
sodipodi:end="0.52359878"
|
||||
d="m 780.77669,405.49341 a 360.29697,360.29697 0 0 1 0,360.29698"
|
||||
sodipodi:open="true" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-3"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="468.75037"
|
||||
sodipodi:cy="585.64191"
|
||||
sodipodi:rx="299.98148"
|
||||
sodipodi:ry="299.98148"
|
||||
sodipodi:start="5.8119464"
|
||||
sodipodi:end="0.4712389"
|
||||
d="m 736.03582,449.45316 a 299.98148,299.98148 0 0 1 0,272.37749"
|
||||
sodipodi:open="true" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-5-6"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="468.75037"
|
||||
sodipodi:cy="585.64191"
|
||||
sodipodi:rx="240.16533"
|
||||
sodipodi:ry="240.16533"
|
||||
sodipodi:start="5.8643063"
|
||||
sodipodi:end="0.41887902"
|
||||
d="m 688.15231,487.95787 a 240.16533,240.16533 0 0 1 0,195.36808"
|
||||
sodipodi:open="true" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-3-1"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="270.98056"
|
||||
sodipodi:cy="-695.72601"
|
||||
sodipodi:rx="360.29697"
|
||||
sodipodi:ry="360.29697"
|
||||
sodipodi:start="5.7595865"
|
||||
sodipodi:end="0.52359878"
|
||||
d="m 583.00688,-875.87451 a 360.29697,360.29697 0 0 1 10e-6,360.29698"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(120)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-6-2"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="270.98056"
|
||||
sodipodi:cy="-695.72601"
|
||||
sodipodi:rx="299.98148"
|
||||
sodipodi:ry="299.98148"
|
||||
sodipodi:start="5.8119464"
|
||||
sodipodi:end="0.4712389"
|
||||
d="m 538.26601,-831.91476 a 299.98148,299.98148 0 0 1 0,272.37749"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(120)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;fill-rule:evenodd;stroke:#ffffff;stroke-width:34.99999619;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path3353-6-5-75-9"
|
||||
sodipodi:type="arc"
|
||||
sodipodi:cx="270.98056"
|
||||
sodipodi:cy="-695.72601"
|
||||
sodipodi:rx="240.16533"
|
||||
sodipodi:ry="240.16533"
|
||||
sodipodi:start="5.8643063"
|
||||
sodipodi:end="0.41887902"
|
||||
d="m 490.38251,-793.41005 a 240.16533,240.16533 0 0 1 0,195.36808"
|
||||
sodipodi:open="true"
|
||||
transform="rotate(120)" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 7.7 KiB |
|
@ -144,7 +144,7 @@ PulsePlayer::PulsePlayer(boost::asio::io_context& io_context, const ClientSettin
|
|||
if (params.find("server") != params.end())
|
||||
server_ = params["server"].front();
|
||||
properties_[PA_PROP_MEDIA_ROLE] = "music";
|
||||
properties_[PA_PROP_APPLICATION_ICON_NAME] = "applications-multimedia";
|
||||
properties_[PA_PROP_APPLICATION_ICON_NAME] = "snapcast";
|
||||
if (params.find("property") != params.end())
|
||||
{
|
||||
for (const auto& p : params["property"])
|
||||
|
|
3
debian/snapclient.install
vendored
3
debian/snapclient.install
vendored
|
@ -1 +1,2 @@
|
|||
usr/bin/snapclient usr/bin/
|
||||
usr/bin/snapclient usr/bin/
|
||||
usr/share/pixmaps/snapcast.svg usr/share/pixmaps/
|
Loading…
Add table
Add a link
Reference in a new issue