#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Unify tool list and viewer bar icon colours; rename right sidebar header to PDF Tools (#8190)
Reece Browne2e305db4b664
diff --git a/frontend/editor/public/locales/en-US/translation.toml b/frontend/editor/public/locales/en-US/translation.tomlindex 20d894d64b..9641bf1cf3 100644--- a/frontend/editor/public/locales/en-US/translation.toml+++ b/frontend/editor/public/locales/en-US/translation.toml@@ -12385,7 +12385,7 @@ pdfTools = "PDF Tools"placeholder = "Choose a tool to get started"premiumFeature = "Premium feature:"searchTools = "Search tools"-toolsHeader = "Tools"+toolsHeader = "PDF Tools"viewAllTools = "View all tools"[toolPanel.fullscreen]diff --git a/frontend/editor/src/core/components/shared/WorkbenchBar.css b/frontend/editor/src/core/components/shared/WorkbenchBar.cssindex e5afb38181..b481864054 100644--- a/frontend/editor/src/core/components/shared/WorkbenchBar.css+++ b/frontend/editor/src/core/components/shared/WorkbenchBar.css@@ -262,6 +262,12 @@background: transparent !important;}+/* Dark mode: the quick-nav rail's selected-pill white, a step below full text+ * colour so hover still has somewhere brighter to go. */+[data-mantine-color-scheme="dark"] .workbench-bar-action-icon {+ color: color-mix(in srgb, var(--c-text) 80%, var(--c-surface)) !important;+}+.workbench-bar-action-icon svg,.workbench-bar-action-icon img {color: inherit !important;diff --git a/frontend/editor/src/core/components/tools/ToolPanel.tsx b/frontend/editor/src/core/components/tools/ToolPanel.tsxindex 0f04e2f2b2..aaf7b7269f 100644--- a/frontend/editor/src/core/components/tools/ToolPanel.tsx+++ b/frontend/editor/src/core/components/tools/ToolPanel.tsx@@ -97,7 +97,7 @@ export default function ToolPanel({!showSearch && (<div className="tool-panel__list-header"><span className="tool-panel__list-title">- {t("toolPanel.toolsHeader", "Tools")}+ {t("toolPanel.toolsHeader", "PDF Tools")}</span><ActionIconvariant="quiet"diff --git a/frontend/editor/src/core/components/tools/ToolPicker.tsx b/frontend/editor/src/core/components/tools/ToolPicker.tsxindex b3a48c386a..85c9b2961f 100644--- a/frontend/editor/src/core/components/tools/ToolPicker.tsx+++ b/frontend/editor/src/core/components/tools/ToolPicker.tsx@@ -156,7 +156,7 @@ const ToolPicker = ({/* Resting state: flat list of pinned + recommended only. */<Box className="tool-picker__compact"><div style={HEADER_TEXT_STYLE}>- {t("toolPanel.toolsHeader", "Tools")}+ {t("toolPanel.toolsHeader", "PDF Tools")}</div>{favoriteToolItems.length === 0 && recommendedItems.length === 0 ? (<NoToolsFound />diff --git a/frontend/editor/src/core/components/tools/toolPicker/ToolButton.tsx b/frontend/editor/src/core/components/tools/toolPicker/ToolButton.tsxindex 90f31bd58d..a38bc5df6c 100644--- a/frontend/editor/src/core/components/tools/toolPicker/ToolButton.tsx+++ b/frontend/editor/src/core/components/tools/toolPicker/ToolButton.tsx@@ -143,7 +143,11 @@ const ToolButton: React.FC<ToolButtonProps> = ({</div>);const buttonIcon = (- <ToolIcon icon={tool.icon} opacity={visuallyUnavailable ? 0.25 : 1} />+ <ToolIcon+ icon={tool.icon}+ color="var(--tool-button-fg)"+ opacity={visuallyUnavailable ? 0.25 : 1}+ />);const buttonContent = (<divdiff --git a/frontend/editor/src/core/components/tools/toolPicker/ToolPicker.css b/frontend/editor/src/core/components/tools/toolPicker/ToolPicker.cssindex 607c18e62a..ba0e94c604 100644--- a/frontend/editor/src/core/components/tools/toolPicker/ToolPicker.css+++ b/frontend/editor/src/core/components/tools/toolPicker/ToolPicker.css@@ -65,6 +65,12 @@so height = icon/label only and rows sit tight against each other. */.tool-button {font-size: 0.875rem;+ /* Shared by the row's icon and label; dark mode matches the viewer bar icons. */+ --tool-button-fg: var(--c-text-muted);+}++[data-mantine-color-scheme="dark"] .tool-button {+ --tool-button-fg: color-mix(in srgb, var(--c-text) 80%, var(--c-surface));}.tool-button.sui-btn.mantine-Button-root {@@ -74,6 +80,7 @@.tool-button .mantine-Button-label {font-size: 0.84rem;font-weight: 500;+ color: var(--tool-button-fg);/* ≥1.4 so the overflow:hidden label box contains glyph descenders (g/y/p);row height is icon-bound (~24px) so this doesn't change row size. */line-height: 1.4;