add badges to modern theme

This commit is contained in:
Sophia Hadash 2021-09-25 02:56:57 +02:00
parent 8bc24cf2fc
commit da92e2349d
5 changed files with 205 additions and 0 deletions

View file

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="125.85675mm"
height="108.24592mm"
viewBox="0 0 125.85675 108.24592"
version="1.1"
id="svg83"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="broken.svg">
<defs
id="defs77"/>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="237.83953"
inkscape:cy="204.55921"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1551"
inkscape:window-height="901"
inkscape:window-x="4449"
inkscape:window-y="454"
inkscape:window-maximized="0"/>
<metadata
id="metadata80">
<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(-42.904958,-94.043708)">
<path
d="m 76.616519,94.043747 c -18.59906,0 -33.711561,15.298353 -33.711561,33.711563 0,6.42031 2.929675,11.92698 5.627286,15.95157 2.697611,4.02475 5.451794,6.72496 5.451794,6.72492 l 51.849212,51.85787 51.84921,-51.85787 c 0,0 11.07925,-9.83281 11.07925,-22.67649 0,-18.41321 -15.11267,-33.711563 -33.71173,-33.711563 -7.05551,0 -13.36374,2.352065 -18.47114,5.16214 l -1.48309,0.817153 -9.24433,25.48571 h 16.27639 L 105.83393,153.4439 V 134.49854 H 89.891029 l 6.944239,-34.34371 -3.019884,-1.554453 C 88.975517,96.109176 83.144028,94.044048 76.617029,94.044048 Z m 0,8.990153 c 3.497262,-4.9e-4 6.726615,1.38748 9.920462,2.70358 L 78.8991,143.48735 h 17.944492 v 26.96932 h 9.481308 l 26.47767,-45.4228 v -8.51585 h -14.1343 l 3.56436,-9.81499 c 3.92657,-1.98995 8.26248,-3.6697 12.81735,-3.66969 13.67442,4.9e-4 24.72191,11.22145 24.72191,24.7219 0,6.94305 -8.40152,16.27638 -8.40152,16.27638 l -0.008,0.008 -45.52829,45.52828 -45.528283,-45.52828 -0.0087,-0.008 c 0,0 -2.120511,-2.08754 -4.293006,-5.32879 -2.172665,-3.24108 -4.10868,-7.47903 -4.10868,-10.94759 0,-13.50045 11.047652,-24.7219 24.721902,-24.7219 z"
id="path1227"
style="display:inline;fill:#FF5130;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.495;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"/>
<path
style="display:inline;fill:#FF5130;stroke:#FF5130;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 48.8392,137.39148 58.30251,58.21644 58.54875,-65.0366 -14.12764,-27.36802 -23.29316,-2.8914 -13.72848,10.47141 7.58663,14.7254 -0.22789,10.25001 -20.04997,28.15929 -0.63892,-26.43695 -16.171934,-0.96708 3.074771,-34.0458 -26.553404,-2.12467 -14.391333,31.03597 z"
id="path1275"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="137.98372mm"
height="107.64349mm"
viewBox="0 0 137.98372 107.64349"
version="1.1"
id="svg70"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="completed.svg">
<defs
id="defs64"/>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="252.90508"
inkscape:cy="229.74417"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1551"
inkscape:window-height="901"
inkscape:window-x="4449"
inkscape:window-y="454"
inkscape:window-maximized="0"/>
<metadata
id="metadata67">
<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(-38.918865,-87.380188)">
<path
d="m 158.41235,99.959259 -71.06206,71.062061 -29.941205,-29.94121 -5.91115,5.91116 32.896778,32.89678 2.955577,2.82704 2.955577,-2.82704 74.017643,-74.01764 z"
id="path1144"
style="stroke:#00FEC5;stroke-width:17.7895;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path fill="#FFAE00" stroke="none"
d="M 30.335938 12.546875 L 20.164063 11.472656 L 16 2.132813 L 11.835938 11.472656 L 1.664063 12.546875 L 9.261719 19.394531 L 7.140625 29.398438 L 16 24.289063 L 24.859375 29.398438 L 22.738281 19.394531 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 326 B

View file

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="146.2144mm"
height="161.37415mm"
viewBox="0 0 146.2144 161.37415"
version="1.1"
id="svg69"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="kidgame.svg">
<defs
id="defs63"/>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="285.08581"
inkscape:cy="284.17375"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1551"
inkscape:window-height="901"
inkscape:window-x="4449"
inkscape:window-y="454"
inkscape:window-maximized="0"/>
<metadata
id="metadata66">
<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(-30.40438,-72.97903)">
<path
style="display:inline;fill:#1D9BF3;fill-opacity:1;stroke:#1D9BF3;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 30.568895,100.26005 38.05108,133.9332 107.833785,-27.42026 -10.04592,-34.76833 -63.50014,16.48097 -4.340435,-15.43258 63.515315,-16.17611 -9.93736,-34.79347 -63.340275,16.35378 -4.30312,-14.67088 63.568195,-15.93889 -9.8031,-34.688773 z"
id="path61"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -211,7 +211,24 @@ based on: Switch Theme by Lilbud
<datetime name="md_lastplayed, md_playcount">
<pos>1 1</pos>
</datetime>
<badges name="md_badges">
<pos>0.8453 0.704</pos>
<origin>0 0</origin>
<!-- flexbox properties -->
<direction>row</direction>
<align>center</align>
<itemsPerLine>4</itemsPerLine>
<itemMargin>0 0</itemMargin>
<itemWidth>.02</itemWidth>
<!-- badges properties -->
<slots>favorite kidgame broken completed</slots>
<customBadgeIcon badge="favorite">./assets/favorite.svg</customBadgeIcon>
<customBadgeIcon badge="completed">./assets/completed.svg</customBadgeIcon>
<customBadgeIcon badge="kidgame">./assets/kidgame.svg</customBadgeIcon>
<customBadgeIcon badge="broken">./assets/broken.svg</customBadgeIcon>
</badges>
</view>
<view name="basic">