Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Use the paint roller icon for the format painter https://github.com/siyuan-note/siyuan/issues/12732

Daniel43c30cc75a40
diff --git a/app/src/protyle/toolbar/FormatPainter.ts b/app/src/protyle/toolbar/FormatPainter.ts
index 87ce36bf31..e90df1d3b9 100644
--- a/app/src/protyle/toolbar/FormatPainter.ts
+++ b/app/src/protyle/toolbar/FormatPainter.ts
@@ -163,7 +163,7 @@ class FormatPainterController {
element = document.createElement("button");
element.id = "statusFormatPainter";
element.className = "toolbar__item ariaLabel status__format-painter";
- element.innerHTML = '<svg><use xlink:href="#iconFormat"></use></svg>';
+ element.innerHTML = '<svg><use xlink:href="#iconPaintRoller"></use></svg>';
element.addEventListener("click", () => this.deactivate());
const helpElement = statusElement.querySelector("#statusHelp");
if (helpElement) {
@@ -188,7 +188,7 @@ export class FormatPainter {
this.element.setAttribute("data-type", menuItem.name);
this.element.setAttribute("data-menu", "true");
this.element.setAttribute("aria-label", window.siyuan.languages.formatPainter);
- this.element.innerHTML = '<svg><use xlink:href="#iconFormat"></use></svg>';
+ this.element.innerHTML = '<svg><use xlink:href="#iconPaintRoller"></use></svg>';
this.element.addEventListener("mousedown", event => event.preventDefault());
this.element.addEventListener("click", event => {
event.preventDefault();
diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts
index 9c9cc00e55..4ccdc99888 100644
--- a/app/src/protyle/toolbar/util.ts
+++ b/app/src/protyle/toolbar/util.ts
@@ -245,7 +245,7 @@ export const toolbarKeyToMenu = (toolbar: Array<string | IMenuItem>) => {
}, {
name: "format-painter",
lang: "formatPainter",
- icon: "iconFormat",
+ icon: "iconPaintRoller",
tipPosition: "n",
}, {
name: "|",