From 8fc822a6e7d5d1ba3b822773b7a1e76ea399186d Mon Sep 17 00:00:00 2001
From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com>
Date: Sun, 16 Feb 2025 15:24:11 +0000
Subject: [PATCH] Use tilted (filled and unfilled) sticky icons in the cards
editor (#3825)
* Update icons.ts to include hollow and solid icons
* Update icons.ts
* Create sticky-pin-hollow.svg
* Create sticky-pin-solid.svg
* Update StickyBadge.svelte to reflect changed icons
---
ts/editor/StickyBadge.svelte | 12 ++++++++----
ts/icons/sticky-pin-hollow.svg | 1 +
ts/icons/sticky-pin-solid.svg | 1 +
ts/lib/components/icons.ts | 9 ++++++---
4 files changed, 16 insertions(+), 7 deletions(-)
create mode 100644 ts/icons/sticky-pin-hollow.svg
create mode 100644 ts/icons/sticky-pin-solid.svg
diff --git a/ts/editor/StickyBadge.svelte b/ts/editor/StickyBadge.svelte
index 96b0a531845..596678f3015 100644
--- a/ts/editor/StickyBadge.svelte
+++ b/ts/editor/StickyBadge.svelte
@@ -11,7 +11,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import Badge from "$lib/components/Badge.svelte";
import Icon from "$lib/components/Icon.svelte";
- import { stickyIcon } from "$lib/components/icons";
+ import { stickyIconHollow } from "$lib/components/icons";
+ import { stickyIconSolid } from "$lib/components/icons";
import { context as editorFieldContext } from "./EditorField.svelte";
@@ -51,9 +52,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-
+ >
+ {#if active}
+
+ {:else}
+
+ {/if}