+
+ (hovered = true)}
+ on:mouseleave={() => (hovered = false)}
+ >
+
+
+
diff --git a/ts/editor/NoteCreator.svelte b/ts/editor/NoteCreator.svelte
index 3ada91086..064c78180 100644
--- a/ts/editor/NoteCreator.svelte
+++ b/ts/editor/NoteCreator.svelte
@@ -45,7 +45,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-
+
+
diff --git a/ts/editor/NoteEditor.svelte b/ts/editor/NoteEditor.svelte
index 29ea40f07..9f942f3ba 100644
--- a/ts/editor/NoteEditor.svelte
+++ b/ts/editor/NoteEditor.svelte
@@ -5,12 +5,17 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-
-
- {@html icon}
-
-
-
diff --git a/ts/editor/StickyBadge.svelte b/ts/editor/StickyBadge.svelte
index 0b264c6c8..a8f038aea 100644
--- a/ts/editor/StickyBadge.svelte
+++ b/ts/editor/StickyBadge.svelte
@@ -10,11 +10,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import * as tr from "../lib/ftl";
import { getPlatformString, registerShortcut } from "../lib/shortcuts";
import { context as editorFieldContext } from "./EditorField.svelte";
- import { stickyOff, stickyOn } from "./icons";
+ import { stickyIcon } from "./icons";
export let active: boolean;
-
- $: icon = active ? stickyOn : stickyOff;
+ export let visible: boolean;
const editorField = editorFieldContext.get();
const keyCombination = "F9";
@@ -34,23 +33,26 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
onMount(() => editorField.element.then(shortcut));
-
+
{@html icon}{@html stickyIcon}
diff --git a/ts/editor/icons.ts b/ts/editor/icons.ts
index 701483237..018bb7071 100644
--- a/ts/editor/icons.ts
+++ b/ts/editor/icons.ts
@@ -5,10 +5,9 @@
export { default as incrementClozeIcon } from "../icons/contain-plus.svg";
export { default as alertIcon } from "@mdi/svg/svg/alert.svg";
-export { default as htmlOn } from "@mdi/svg/svg/code-tags.svg";
+export { default as chevronDown } from "@mdi/svg/svg/chevron-down.svg";
+export { default as chevronUp } from "@mdi/svg/svg/chevron-up.svg";
+export { default as plainTextIcon } from "@mdi/svg/svg/code-tags.svg";
export { default as clozeIcon } from "@mdi/svg/svg/contain.svg";
-export { default as richTextOff } from "@mdi/svg/svg/eye-off-outline.svg";
-export { default as richTextOn } from "@mdi/svg/svg/eye-outline.svg";
-export { default as stickyOff } from "@mdi/svg/svg/pin-off-outline.svg";
-export { default as stickyOn } from "@mdi/svg/svg/pin-outline.svg";
-export { default as htmlOff } from "@mdi/svg/svg/xml.svg";
+export { default as richTextIcon } from "@mdi/svg/svg/format-font.svg";
+export { default as stickyIcon } from "@mdi/svg/svg/pin-outline.svg";
diff --git a/ts/editor/plain-text-input/PlainTextInput.svelte b/ts/editor/plain-text-input/PlainTextInput.svelte
index 4a28b7185..67d4f8049 100644
--- a/ts/editor/plain-text-input/PlainTextInput.svelte
+++ b/ts/editor/plain-text-input/PlainTextInput.svelte
@@ -143,7 +143,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
($focusedInput = api)}
>
diff --git a/ts/editor/rich-text-input/RichTextInput.svelte b/ts/editor/rich-text-input/RichTextInput.svelte
index 35b952b94..c04813c95 100644
--- a/ts/editor/rich-text-input/RichTextInput.svelte
+++ b/ts/editor/rich-text-input/RichTextInput.svelte
@@ -211,7 +211,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
setupLifecycleHooks(api);
-