Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Redraw QR code, automate, redact and replace-text icons; outline active quick access bar icons (#8362)

EthanHealy01973bff865cc1
diff --git a/frontend/editor/src/core/components/shared/quickNav/QuickNavRailHost.tsx b/frontend/editor/src/core/components/shared/quickNav/QuickNavRailHost.tsx
index 085af04ccd..385c9dca18 100644
--- a/frontend/editor/src/core/components/shared/quickNav/QuickNavRailHost.tsx
+++ b/frontend/editor/src/core/components/shared/quickNav/QuickNavRailHost.tsx
@@ -112,7 +112,7 @@ export function QuickNavRailHost() {
const editor: QuickNavEntry = {
id: "editor",
label: t("quickNav.editor", "Editor"),
- icon: <Icon name="pencil" size={SIZE} filled={inEditor} />,
+ icon: <Icon name="pencil" size={SIZE} />,
// The library and reading are places of their own, not the editor with a
// different centre.
current:
@@ -133,7 +133,7 @@ export function QuickNavRailHost() {
const processor: QuickNavEntry = {
id: "processor",
label: t("quickNav.processor", "Processor"),
- icon: <Icon name="cpu" size={SIZE} filled={inPortal} />,
+ icon: <Icon name="cpu" size={SIZE} />,
current: inPortal,
disabled:
HAS_PORTAL && !inPortal && !host?.portalAccess && !host?.isAnonymous,
diff --git a/frontend/editor/src/core/components/viewer/CommentsSidebar.tsx b/frontend/editor/src/core/components/viewer/CommentsSidebar.tsx
index 9ba984521c..e42fc7e272 100644
--- a/frontend/editor/src/core/components/viewer/CommentsSidebar.tsx
+++ b/frontend/editor/src/core/components/viewer/CommentsSidebar.tsx
@@ -165,7 +165,7 @@ const TOOL_ICON_MAP: Record<string, IconName> = {
stamp: "image-plus",
textComment: "message-square",
insertText: "message-square-plus",
- replaceText: "replace",
+ replaceText: "replace-text",
};
// Type-based fallback icon when no toolId is present
diff --git a/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx b/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
index a42a881af4..3f6d575e30 100644
--- a/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
+++ b/frontend/editor/src/core/data/useTranslatedToolRegistry.tsx
@@ -884,7 +884,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
// Automation
automate: {
- icon: <Icon name="waypoints" size="1.5rem" />,
+ icon: <Icon name="automate" size="1.5rem" />,
name: t("home.automate.title", "Automate"),
component: lazy(() => import("@app/tools/Automate")),
description: t(
@@ -1223,7 +1223,7 @@ export function useTranslatedToolCatalog(): TranslatedToolCatalog {
synonyms: getSynonyms(t, "ocr"),
},
redact: {
- icon: <Icon name="eye-off" size="1.5rem" />,
+ icon: <Icon name="redact" size="1.5rem" />,
name: t("home.redact.title", "Redact"),
component: lazy(() => import("@app/tools/Redact")),
description: t(
diff --git a/frontend/editor/src/core/icons/LICENSE-lucide.txt b/frontend/editor/src/core/icons/LICENSE-lucide.txt
index aa6d8c596b..d5be8baca5 100644
--- a/frontend/editor/src/core/icons/LICENSE-lucide.txt
+++ b/frontend/editor/src/core/icons/LICENSE-lucide.txt
@@ -64,6 +64,29 @@ Lucide icon geometry used in this project. Two places rely on this notice:
(from lucide "chart-line" with its axis dropped and the
zigzag scaled about its centre to fill the box)
+ qr-code.svg the three finder rect 7x7 at 3,3 rx 1
+ squares rect 7x7 at 14,3 rx 1
+ rect 7x7 at 3,14 rx 1
+ (from lucide "layout-grid"; the finder centres and the
+ data modules are ours)
+
+ replace-text.svg
+ the speech bubble M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0
+ -1.414.586l-2.202 2.202A.71.71 0 0 1
+ 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1
+ 2 2z
+ (from lucide "message-square", the bubble the other
+ comment tools use; the swap arrows are ours)
+
+ automate.svg the step box rect 8x8 at 3,3 rx 2
+ the elbow M7 11v4a2 2 0 0 0 2 2h5
+ the play button lucide "play" scaled to half size:
+ M14 13.5a1 1 0 0 1 1.504-.864l5.999
+ 3.499a1 1 0 0 1 .001 1.729l-6 3.5A1 1 0
+ 0 1 14 20.5z
+ (box and elbow from lucide "workflow", the Pipelines icon,
+ with the elbow run on to meet the play button)
+
None of the source icons appears in the Feather-derived list below, so only the
ISC terms apply to them. Keep this file for as long as any of those svgs, or the
icons.ts maps, remains. task frontend:lint:icons fails if it goes missing.
diff --git a/frontend/editor/src/core/icons/icons.ts b/frontend/editor/src/core/icons/icons.ts
index 72e74f14ed..35ff991a7e 100644
--- a/frontend/editor/src/core/icons/icons.ts
+++ b/frontend/editor/src/core/icons/icons.ts
@@ -232,14 +232,12 @@ import Power from "lucide-static/icons/power.svg?react";
import Presentation from "lucide-static/icons/presentation.svg?react";
import Printer from "lucide-static/icons/printer.svg?react";
import Puzzle from "lucide-static/icons/puzzle.svg?react";
-import QrCode from "lucide-static/icons/qr-code.svg?react";
import Receipt from "lucide-static/icons/receipt.svg?react";
import ReceiptText from "lucide-static/icons/receipt-text.svg?react";
import Recycle from "lucide-static/icons/recycle.svg?react";
import Redo2 from "lucide-static/icons/redo-2.svg?react";
import RefreshCw from "lucide-static/icons/refresh-cw.svg?react";
import RefreshCwOff from "lucide-static/icons/refresh-cw-off.svg?react";
-import Replace from "lucide-static/icons/replace.svg?react";
import Rocket from "lucide-static/icons/rocket.svg?react";
import RotateCcw from "lucide-static/icons/rotate-ccw.svg?react";
import RotateCcwClock from "lucide-static/icons/rotate-ccw-clock.svg?react";
@@ -337,7 +335,6 @@ import Volume2 from "lucide-static/icons/volume-2.svg?react";
import Wallet from "lucide-static/icons/wallet.svg?react";
import WalletCards from "lucide-static/icons/wallet-cards.svg?react";
import Warehouse from "lucide-static/icons/warehouse.svg?react";
-import Waypoints from "lucide-static/icons/waypoints.svg?react";
import WholeWord from "lucide-static/icons/whole-word.svg?react";
import Workflow from "lucide-static/icons/workflow.svg?react";
import Webhook from "lucide-static/icons/webhook.svg?react";
@@ -349,6 +346,7 @@ import ZoomOut from "lucide-static/icons/zoom-out.svg?react";
import AnnotationOff from "@app/icons/svg/stirling/annotation-off.svg?react";
import Api from "@app/icons/svg/stirling/api.svg?react";
+import Automate from "@app/icons/svg/stirling/automate.svg?react";
import Cpu from "@app/icons/svg/stirling/cpu.svg?react";
import Editor from "@app/icons/svg/stirling/editor.svg?react";
import FileConvert from "@app/icons/svg/stirling/file-convert.svg?react";
@@ -369,8 +367,11 @@ import MoveItemDown from "@app/icons/svg/stirling/move-item-down.svg?react";
import OverlayPages from "@app/icons/svg/stirling/overlay-pages.svg?react";
import Password from "@app/icons/svg/stirling/password.svg?react";
import Polyline from "@app/icons/svg/stirling/polyline.svg?react";
+import QrCode from "@app/icons/svg/stirling/qr-code.svg?react";
+import Redact from "@app/icons/svg/stirling/redact.svg?react";
import RadioChecked from "@app/icons/svg/stirling/radio-checked.svg?react";
import RemoveSelection from "@app/icons/svg/stirling/remove-selection.svg?react";
+import ReplaceText from "@app/icons/svg/stirling/replace-text.svg?react";
import SelectAll from "@app/icons/svg/stirling/select-all.svg?react";
import Sftp from "@app/icons/svg/stirling/sftp.svg?react";
import SinglePage from "@app/icons/svg/stirling/single-page.svg?react";
@@ -659,14 +660,12 @@ export const ICONS = {
presentation: { Component: Presentation, kind: "lucide" },
printer: { Component: Printer, kind: "lucide" },
puzzle: { Component: Puzzle, kind: "lucide" },
- "qr-code": { Component: QrCode, kind: "lucide" },
receipt: { Component: Receipt, kind: "lucide" },
"receipt-text": { Component: ReceiptText, kind: "lucide" },
recycle: { Component: Recycle, kind: "lucide" },
"redo-2": { Component: Redo2, kind: "lucide" },
"refresh-cw": { Component: RefreshCw, kind: "lucide" },
"refresh-cw-off": { Component: RefreshCwOff, kind: "lucide" },
- replace: { Component: Replace, kind: "lucide" },
rocket: { Component: Rocket, kind: "lucide" },
"rotate-ccw": { Component: RotateCcw, kind: "lucide" },
"rotate-ccw-clock": { Component: RotateCcwClock, kind: "lucide" },
@@ -764,7 +763,6 @@ export const ICONS = {
wallet: { Component: Wallet, kind: "lucide" },
"wallet-cards": { Component: WalletCards, kind: "lucide" },
warehouse: { Component: Warehouse, kind: "lucide" },
- waypoints: { Component: Waypoints, kind: "lucide" },
"whole-word": { Component: WholeWord, kind: "lucide" },
workflow: { Component: Workflow, kind: "lucide" },
webhook: { Component: Webhook, kind: "lucide" },
@@ -775,6 +773,7 @@ export const ICONS = {
"zoom-out": { Component: ZoomOut, kind: "lucide" },
"annotation-off": { Component: AnnotationOff, kind: "stirling" },
api: { Component: Api, kind: "stirling" },
+ automate: { Component: Automate, kind: "stirling" },
cpu: { Component: Cpu, kind: "stirling" },
editor: { Component: Editor, kind: "stirling" },
"file-convert": { Component: FileConvert, kind: "stirling" },
@@ -795,8 +794,11 @@ export const ICONS = {
"overlay-pages": { Component: OverlayPages, kind: "stirling" },
password: { Component: Password, kind: "stirling" },
polyline: { Component: Polyline, kind: "stirling" },
+ "qr-code": { Component: QrCode, kind: "stirling" },
+ redact: { Component: Redact, kind: "stirling" },
"radio-checked": { Component: RadioChecked, kind: "stirling" },
"remove-selection": { Component: RemoveSelection, kind: "stirling" },
+ "replace-text": { Component: ReplaceText, kind: "stirling" },
"select-all": { Component: SelectAll, kind: "stirling" },
sftp: { Component: Sftp, kind: "stirling" },
"single-page": { Component: SinglePage, kind: "stirling" },
diff --git a/frontend/editor/src/core/icons/svg/stirling/automate.svg b/frontend/editor/src/core/icons/svg/stirling/automate.svg
new file mode 100644
index 0000000000..bef642f979
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/automate.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The step box, elbow and play button are Lucide geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <rect width="8" height="8" x="3" y="3" rx="2" />
+ <path d="M7 11v4a2 2 0 0 0 2 2h5" />
+ <path d="M14 13.5a1 1 0 0 1 1.504-.864l5.999 3.499a1 1 0 0 1 .001 1.729l-6 3.5A1 1 0 0 1 14 20.5z" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/qr-code.svg b/frontend/editor/src/core/icons/svg/stirling/qr-code.svg
new file mode 100644
index 0000000000..1f7a9187e6
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/qr-code.svg
@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The three finder squares are Lucide geometry (ISC). Full notice and the exact shapes:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <rect x="3" y="3" width="7" height="7" rx="1" />
+ <rect x="14" y="3" width="7" height="7" rx="1" />
+ <rect x="3" y="14" width="7" height="7" rx="1" />
+ <rect x="5.75" y="5.75" width="1.5" height="1.5" />
+ <rect x="16.75" y="5.75" width="1.5" height="1.5" />
+ <rect x="5.75" y="16.75" width="1.5" height="1.5" />
+ <rect x="14" y="14" width="1" height="1" />
+ <rect x="20" y="14" width="1" height="1" />
+ <rect x="17" y="17" width="1" height="1" />
+ <rect x="14" y="20" width="1" height="1" />
+ <rect x="20" y="20" width="1" height="1" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/redact.svg b/frontend/editor/src/core/icons/svg/stirling/redact.svg
new file mode 100644
index 0000000000..a66a202b28
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/redact.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- Blocks are more than twice the stroke height and every row gap is equal, so a hidden run reads as solid mass beside the text, not a heavier line. -->
+ <path d="M2.875 5.5H12.458" />
+ <rect x="15.333" y="3.5" width="6.667" height="4" rx="1" fill="currentColor" stroke="none" />
+ <rect x="2" y="10" width="20" height="4" rx="1" fill="currentColor" stroke="none" />
+ <rect x="2" y="16.5" width="9" height="4" rx="1" fill="currentColor" stroke="none" />
+ <path d="M13.875 18.5H21.125" />
+</svg>
diff --git a/frontend/editor/src/core/icons/svg/stirling/replace-text.svg b/frontend/editor/src/core/icons/svg/stirling/replace-text.svg
new file mode 100644
index 0000000000..a95d5490c5
--- /dev/null
+++ b/frontend/editor/src/core/icons/svg/stirling/replace-text.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
+ <!-- The speech bubble is Lucide geometry (ISC). Full notice and the exact paths:
+ src/core/icons/LICENSE-lucide.txt, which must stay with this file. -->
+ <path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />
+ <path d="M7 9h10" />
+ <path d="m15 7 2 2-2 2" />
+ <path d="M17 13H7" />
+ <path d="m9 11-2 2 2 2" />
+</svg>
diff --git a/frontend/editor/src/core/pages/HomePage.tsx b/frontend/editor/src/core/pages/HomePage.tsx
index 4eb8fdcf32..107b35d624 100644
--- a/frontend/editor/src/core/pages/HomePage.tsx
+++ b/frontend/editor/src/core/pages/HomePage.tsx
@@ -665,7 +665,7 @@ export default function HomePage() {
}
}}
>
- <Icon name="waypoints" size="1.5rem" />
+ <Icon name="automate" size="1.5rem" />
<span className="mobile-bottom-button-label">
{t("quickAccess.automate", "Automate")}
</span>
diff --git a/frontend/editor/src/core/tools/annotate/AnnotationPanel.tsx b/frontend/editor/src/core/tools/annotate/AnnotationPanel.tsx
index 2712fafbd0..86d75a6b4e 100644
--- a/frontend/editor/src/core/tools/annotate/AnnotationPanel.tsx
+++ b/frontend/editor/src/core/tools/annotate/AnnotationPanel.tsx
@@ -305,7 +305,7 @@ export function AnnotationPanel(props: AnnotationPanelProps) {
{
id: "replaceText",
label: t("annotation.replaceText", "Replace Text"),
- icon: "replace",
+ icon: "replace-text",
},
];