Refactoring: highlight the currently selected element

This commit is contained in:
Pieter Vander Vennet 2023-04-27 02:24:38 +02:00
parent 06631ccd6d
commit 2b47cf934c
20 changed files with 214 additions and 72 deletions

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="375px" height="375px" viewBox="0 0 375 375" version="1.1">
<g id="surface1">
<rect x="0" y="0" width="375" height="375" style="fill:rgb(16.078432%,73.333335%,24.313726%);fill-opacity:1;stroke:none;"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 279.210938 32.8125 L 309.375 32.8125 L 309.375 63.179688 L 339.742188 63.179688 L 339.742188 93.34375 L 309.375 93.34375 L 309.375 123.710938 L 279.210938 123.710938 L 279.210938 93.34375 L 248.84375 93.34375 L 248.84375 63.179688 L 279.210938 63.179688 Z M 279.210938 32.8125 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 96.808594 114.742188 C 57.675781 115.148438 22.621094 154.074219 33.21875 205.433594 C 41.167969 244.769531 82.949219 295.71875 155.707031 345.039062 C 228.464844 295.515625 270.246094 244.566406 278.191406 205.433594 C 288.789062 153.871094 253.941406 115.148438 214.605469 114.742188 C 194.429688 114.335938 169.15625 125.136719 155.707031 150.816406 C 142.253906 125.136719 116.984375 114.335938 96.808594 114.742188 Z M 187.09375 145.925781 L 152.851562 216.238281 L 196.261719 216.238281 L 120.246094 304.6875 L 149.59375 235.394531 L 107.40625 235.394531 Z M 187.09375 145.925781 "/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -650,11 +650,11 @@
"mapRendering": [
{
"icon": {
"render": "./assets/themes/aed/aed.svg",
"render": "square:#008754;./assets/layers/defibrillator/defibrillator.svg",
"mappings": [
{
"if": "_recently_surveyed=true",
"then": "./assets/layers/defibrillator/aed_checked.svg"
"then": "square:#28ba3d;./assets/layers/defibrillator/defibrillator.svg"
}
]
},
@ -670,4 +670,4 @@
"has_image",
"open_now"
]
}
}

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="375px"
height="375px"
viewBox="0 0 375 375"
version="1.1"
id="svg9"
sodipodi:docname="aed_checked.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
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="defs13" />
<sodipodi:namedview
id="namedview11"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="2.04"
inkscape:cx="187.7451"
inkscape:cy="187.5"
inkscape:window-width="1920"
inkscape:window-height="995"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="surface1" />
<g
id="surface1">
<path
style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;"
d="M 279.210938 32.8125 L 309.375 32.8125 L 309.375 63.179688 L 339.742188 63.179688 L 339.742188 93.34375 L 309.375 93.34375 L 309.375 123.710938 L 279.210938 123.710938 L 279.210938 93.34375 L 248.84375 93.34375 L 248.84375 63.179688 L 279.210938 63.179688 Z M 279.210938 32.8125 "
id="path4" />
<path
style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;"
d="M 96.808594 114.742188 C 57.675781 115.148438 22.621094 154.074219 33.21875 205.433594 C 41.167969 244.769531 82.949219 295.71875 155.707031 345.039062 C 228.464844 295.515625 270.246094 244.566406 278.191406 205.433594 C 288.789062 153.871094 253.941406 115.148438 214.605469 114.742188 C 194.429688 114.335938 169.15625 125.136719 155.707031 150.816406 C 142.253906 125.136719 116.984375 114.335938 96.808594 114.742188 Z M 187.09375 145.925781 L 152.851562 216.238281 L 196.261719 216.238281 L 120.246094 304.6875 L 149.59375 235.394531 L 107.40625 235.394531 Z M 187.09375 145.925781 "
id="path6" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -1,6 +1,6 @@
[
{
"path": "aed_checked.svg",
"path": "defibrillator.svg",
"license": "CC0",
"authors": [
"MaxxL"

View file

@ -521,7 +521,7 @@
"mapRendering": [
{
"icon": {
"render": "./assets/themes/bookcases/bookcase.svg"
"render": "circle:#ffffff;./assets/themes/bookcases/bookcase.svg"
},
"label": {
"mappings": [
@ -545,4 +545,4 @@
}
}
]
}
}

View file

@ -681,7 +681,7 @@
"mapRendering": [
{
"icon": {
"render": "./assets/layers/toilet/toilets.svg",
"render": "circle:#ffffff;./assets/layers/toilet/toilets.svg",
"mappings": [
{
"if": {
@ -761,4 +761,4 @@
]
}
]
}
}

View file

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="375px" height="375px" viewBox="0 0 375 375" version="1.1">
<g id="surface1">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 370.085938 188.761719 C 370.085938 290.742188 287.238281 373.410156 185.042969 373.410156 C 82.847656 373.410156 0 290.742188 0 188.761719 C 0 86.78125 82.847656 4.113281 185.042969 4.113281 C 287.238281 4.113281 370.085938 86.78125 370.085938 188.761719 Z M 370.085938 188.761719 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(45.09804%,29.019609%,3.137255%);fill-opacity:1;" d="M 172.925781 76.054688 L 172.925781 302.253906 L 197.160156 302.253906 L 197.160156 76.054688 Z M 112.335938 92.214844 C 98.953125 92.214844 88.101562 103.0625 88.101562 116.449219 C 88.101562 129.832031 98.953125 140.683594 112.335938 140.683594 C 125.722656 140.683594 136.570312 129.832031 136.570312 116.449219 C 136.570312 103.0625 125.722656 92.214844 112.335938 92.214844 Z M 257.75 92.214844 C 244.363281 92.214844 233.511719 103.0625 233.511719 116.449219 C 233.511719 129.832031 244.363281 140.683594 257.75 140.683594 C 271.132812 140.683594 281.984375 129.832031 281.984375 116.449219 C 281.984375 103.0625 271.132812 92.214844 257.75 92.214844 Z M 96.179688 156.839844 C 86.488281 156.839844 80.023438 166.027344 80.023438 172.996094 C 80.023438 181.515625 100.21875 197.179688 100.21875 205.3125 C 100.21875 214.292969 71.945312 221.46875 71.945312 253.78125 L 100.21875 253.78125 L 100.21875 302.253906 L 124.453125 302.253906 L 124.453125 253.78125 L 152.730469 253.78125 C 152.730469 221.46875 124.453125 213.867188 124.453125 205.3125 C 124.453125 196.757812 144.648438 181.90625 144.648438 172.996094 C 144.648438 166.414062 137.789062 156.839844 128.492188 156.839844 Z M 233.511719 156.839844 C 224.992188 156.839844 217.355469 164.605469 217.355469 172.996094 C 217.355469 189.15625 245.628906 237.882812 245.628906 253.78125 L 245.628906 302.253906 L 269.867188 302.253906 L 269.867188 253.78125 C 269.867188 238.199219 298.140625 189.15625 298.140625 172.996094 C 298.140625 164.058594 290.890625 156.839844 281.984375 156.839844 Z M 233.511719 156.839844 "/>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before After
Before After