forked from MapComplete/MapComplete
Small improvements to fritures theme: add vegetarian and opening hours indicators
This commit is contained in:
parent
e09dfbf3f7
commit
58812b50f2
4 changed files with 73 additions and 1 deletions
|
@ -2,7 +2,7 @@ import { Utils } from "../Utils";
|
|||
|
||||
export default class Constants {
|
||||
|
||||
public static vNumber = "0.8.1";
|
||||
public static vNumber = "0.8.2";
|
||||
|
||||
// The user journey states thresholds when a new feature gets unlocked
|
||||
public static userJourney = {
|
||||
|
|
31
assets/themes/fritures/Vegetarian-mark.svg
Normal file
31
assets/themes/fritures/Vegetarian-mark.svg
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<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"
|
||||
version="1.0"
|
||||
width="340pt"
|
||||
height="362pt"
|
||||
viewBox="0 0 340 362">
|
||||
<title>Vegetarian mark</title>
|
||||
<metadata>
|
||||
<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>Vegetarian mark</dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="matrix(0.1,0,0,-0.1,0,362)"
|
||||
style="fill:#000000;stroke:none">
|
||||
<path
|
||||
d="m 3190,3550 c -80,-21 -249,-59 -375,-84 -321,-63 -372,-82 -515,-188 -203,-151 -345,-443 -344,-708 1,-101 16,-173 33,-154 4,5 18,34 30,64 61,147 238,371 389,492 77,62 232,123 232,91 0,-11 -53,-77 -116,-143 -59,-63 -79,-89 -190,-250 -115,-169 -265,-471 -366,-740 -98,-261 -170,-469 -218,-625 -81,-267 -154,-478 -167,-482 -16,-6 -60,137 -152,492 -143,556 -204,747 -350,1095 -100,237 -232,427 -500,718 -147,161 -356,315 -482,357 -82,28 -89,14 -27,-55 292,-329 461,-573 640,-920 151,-295 255,-588 444,-1260 48,-172 154,-610 188,-780 38,-189 80,-374 91,-403 4,-9 19,-21 34,-25 34,-9 198,-9 233,0 52,15 62,56 134,528 48,319 89,510 171,795 139,486 287,842 377,900 13,8 77,24 144,35 260,43 469,158 617,341 99,122 125,212 150,512 13,159 21,204 51,299 19,62 32,118 30,125 -7,18 -23,16 -186,-27 z"
|
||||
style="fill:#017f00" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
|
@ -59,6 +59,18 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"titleIcons": [
|
||||
{
|
||||
"condition": {
|
||||
"or": [
|
||||
"diet:vegetarian=yes",
|
||||
"diet:vegan=yes"
|
||||
]
|
||||
},
|
||||
"render": "<img src='./assets/themes/fritures/Vegetarian-mark.svg'/>"
|
||||
},
|
||||
"defaults"
|
||||
],
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
{
|
||||
|
@ -278,6 +290,25 @@
|
|||
"icon": {
|
||||
"render": "./assets/themes/fritures/fries.svg"
|
||||
},
|
||||
"iconOverlays": [
|
||||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen",
|
||||
"badge": true
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"or": [
|
||||
"diet:vegetarian=yes",
|
||||
"diet:vegan=yes"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"render": "circle:white;./assets/themes/fritures/Vegetarian-mark.svg"
|
||||
},
|
||||
"badge": true
|
||||
}
|
||||
],
|
||||
"width": {
|
||||
"render": "8"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,14 @@
|
|||
[
|
||||
{
|
||||
"authors": [
|
||||
"European Vegetarian Union"
|
||||
],
|
||||
"path": "Vegetarian-mark.svg",
|
||||
"license": "PD",
|
||||
"sources": [
|
||||
"https://commons.wikimedia.org/wiki/File:Vegetarian-mark.svg"
|
||||
]
|
||||
},
|
||||
{
|
||||
"authors": [
|
||||
"Freepik"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue