Home Information - Your home, your data, organized.
Python
Added better default location SVG.
Anthony Cassandradf6c6fa51eeb
diff --git a/src/hi/apps/entity/templates/entity/svg/type.sink.svg b/src/hi/apps/entity/templates/entity/svg/type.sink.svgindex 49429df6..6830ea2a 100644--- a/src/hi/apps/entity/templates/entity/svg/type.sink.svg+++ b/src/hi/apps/entity/templates/entity/svg/type.sink.svg@@ -1,6 +1,6 @@<rect class="hi-entity-bg" x="0" y="0" width="64" height="50" fill="none"/><path class="hi-entity-sink-top"- fill="#c0c0c0" stroke="black" stroke-width="0"+ fill="#E6F0FA" stroke="black" stroke-width="0"d="M 5.95,3.14C 5.95,3.14 10.83,3.14 10.83,3.1410.83,3.14 19.99,3.14 19.99,3.14@@ -67,7 +67,7 @@38.90,5.46 29.62,5.46 29.62,5.4629.62,5.46 24.62,5.46 24.62,5.46 Z" /><path class="hi-entity-sink-basin"- fill="#b0b0b0" stroke="black" stroke-width="0"+ fill="#B6C0BA" stroke="black" stroke-width="0"d="M 12.49,17.01C 12.49,17.01 16.89,16.94 16.89,16.9416.89,16.94 25.46,16.94 25.46,16.94diff --git a/src/hi/apps/entity/templates/entity/svg/type.toilet.svg b/src/hi/apps/entity/templates/entity/svg/type.toilet.svgindex d9c75f21..4326c082 100644--- a/src/hi/apps/entity/templates/entity/svg/type.toilet.svg+++ b/src/hi/apps/entity/templates/entity/svg/type.toilet.svg@@ -1,6 +1,6 @@<rect class="hi-entity-bg" x="0" y="0" width="48" height="64" fill="none"/><path id="background"- fill="#fcfcfe" stroke="black" stroke-width="0"+ fill="#e6f0fa" stroke="black" stroke-width="0"d="M 5.52,1.49C 5.52,1.49 9.82,1.49 9.82,1.499.82,1.49 17.92,1.49 17.92,1.49diff --git a/src/hi/apps/location/enums.py b/src/hi/apps/location/enums.pyindex 581939a4..a3b93fa4 100644--- a/src/hi/apps/location/enums.py+++ b/src/hi/apps/location/enums.py@@ -101,8 +101,8 @@ class SvgItemType(LabeledEnum):class SvgStyleName(LabeledEnum):- GREYSCALE = ( 'Grey Scale ', '' )COLOR = ( 'Color', '' )+ GREYSCALE = ( 'Grey Scale ', '' )@propertydef svg_defs_template_name(self):diff --git a/src/hi/static/img/location-default.svg b/src/hi/static/img/location-default.svgindex 8b13078e..3b990b39 100644--- a/src/hi/static/img/location-default.svg+++ b/src/hi/static/img/location-default.svg@@ -1,22 +1,2 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">--<svg xmlns="http://www.w3.org/2000/svg"- width="40pc" height="40pc"- viewBox="0 0 2000 2000">- <path class="property-boundary"- fill="none" stroke="black" stroke-width="1"- d="M 64.00,81.00- C 64.00,81.00 1905.00,78.00 1905.00,78.00- 1905.00,78.00 1905.00,1903.00 1905.00,1903.00- 1905.00,1903.00 64.00,1907.00 65.00,1906.00- 66.00,1905.00 64.00,81.00 64.00,81.00 Z" />- <path class="house-outer-wall"- fill="none" stroke="black" stroke-width="8"- d="M 143.00,610.00- C 143.00,610.00 1762.00,609.00 1762.00,609.00- 1762.00,609.00 1776.00,1609.00 1776.00,1608.00- 1776.00,1607.00 142.00,1610.00 144.00,1610.00- 146.00,1610.00 143.00,610.00 143.00,610.00 Z" />-</svg>+<?xml version='1.0' encoding='utf-8'?>+<svg xmlns:ns0="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000"><g><ns0:path d="M 64.00,81.00 C 64.00,81.00 1905.00,78.00 1905.00,78.00 1905.00,78.00 1905.00,1903.00 1905.00,1903.00 1905.00,1903.00 64.00,1907.00 65.00,1906.00 66.00,1905.00 64.00,81.00 64.00,81.00 Z" class="grass" /><ns0:path d="M 926.25,1605.50 C 926.25,1605.50 1077.00,1605.25 1077.00,1605.25 1077.00,1605.25 1077.00,1922.00 1077.00,1922.00 1077.00,1922.00 924.50,1925.25 924.25,1924.75 924.50,1925.00 926.25,1605.50 926.25,1605.50 Z M 805.33,483.33 C 805.33,483.33 1194.67,483.00 1194.67,483.00 1194.67,483.00 1194.00,611.00 1194.00,611.00 1194.00,611.00 805.67,611.33 804.67,610.33 803.67,609.33 805.33,483.33 805.33,483.33 Z" class="pavement" /><ns0:path d="M 64.00,81.00 C 64.00,81.00 1905.00,78.00 1905.00,78.00 1905.00,78.00 1905.00,1903.00 1905.00,1903.00 1905.00,1903.00 64.00,1907.00 65.00,1906.00 66.00,1905.00 64.00,81.00 64.00,81.00 Z" class="property-lines" /><ns0:path d="M 153.00,618.00 C 153.00,618.00 1853.00,620.00 1853.00,620.00 1853.00,620.00 1852.00,1599.00 1852.00,1599.00 1852.00,1599.00 154.00,1596.00 154.00,1596.00 154.00,1596.00 153.00,618.00 153.00,618.00 Z" class="interior-floors" /><ns0:path d="M 149.00,1020.75 C 149.00,1020.75 157.75,1021.25 157.75,1021.25 157.75,1021.25 158.75,1127.00 158.75,1127.00 158.75,1127.00 149.75,1127.50 149.75,1127.50 149.75,1127.50 149.00,1020.75 149.00,1020.75 Z M 490.50,619.00 C 490.50,619.00 594.25,619.25 594.25,619.25 594.25,619.25 594.75,627.50 594.75,627.50 594.75,627.50 490.50,627.50 490.50,627.50 490.50,627.50 490.50,619.00 490.50,619.00 Z M 1405.50,619.00 C 1405.50,619.00 1510.00,619.00 1510.00,619.00 1510.00,619.00 1510.75,627.50 1510.75,627.50 1510.75,627.50 1405.50,627.75 1405.50,627.75 1405.50,627.75 1405.50,619.00 1405.50,619.00 Z M 1851.75,1021.50 C 1851.75,1021.50 1852.25,1127.75 1852.25,1127.75 1852.25,1127.75 1843.50,1127.25 1843.50,1127.25 1843.50,1127.25 1844.00,1021.25 1844.00,1021.25 1844.00,1021.25 1851.75,1021.50 1851.75,1021.50 Z M 1566.50,1597.75 C 1566.50,1597.75 1461.25,1598.25 1461.25,1598.25 1461.25,1598.25 1461.50,1588.50 1461.50,1588.50 1461.50,1588.50 1566.25,1588.75 1566.25,1588.75 1566.25,1588.75 1566.50,1597.75 1566.50,1597.75 Z M 1343.50,1589.50 C 1343.50,1589.50 1448.00,1588.75 1448.00,1588.75 1448.00,1588.75 1447.75,1598.50 1447.75,1598.50 1447.75,1598.50 1343.75,1599.00 1343.75,1599.00 1343.75,1599.00 1343.50,1589.50 1343.50,1589.50 Z M 433.25,1589.50 C 433.25,1589.50 539.25,1590.00 539.25,1590.00 539.25,1590.00 539.50,1597.75 539.50,1597.75 539.50,1597.75 433.00,1598.00 433.00,1598.00 433.00,1598.00 433.25,1589.50 433.25,1589.50 Z M 552.50,1589.50 C 552.50,1589.50 656.75,1590.00 656.75,1590.00 656.75,1590.00 656.75,1597.75 656.75,1597.75 656.75,1597.75 551.50,1597.75 551.50,1597.75 551.50,1597.75 552.50,1589.50 552.50,1589.50 Z" class="windows" /><ns0:path d="M 536.25,1589.75 C 536.25,1589.75 553.75,1589.50 553.75,1589.50 553.75,1589.50 553.50,1604.25 553.50,1604.25 553.50,1604.25 535.75,1603.50 535.75,1603.50 535.75,1603.50 536.25,1589.75 536.25,1589.75 Z M 1445.75,1588.50 C 1445.75,1588.50 1463.75,1588.25 1463.75,1588.25 1463.75,1588.25 1463.75,1604.00 1463.75,1604.00 1463.75,1604.00 1446.00,1603.50 1446.00,1603.50 1446.00,1603.50 1445.75,1588.50 1445.75,1588.50 Z M 1844.00,1025.15 C 1844.00,1025.15 1844.00,626.00 1844.00,626.00 1844.00,626.00 1507.46,627.49 1507.46,627.49 1507.46,627.49 1507.26,609.42 1507.26,609.42 1507.26,609.42 1859.00,608.00 1859.00,608.00 1859.00,608.00 1859.42,1024.92 1859.42,1024.92 1859.42,1024.92 1844.00,1025.15 1844.00,1025.15 Z M 592.18,610.27 C 592.18,610.27 944.50,610.75 944.50,610.75 944.50,610.75 945.00,629.50 945.00,629.50 945.00,629.50 592.07,627.93 592.07,627.93 592.07,627.93 592.18,610.27 592.18,610.27 Z M 653.50,1589.75 C 653.50,1589.75 946.00,1589.00 946.00,1589.00 946.00,1589.00 945.75,1606.00 945.75,1606.00 945.75,1606.00 654.00,1607.00 654.00,1607.00 654.00,1607.00 653.50,1589.75 653.50,1589.75 Z M 1408.14,627.93 C 1408.14,627.93 1055.00,629.50 1055.00,629.50 1055.00,629.50 1054.75,611.25 1054.75,611.25 1054.75,611.25 1408.39,609.82 1408.39,609.82 1408.39,609.82 1408.14,627.93 1408.14,627.93 Z M 1564.25,1589.00 C 1564.25,1589.00 1844.00,1589.50 1844.00,1589.50 1844.00,1589.50 1844.00,1124.66 1844.00,1124.66 1844.00,1124.66 1859.50,1124.75 1859.50,1124.75 1859.50,1124.75 1860.00,1607.41 1860.00,1607.00 1860.00,1606.82 1563.67,1606.45 1563.67,1606.45 1563.67,1606.45 1564.25,1589.00 1564.25,1589.00 Z M 1346.25,1606.00 C 1346.25,1606.00 1054.50,1606.00 1054.50,1606.00 1054.50,1606.00 1055.00,1588.00 1055.00,1588.00 1055.00,1588.00 1346.75,1589.50 1346.75,1589.50 1346.75,1589.50 1346.25,1606.00 1346.25,1606.00 Z M 142.25,1025.00 C 142.25,1025.00 142.00,609.67 142.00,609.67 142.00,609.67 492.94,610.14 492.94,610.14 492.94,610.14 493.03,627.49 493.03,627.49 493.03,627.49 157.00,626.00 157.00,626.00 157.00,626.00 158.24,1024.67 158.24,1024.67 158.24,1024.67 142.25,1025.00 142.25,1025.00 Z M 158.55,1124.14 C 158.55,1124.14 160.00,1590.00 160.00,1590.00 160.00,1590.00 435.85,1589.65 435.85,1589.65 435.85,1589.65 436.00,1606.50 436.00,1606.50 436.00,1606.50 141.04,1607.33 141.33,1607.33 142.15,1607.33 142.50,1124.25 142.50,1124.25 142.50,1124.25 158.55,1124.14 158.55,1124.14 Z" class="exterior-walls" /><ns0:path d="M 946.58,629.83 C 957.43,696.37 1000.14,714.36 1052.00,717.00M 1053.75,1592.50 C 1060.75,1555.50 1021.25,1517.75 974.25,1519.75" class="door-arcs" /><ns0:path d="M 1057.25,626.00 C 1057.25,626.00 983.00,690.00 983.00,690.00M 944.75,1594.25 C 944.75,1594.25 1019.00,1537.25 1019.00,1537.25" class="doors" /></g></svg>\ No newline at end of file