forked from MapComplete/MapComplete
Themes: add 'link' as builtin, available Icon
This commit is contained in:
parent
f8644dd4ad
commit
7872f22151
2 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,7 @@ export default class Constants {
|
||||||
"close",
|
"close",
|
||||||
"heart",
|
"heart",
|
||||||
"heart_outline",
|
"heart_outline",
|
||||||
|
"link",
|
||||||
] as const
|
] as const
|
||||||
public static readonly defaultPinIcons: string[] = <any>Constants._defaultPinIcons
|
public static readonly defaultPinIcons: string[] = <any>Constants._defaultPinIcons
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
import Mastodon from "../../assets/svg/Mastodon.svelte"
|
import Mastodon from "../../assets/svg/Mastodon.svelte"
|
||||||
import Party from "../../assets/svg/Party.svelte"
|
import Party from "../../assets/svg/Party.svelte"
|
||||||
import AddSmall from "../../assets/svg/AddSmall.svelte"
|
import AddSmall from "../../assets/svg/AddSmall.svelte"
|
||||||
|
import { LinkIcon } from "@babeard/svelte-heroicons/mini"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a single icon.
|
* Renders a single icon.
|
||||||
|
@ -114,6 +115,8 @@
|
||||||
<Party {color} class={clss} />
|
<Party {color} class={clss} />
|
||||||
{:else if icon === "addSmall"}
|
{:else if icon === "addSmall"}
|
||||||
<AddSmall {color} class={clss} />
|
<AddSmall {color} class={clss} />
|
||||||
|
{:else if icon === "link"}
|
||||||
|
<LinkIcon class={clss}/>
|
||||||
{:else}
|
{:else}
|
||||||
<img class={clss ?? "h-full w-full"} src={icon} aria-hidden="true" alt="" />
|
<img class={clss ?? "h-full w-full"} src={icon} aria-hidden="true" alt="" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue