Skip to content

Build your personal knowledge base with Trilium Notes

refactor(text): take the icon button's glyph from boxicons

Elian Dorana5d1ef04964b
diff --git a/packages/ckeditor5/src/icons/insert-icon.svg b/packages/ckeditor5/src/icons/insert-icon.svg
deleted file mode 100644
index 291c3494e0..0000000000
--- a/packages/ckeditor5/src/icons/insert-icon.svg
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- `bx-sticker` from Boxicons (https://boxicons.com), licensed under MIT. -->
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.796 9.982C20.849 5.357 16.729 2 12 2 6.486 2 2 6.486 2 12c0 4.729 3.357 8.849 7.982 9.796a.988.988 0 0 0 .908-.272l10.633-10.633c.238-.238.34-.578.273-.909zM11 18a7.93 7.93 0 0 1 1.365-4.471 8.18 8.18 0 0 1 .978-1.186 8.211 8.211 0 0 1 1.184-.977 8.128 8.128 0 0 1 1.36-.738c.481-.203.986-.36 1.501-.466a8.112 8.112 0 0 1 2.17-.134l-8.529 8.529c-.013-.185-.029-.37-.029-.557zm-7-6c0-4.411 3.589-8 8-8 2.909 0 5.528 1.589 6.929 4.005a9.99 9.99 0 0 0-1.943.198c-.643.132-1.274.328-1.879.583a10.15 10.15 0 0 0-1.699.923c-.533.361-1.03.771-1.479 1.22s-.858.945-1.221 1.48c-.359.533-.67 1.104-.922 1.698A10.013 10.013 0 0 0 9 18c0 .491.048.979.119 1.461C6.089 18.288 4 15.336 4 12z"/></svg>
diff --git a/packages/ckeditor5/src/plugins/inline_icon/inline_icon_ui.ts b/packages/ckeditor5/src/plugins/inline_icon/inline_icon_ui.ts
index d0f7e5512f..218a69727a 100644
--- a/packages/ckeditor5/src/plugins/inline_icon/inline_icon_ui.ts
+++ b/packages/ckeditor5/src/plugins/inline_icon/inline_icon_ui.ts
@@ -1,9 +1,9 @@
+import bxSticker from "boxicons/svg/regular/bx-sticker.svg?raw";
import {
ButtonView, clickOutsideHandler, type Command, ContextualBalloon, type Editor,
KeystrokeHandler, type Locale, Plugin, View, type ViewRange
} from "ckeditor5";
-import insertIconIcon from "../../icons/insert-icon.svg?raw";
import { INSERT_ICON_COMMAND } from "./inline_icon_editing.js";
/**
@@ -41,7 +41,7 @@ export default class InlineIconUI extends Plugin {
view.set({
label: t("Insert icon"),
- icon: insertIconIcon,
+ icon: bxSticker,
tooltip: true
});
diff --git a/packages/ckeditor5/src/plugins/mention/slash_commands.ts b/packages/ckeditor5/src/plugins/mention/slash_commands.ts
index 0d6e9cf804..beab1097a5 100644
--- a/packages/ckeditor5/src/plugins/mention/slash_commands.ts
+++ b/packages/ckeditor5/src/plugins/mention/slash_commands.ts
@@ -31,11 +31,11 @@ import bxError from "boxicons/svg/regular/bx-error.svg?raw";
import bxErrorCircle from "boxicons/svg/regular/bx-error-circle.svg?raw";
import bxInfoCircle from "boxicons/svg/regular/bx-info-circle.svg?raw";
import bxNetworkChart from "boxicons/svg/regular/bx-network-chart.svg?raw";
+import bxSticker from "boxicons/svg/regular/bx-sticker.svg?raw";
import { BookmarkUI, type Editor, type MentionFeedObjectItem, Plugin } from "ckeditor5";
import collapsibleIcon from "../../icons/collapsible.svg?raw";
import dateTimeIcon from "../../icons/date-time.svg?raw";
-import insertIconIcon from "../../icons/insert-icon.svg?raw";
import insertFootnoteIcon from "../../icons/insert-footnote.svg?raw";
import importMarkdownIcon from "../../icons/markdown-mark.svg?raw";
import mathIcon from "../../icons/math.svg?raw";
@@ -401,7 +401,7 @@ export function buildTriliumSlashCommands(editor: Editor): SlashCommandDefinitio
title: t("Icon"),
description: t("Insert an icon from an installed icon pack"),
aliases: [ "symbol", "glyph" ],
- icon: insertIconIcon,
+ icon: bxSticker,
commandName: INSERT_ICON_COMMAND,
// Deferred for the reason the anchor entry below is: the picker opens in a balloon
// placed at the caret, and the palette has not finished putting the selection back