style: add heater_generic icon

This commit is contained in:
alfrix committed 2022-04-02 14:29:31 -03:00
1 parent c33659c6f7
commit ab38dab291
8 files changed
+326 -2

No files matched your search

+3
View File
@@ -161,6 +161,9 @@ class BasePanel(ScreenPanel):
elif device.startswith("temperature_fan"):
fan_img = self._gtk.Image("fan", .5)
self.labels[device + '_box'].pack_start(fan_img, True, True, 3)
elif device.startswith("heater_generic"):
heat_img = self._gtk.Image("heater", .5)
self.labels[device + '_box'].pack_start(heat_img, True, True, 3)
else:
temp_img = self._gtk.Image("heat-up", .5)
self.labels[device + '_box'].pack_start(temp_img, True, True, 3)
+1 -1
View File
@@ -95,7 +95,7 @@ class MainPanel(MenuPanel):
for d in self.devices:
if "heater_generic" in d:
h += 1
image = "heat-up"
image = "heater"
class_name = "graph_label_sensor_%s" % h
type = "sensor"
elif device.startswith("temperature_fan"):
+1 -1
View File
@@ -301,7 +301,7 @@ class TemperaturePanel(ScreenPanel):
for d in self.devices:
if "heater_generic" in d:
h += 1
image = "heat-up"
image = "heater"
class_name = "graph_label_sensor_%s" % h
type = "sensor"
elif device.startswith("temperature_fan"):
+160
View File
@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
width="24"
height="24"
viewBox="0 0 24 24"
id="svg4"
sodipodi:docname="heater.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs8">
<linearGradient
id="linearGradient11869">
<stop
style="stop-color:#dc322f;stop-opacity:1"
offset="0"
id="stop11861" />
<stop
style="stop-color:#cc4a17;stop-opacity:1"
offset="0.5"
id="stop11863" />
<stop
style="stop-color:#c65a11;stop-opacity:1"
offset="0.75"
id="stop11865" />
<stop
style="stop-color:#cc4f1a;stop-opacity:1"
offset="1"
id="stop11867" />
</linearGradient>
<linearGradient
id="linearGradient10815">
<stop
style="stop-color:#dc322f;stop-opacity:1"
offset="0"
id="stop10976" />
<stop
style="stop-color:#cb4b16;stop-opacity:0.49803922"
offset="0.5"
id="stop10978" />
<stop
style="stop-color:#b58900;stop-opacity:0.24705882"
offset="0.75"
id="stop10980" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop10982" />
</linearGradient>
<linearGradient
id="linearGradient10815-0">
<stop
style="stop-color:#dc322f;stop-opacity:1"
offset="0"
id="stop10807" />
<stop
style="stop-color:#cb4b16;stop-opacity:0.49803922"
offset="0.5"
id="stop10809" />
<stop
style="stop-color:#b58900;stop-opacity:0.24705882"
offset="0.75"
id="stop10811" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop10813" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient955"
id="linearGradient858"
gradientUnits="userSpaceOnUse"
x1="51"
y1="40"
x2="50.862003"
y2="5.8426123"
gradientTransform="translate(-17.440011,-17.717467)" />
<linearGradient
id="linearGradient955">
<stop
style="stop-color:#dc322f;stop-opacity:1"
offset="0"
id="stop959" />
<stop
style="stop-color:#cb4b16;stop-opacity:0.49803922"
offset="0.5"
id="stop964" />
<stop
style="stop-color:#b58900;stop-opacity:0.24705882"
offset="0.75"
id="stop966" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop961" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient11869"
id="linearGradient23766"
gradientUnits="userSpaceOnUse"
x1="22.234701"
y1="-2.0497832"
x2="22.32369"
y2="-24.29283" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient11869"
id="linearGradient52625"
gradientUnits="userSpaceOnUse"
x1="22.234701"
y1="-2.0497832"
x2="22.32369"
y2="-24.29283"
gradientTransform="translate(-29.396505,4.4638806)" />
</defs>
<sodipodi:namedview
id="namedview6"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="9.2807765"
inkscape:cx="20.095301"
inkscape:cy="18.101934"
inkscape:window-width="1600"
inkscape:window-height="826"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g9896-8-2" />
<g
id="g9896-8-2"
transform="translate(-9.9548858,25.191409)"
style="fill:url(#linearGradient23766);fill-opacity:1">
<path
style="fill:#b58900;fill-opacity:1;stroke:none;stroke-width:1.13193px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
d="m 15.69011,-17.263086 c -4.487409,11.9654156 -0.139808,15.1120916 7.544051,15.1730386 7.035044,-0.13069 7.514856,-6.2599622 6.248739,-8.1545626 -1.266117,-1.8946 -4.44543,-5.619714 -3.604206,-10.643828 -0.01115,-0.0836 -1.640743,1.661933 -2.319128,5.289429 -1.880183,-1.235083 -2.330164,-4.351196 -1.235747,-8.693878 -2.833889,2.722088 -5.343487,6.296638 -3.767371,13.238197 -1.870903,-1.776468 -2.466748,-3.103138 -2.866338,-6.208396 z"
id="path52470-7-3"
sodipodi:nodetypes="cczccccc" />
<path
id="path52470"
style="fill:#cb4b16;fill-opacity:1;stroke:none;stroke-width:1.13193px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
d="M 12.369141 0.8984375 C 9.5352516 3.6205255 7.0254465 7.1951598 8.6015625 14.136719 C 6.7306595 12.360251 6.133965 11.032992 5.734375 7.9277344 C 2.1108644 17.589615 4.2511435 21.499524 9.2539062 22.679688 C 8.3996528 21.663235 6.8337462 19.278951 8.7070312 16.720703 C 8.8633072 17.793829 8.2338216 19.287219 10.416016 19.5 C 11.635509 19.274169 10.428073 16.860088 12.517578 12.847656 C 11.516847 15.884583 13.244872 16.381157 13.417969 20.189453 C 14.465654 20.282155 15.661704 17.944526 15.449219 16.148438 C 17.318957 19.101322 15.690304 21.066932 14.587891 22.998047 C 20.368873 22.177487 20.709817 16.716702 19.527344 14.947266 C 18.261227 13.052666 15.082604 9.3268484 15.923828 4.3027344 C 15.912678 4.2191344 14.283854 5.9643009 13.605469 9.5917969 C 11.725286 8.3567139 11.274724 5.2411195 12.369141 0.8984375 z "
transform="translate(9.9548858,-25.191409)" />
<path
style="fill:url(#linearGradient52625);fill-opacity:1;stroke:none;stroke-width:1.13193px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
d="m -13.706523,-12.799147 c -4.487409,11.96541524 -0.139808,15.1120912 7.5440508,15.1730382 7.03504397,-0.13069 7.514856,-6.2599622 6.24873897,-8.1545626 -1.26611697,-1.8946 -4.44542997,-5.6197136 -3.60420597,-10.6438276 -0.01115,-0.0836 -1.640743,1.661933 -2.319128,5.289429 -1.880183,-1.235083 -2.330164,-4.351196 -1.235747,-8.693878 -2.833889,2.722088 -5.3434868,6.296638 -3.7673708,13.2381966 -1.870903,-1.776468 -2.466748,-3.103138 -2.866338,-6.2083956 z"
id="path52470-7"
sodipodi:nodetypes="cczccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

