Add icon for car interface

pull/806/head
Michael Zanetti 2022-04-22 00:53:42 +02:00
parent 6feafb4983
commit dbd7868e34
4 changed files with 188 additions and 0 deletions

View File

@ -206,6 +206,9 @@ QString ThingClass::baseInterface() const
if (interface == "thermostat") {
return "thermostat";
}
if (interface == "electricvehicle") {
return "electricvehicle";
}
}
return "uncategorized";
}

View File

@ -272,5 +272,6 @@
<file>ui/images/sensors/gas.svg</file>
<file>ui/images/contact-group.svg</file>
<file>ui/images/zigbee/TI.svg</file>
<file>ui/images/car.svg</file>
</qresource>
</RCC>

View File

@ -248,6 +248,8 @@ ApplicationWindow {
return qsTr("Barcode scanners");
case "cleaningrobot":
return qsTr("Cleaning robots")
case "electricvehicle":
return qsTr("Electric cars");
case "uncategorized":
return qsTr("Uncategorized")
default:
@ -407,6 +409,8 @@ ApplicationWindow {
return Qt.resolvedUrl("images/connections/network-wifi.svg")
case "connectable":
return Qt.resolvedUrl("images/stock_link.svg")
case "electricvehicle":
return Qt.resolvedUrl("images/car.svg")
default:
console.warn("InterfaceToIcon: Unhandled interface", name)
}

180
nymea-app/ui/images/car.svg Normal file
View File

@ -0,0 +1,180 @@
<?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="96"
height="96"
id="svg4874"
version="1.1"
inkscape:version="0.91+devel r"
viewBox="0 0 96 96.000001"
sodipodi:docname="audio-carkit-symbolic.svg">
<defs
id="defs4876" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="4.4959994"
inkscape:cx="69.906585"
inkscape:cy="41.09206"
inkscape:document-units="px"
inkscape:current-layer="g4780"
showgrid="true"
showborder="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:object-nodes="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-object-midpoints="true"
inkscape:snap-center="true"
showguides="true"
inkscape:guide-bbox="true"
inkscape:snap-global="true">
<inkscape:grid
type="xygrid"
id="grid5451"
empspacing="8" />
<sodipodi:guide
orientation="1,0"
position="8,-8.0000001"
id="guide4063" />
<sodipodi:guide
orientation="1,0"
position="4,-8.0000001"
id="guide4065" />
<sodipodi:guide
orientation="0,1"
position="-8,88.000001"
id="guide4067" />
<sodipodi:guide
orientation="0,1"
position="-8,92.000001"
id="guide4069" />
<sodipodi:guide
orientation="0,1"
position="104,4"
id="guide4071" />
<sodipodi:guide
orientation="0,1"
position="-5,8.0000001"
id="guide4073" />
<sodipodi:guide
orientation="1,0"
position="88,-8.0000001"
id="guide4077" />
<sodipodi:guide
orientation="0,1"
position="-8,84.000001"
id="guide4074" />
<sodipodi:guide
orientation="1,0"
position="12,-8.0000001"
id="guide4076" />
<sodipodi:guide
orientation="1,0"
position="84,-8.0000001"
id="guide4080" />
<sodipodi:guide
position="48,-8.0000001"
orientation="1,0"
id="guide4170" />
<sodipodi:guide
position="-8,48"
orientation="0,1"
id="guide4172" />
<sodipodi:guide
position="92,-8.0000001"
orientation="1,0"
id="guide4760" />
</sodipodi:namedview>
<metadata
id="metadata4879">
<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(67.857146,-78.50504)">
<g
transform="matrix(0,-1,-1,0,373.50506,516.50504)"
id="g4845"
style="display:inline">
<g
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="next01.png"
transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
id="g4778"
inkscape:label="Layer 1">
<g
transform="matrix(-1,0,0,1,575.99999,611)"
id="g4780"
style="display:inline">
<rect
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
id="rect4782"
width="96.037987"
height="96"
x="-438.00244"
y="345.36221"
transform="scale(-1,1)" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.58436394;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="M 48 33.298828 C 44.54748 33.298828 41.445336 34.398259 38.916016 36.398438 L 38.109375 37.052734 C 36.382465 38.458258 34.398268 39.601445 32.142578 40.474609 C 29.891538 41.334489 27.464413 41.763672 24.851562 41.763672 C 23.202193 41.763672 21.628385 41.572036 20.109375 41.226562 L 19.628906 41.117188 L 19.517578 41.597656 C 19.035638 43.705472 18.775391 45.899563 18.775391 48.15625 C 18.775391 50.402201 19.032116 52.586717 19.509766 54.685547 L 19.621094 55.166016 L 20.101562 55.056641 C 21.605212 54.718814 23.163149 54.532649 24.792969 54.53125 C 29.346429 54.813578 34.51949 55.526179 37.40625 58.716797 C 40.33826 61.957425 41.602266 67.151614 41.628906 71.351562 C 41.628606 72.985636 41.438109 74.547274 41.099609 76.054688 L 40.992188 76.535156 L 41.472656 76.644531 C 43.570896 77.122042 45.75351 77.382812 48 77.382812 C 50.25766 77.382812 52.450984 77.118768 54.558594 76.636719 L 55.039062 76.527344 L 54.931641 76.044922 C 54.587751 74.53205 54.395931 72.964146 54.394531 71.322266 C 54.674701 66.778793 55.390695 61.617342 58.578125 58.738281 C 61.814585 55.814908 67.000266 54.556566 71.191406 54.529297 C 72.827796 54.529297 74.389227 54.717555 75.898438 55.056641 L 76.378906 55.166016 L 76.490234 54.685547 C 76.967794 52.587017 77.226562 50.402491 77.226562 48.15625 C 77.226562 45.899293 76.964352 43.705202 76.482422 41.597656 L 76.371094 41.117188 L 75.890625 41.226562 C 74.371615 41.572036 72.797798 41.763672 71.148438 41.763672 C 68.535577 41.763672 66.110515 41.334519 63.859375 40.474609 L 63.855469 40.474609 C 61.600379 39.601495 59.616985 38.457808 57.890625 37.052734 L 57.083984 36.398438 C 54.554684 34.398249 51.45252 33.298828 48 33.298828 z M 48 37.15625 C 54.15628 37.15625 59 41.999936 59 48.15625 C 59 54.312574 54.15628 59.15625 48 59.15625 C 41.84372 59.15625 37 54.312574 37 48.15625 C 37 41.999936 41.84372 37.15625 48 37.15625 z "
transform="matrix(0,-1,-1.0003957,0,438.00245,441.36222)"
id="path4211" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.58566618;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 401.09809,433.36222 -0.49403,0 -22.04962,0 0,-3.29089 0.11193,-0.13503 c 1.28416,-1.56342 2.33834,-3.34564 3.18606,-5.33372 l 0.1621,-0.38388 0.40719,0.0965 c 2.37893,0.56835 4.85413,0.87577 7.40455,0.87577 2.56437,0 5.05622,-0.31102 7.447,-0.88542 l 0.40525,-0.0965 0.16403,0.38194 c 0.8396,1.95247 1.87954,3.70602 3.14361,5.24499 l 0.11193,0.13503 0,3.3912 z"
id="path4209" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.58566618;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 401.09809,356.75342 -0.11193,0.13503 c -1.26407,1.53897 -2.30401,3.29252 -3.14361,5.24499 l -0.16403,0.38194 -0.40525,-0.0965 c -2.39078,-0.5744 -4.88263,-0.88542 -7.447,-0.88542 -2.55042,0 -5.02562,0.30742 -7.40455,0.87577 l -0.40719,0.0965 -0.1621,-0.38388 c -0.84772,-1.98808 -1.9019,-3.7703 -3.18606,-5.33372 l -0.11193,-0.13503 0,-3.29089 22.54365,0 0,3.3912 z"
id="path4207" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:6.58566618;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 358.97108,385.51307 -0.0965,0.40509 c -0.5749,2.39063 -0.88963,4.88079 -0.88963,7.44406 0,2.54878 0.30779,5.02607 0.87612,7.40355 l 0.0965,0.40509 -0.38402,0.16204 c -1.98887,0.8474 -3.7718,1.90115 -5.33583,3.1848 l -0.13509,0.11188 -3.2922,0 0,-22.53472 3.39255,0 0.13508,0.11188 c 1.53986,1.2638 3.2967,2.30286 5.25092,3.14236 l 0.3821,0.16397 z"
id="path4194" />
<ellipse
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#808080;stroke-width:3.65292764;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
id="path4184"
cx="-393.36221"
cy="-389.98346"
transform="matrix(0,-1,-1,0,0,0)"
rx="40.174259"
ry="40.190155" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB