[android] add support for schuko/type-E charge sockets

The commit is slightly more complicated that expected because:

- it adds supports for both schuko and type-E, using the same icon (but
  maintaining the underlying type annotated in OSM)

- it adds logic to *not* display the power of schuko socket as 'unknown'
  when not provided in OSM, as it is 'implicit' (3.7kW in most
  countries)

Signed-off-by: Séverin Lemaignan <severin@guakamole.org>
This commit is contained in:
Séverin Lemaignan
2025-11-25 22:44:34 +01:00
committed by x7z4w
parent 610737d295
commit 6d0111b434
8 changed files with 108 additions and 18 deletions

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="svg4"
viewBox="0 0 32 32"
height="32"
width="32"
version="1.1"
sodipodi:docname="ic_charge_socket_schuko.svg"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
xml:space="preserve"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="9.6339353"
inkscape:cx="4.826688"
inkscape:cy="18.735853"
inkscape:window-width="1920"
inkscape:window-height="1131"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"
showguides="true" /><metadata
id="metadata10"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs8" /><path
id="path3"
style="opacity:1;fill:#000000;fill-opacity:1;stroke-width:27.048"
d="M 16.846679,0.85321632 V 2.1247006 h -1.69336 V 0.85516952 A 8.9651508,8.9651508 0 0 0 8.2451158,5.2809506 V 8.495794 H 7.1279284 a 8.9651508,8.9651508 0 0 0 -0.09375,1.283204 8.9651508,8.9651508 0 0 0 0.091797,1.283203 H 8.245116 v 3.216797 a 8.9651508,8.9651508 0 0 0 6.908203,4.425781 v -1.361328 h 1.69336 v 1.361328 a 8.9651508,8.9651508 0 0 0 6.908203,-4.425781 v -3.216797 h 1.11914 a 8.9651508,8.9651508 0 0 0 0.0918,-1.283203 8.9651508,8.9651508 0 0 0 -0.0918,-1.283204 h -1.11914 V 5.2789975 A 8.9651508,8.9651508 0 0 0 16.846679,0.85321632 Z M 11.518554,8.183294 c 0.880948,1.55e-4 1.593598,0.714757 1.59375,1.595704 1.31e-4,0.881148 -0.712601,1.595548 -1.59375,1.595703 C 10.637202,11.374833 9.9227216,10.66035 9.9228506,9.778998 9.9230016,8.897849 10.637405,8.183163 11.518554,8.183294 Z m 8.964844,0 c 0.880948,1.55e-4 1.593598,0.714757 1.59375,1.595704 1.3e-4,0.881148 -0.712601,1.595548 -1.59375,1.595703 -0.881352,1.32e-4 -1.595833,-0.714351 -1.595704,-1.595703 1.51e-4,-0.881149 0.714554,-1.595835 1.595704,-1.595704 z" /></svg>

After

Width:  |  Height:  |  Size: 2.5 KiB