+38
View File
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
width="24"
height="24"
viewBox="0 0 24 24"
id="svg4"
sodipodi:docname="heater.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
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">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="26.25"
inkscape:cx="12.019048"
inkscape:cy="12"
inkscape:window-width="1600"
inkscape:window-height="826"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z"
id="path2"
style="fill:#e2e2e2;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+38
View File
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
width="24"
height="24"
viewBox="0 0 24 24"
id="svg4"
sodipodi:docname="heater.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
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">
<defs
id="defs8" />
<sodipodi:namedview
id="namedview6"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="26.25"
inkscape:cx="12.019048"
inkscape:cy="12"
inkscape:window-width="1600"
inkscape:window-height="826"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z"
id="path2"
style="fill:#e2e2e2;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z" /></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+84
View File
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="64"
height="64"
viewBox="0 0 64 64"
version="1.1"
id="svg10"
sodipodi:docname="heater.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
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/">
<metadata
id="metadata16">
<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>folder</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14">
<linearGradient
id="linearGradient11869">
<stop
style="stop-color:#dc322f;stop-opacity:1"
offset="0"
id="stop11861" />
<stop
style="stop-color:#cc4a17;stop-opacity:1"
offset="0.5"
id="stop11863" />
<stop
style="stop-color:#c65a11;stop-opacity:1"
offset="0.75"
id="stop11865" />
<stop
style="stop-color:#cc4f1a;stop-opacity:1"
offset="1"
id="stop11867" />
</linearGradient>
</defs>
<sodipodi:namedview
pagecolor="#bfbfbf"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1600"
inkscape:window-height="826"
id="namedview12"
showgrid="false"
inkscape:pagecheckerboard="false"
inkscape:zoom="5.413793"
inkscape:cx="36.296179"
inkscape:cy="43.777071"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg10"
inkscape:snap-bbox="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:document-rotation="0" />
<!-- Generator: Sketch 52.5 (67469) - http://www.bohemiancoding.com/sketch -->
<title
id="title2">folder</title>
<desc
id="desc4">Created with Sketch.</desc>
<path
id="path52470"
style="font-variation-settings:normal;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000;stop-opacity:1"
d="M 32.951247,2.9998603 C 25.51376,10.143927 18.926825,19.525488 23.063308,37.743476 18.153162,33.08117 16.587148,29.597804 15.538431,21.448114 6.0285967,46.805535 11.645718,57.067011 24.775373,60.164331 22.533402,57.496671 18.423709,51.239164 23.34011,44.525092 c 0.410143,2.816398 -1.241928,6.735772 4.485198,7.294211 3.200536,-0.592689 0.03165,-6.928398 5.515509,-17.458948 -2.626399,7.970356 1.908769,9.273605 2.363059,19.268404 2.749629,0.24329 5.888639,-5.891767 5.330976,-10.605566 4.907091,7.749787 0.632723,12.908488 -2.260539,17.976668 15.172074,-2.15354 16.066874,-16.48527 12.963494,-21.12912 -3.322894,-4.972342 -11.665129,-14.750679 -9.457353,-27.936369 -0.02926,-0.219407 -4.30408,4.36075 -6.084488,13.881044 C 31.261462,22.573964 30.07897,14.397145 32.951247,2.9998603 Z" />
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB