Skip to content

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

:art: New default appearance icon https://github.com/siyuan-note/siyuan/issues/7976

Daniel935b0e7752e7
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.html
index f29aa867ef..35c83564f5 100644
--- a/app/appearance/icons/index.html
+++ b/app/appearance/icons/index.html
@@ -28,6 +28,12 @@
<body>
<h2>SiYuan</h2>
<div class="fn__clear">
+ <div>
+ <svg>
+ <use xlink:href="#iconSelectAll"></use>
+ </svg>
+ iconSelectAll
+ </div>
<div>
<svg>
<use xlink:href="#iconUploadAssets"></use>
diff --git a/app/appearance/icons/litheness/icon.js b/app/appearance/icons/litheness/icon.js
index 9aaf0134e2..bac2405ade 100644
--- a/app/appearance/icons/litheness/icon.js
+++ b/app/appearance/icons/litheness/icon.js
@@ -1,5 +1,8 @@
document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsLitheness" style="position: absolute; width: 0; height: 0; overflow: hidden;">
<defs>
+ <symbol id="iconSelectAll" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M5 3a2 2 0 0 0-2 2"/><path d="M19 3a2 2 0 0 1 2 2"/><path d="M21 19a2 2 0 0 1-2 2"/><path d="M5 21a2 2 0 0 1-2-2"/><path d="M9 3h1"/><path d="M9 21h1"/><path d="M14 3h1"/><path d="M14 21h1"/><path d="M3 9v1"/><path d="M21 9v1"/><path d="M3 14v1"/><path d="M21 14v1"/>
+ </symbol>
<symbol id="iconUploadAssets" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M12 12v6"/><path d="m15 15-3-3-3 3"/>
</symbol>
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 67d963e91e..b98c6498da 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -864,7 +864,7 @@ export const contentMenu = (protyle: IProtyle, nodeElement: Element) => {
window.siyuan.menus.menu.append(new MenuItem({
id: "selectAll",
label: window.siyuan.languages.selectAll,
- icon: "iconSelect",
+ icon: "iconSelectAll",
accelerator: "⌘A",
click() {
selectAll(protyle, nodeElement, range);
diff --git a/app/src/menus/text.ts b/app/src/menus/text.ts
index 4c3593d50d..dcfe72e272 100644
--- a/app/src/menus/text.ts
+++ b/app/src/menus/text.ts
@@ -23,7 +23,7 @@ export const textMenu = (target: Element) => {
menu.addItem({
id: "selectAll",
label: window.siyuan.languages.selectAll,
- icon: "iconSelect",
+ icon: "iconSelectAll",
click() {
if (getSelection().rangeCount === 0) {
return;
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index ebf4ff02a8..c905492fcb 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -292,7 +292,7 @@ export class Title {
window.siyuan.menus.menu.append(new MenuItem({
id: "selectAll",
label: window.siyuan.languages.selectAll,
- icon: "iconSelect",
+ icon: "iconSelectAll",
accelerator: "⌘A",
click: () => {
range.selectNodeContents(this.editElement);