forked from MapComplete/MapComplete
Themes: add 'lock' and 'key' icon to toilets, fix #2094
This commit is contained in:
parent
1485ea9d36
commit
577b596e7a
3 changed files with 26 additions and 0 deletions
|
@ -51,6 +51,23 @@
|
||||||
{
|
{
|
||||||
"if": "opening_hours~*",
|
"if": "opening_hours~*",
|
||||||
"then": "icons.isOpen"
|
"then": "icons.isOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": {
|
||||||
|
"or": [
|
||||||
|
"access=no",
|
||||||
|
"access=private"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"then": "lock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "access=key",
|
||||||
|
"then": "key"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "access=customers",
|
||||||
|
"then": "key:gray"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"location": [
|
"location": [
|
||||||
|
@ -203,6 +220,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"if": "access=no",
|
"if": "access=no",
|
||||||
|
"alsoShowIf": "access=private",
|
||||||
"then": {
|
"then": {
|
||||||
"en": "Not accessible",
|
"en": "Not accessible",
|
||||||
"de": "Der Zugang ist nicht erlaubt oder nicht möglich",
|
"de": "Der Zugang ist nicht erlaubt oder nicht möglich",
|
||||||
|
|
|
@ -141,12 +141,14 @@ export default class Constants {
|
||||||
"help",
|
"help",
|
||||||
"help",
|
"help",
|
||||||
"home",
|
"home",
|
||||||
|
"key",
|
||||||
"invalid",
|
"invalid",
|
||||||
"invalid",
|
"invalid",
|
||||||
"link",
|
"link",
|
||||||
"location",
|
"location",
|
||||||
"location_empty",
|
"location_empty",
|
||||||
"location_locked",
|
"location_locked",
|
||||||
|
"lock",
|
||||||
"mastodon",
|
"mastodon",
|
||||||
"not_found",
|
"not_found",
|
||||||
"note",
|
"note",
|
||||||
|
|
|
@ -39,6 +39,8 @@
|
||||||
import Gear from "../../assets/svg/Gear.svelte"
|
import Gear from "../../assets/svg/Gear.svelte"
|
||||||
import { DesktopComputerIcon, UserCircleIcon } from "@rgossiaux/svelte-heroicons/solid"
|
import { DesktopComputerIcon, UserCircleIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||||
import Relocation from "../../assets/svg/Relocation.svelte"
|
import Relocation from "../../assets/svg/Relocation.svelte"
|
||||||
|
import LockClosed from "@babeard/svelte-heroicons/solid/LockClosed"
|
||||||
|
import Key from "@babeard/svelte-heroicons/solid/Key"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a single icon.
|
* Renders a single icon.
|
||||||
|
@ -146,6 +148,10 @@
|
||||||
<PencilIcon class={clss} {color} />
|
<PencilIcon class={clss} {color} />
|
||||||
{:else if icon === "user_circle"}
|
{:else if icon === "user_circle"}
|
||||||
<UserCircleIcon class={clss} {color} />
|
<UserCircleIcon class={clss} {color} />
|
||||||
|
{:else if icon === "lock"}
|
||||||
|
<LockClosed class={clss} {color} />
|
||||||
|
{:else if icon === "key"}
|
||||||
|
<Key class={clss} {color} />
|
||||||
{:else if Utils.isEmoji(icon)}
|
{:else if Utils.isEmoji(icon)}
|
||||||
<span style={`font-size: ${emojiHeight}; line-height: ${emojiHeight}`}>
|
<span style={`font-size: ${emojiHeight}; line-height: ${emojiHeight}`}>
|
||||||
{icon}
|
{icon}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue