Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/7976

Danieldc3f526b4506
diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.js
index cec635542e..b4465d9394 100644
--- a/app/appearance/icons/material/icon.js
+++ b/app/appearance/icons/material/icon.js
@@ -1,5 +1,8 @@
document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;">
<defs>
+ <symbol id="iconRecentDocs" viewBox="30 -930 900 900">
+ <path d="M847.46-112.54Q900-165.08 900-240q0-74.92-52.54-127.46Q794.92-420 720-420q-74.92 0-127.46 52.54Q540-314.92 540-240q0 74.92 52.54 127.46Q645.08-60 720-60q74.92 0 127.46-52.54ZM737.69-247.23l60.77 60.77q5.62 5.61 5.62 12.46 0 6.85-5.62 12.46-5.61 5.62-12.65 5.42-7.04-.19-12.27-5.42l-60.39-60.38q-5.61-5.62-8.23-12.16-2.61-6.54-2.61-13.77V-340q0-7.23 5.23-12.46t12.46-5.23q7.23 0 12.46 5.23t5.23 12.46v92.77ZM172.31-180Q142-180 121-201q-21-21-21-51.31v-455.38Q100-738 121-759q21-21 51.31-21h615.38Q818-780 839-759q21 21 21 51.31v209.61q0 12.77-8.62 21.39-8.61 8.61-21.38 8.61t-21.38-8.3q-8.62-8.31-8.62-21.08v-81.77H571.54q-15.46 0-25.81-10.35-10.34-10.34-10.34-25.81V-720H172.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v455.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85H430q12.77 0 21.39 8.62Q460-222.77 460-210t-8.61 21.38Q442.77-180 430-180H172.31ZM160-252.31V-720v480V-252.31Z"/>
+ </symbol>
<symbol id="iconOutline" viewBox="30 -930 900 900">
<path d="M170-254.62q-12.75 0-21.37-8.63-8.63-8.62-8.63-21.38 0-12.75 8.63-21.37 8.62-8.61 21.37-8.61h380q12.75 0 21.37 8.62 8.63 8.63 8.63 21.39 0 12.75-8.63 21.37-8.62 8.61-21.37 8.61H170ZM170-450q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q157.25-510 170-510h620q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-450 790-450H170Zm0-195.39q-12.75 0-21.37-8.62-8.63-8.63-8.63-21.39 0-12.75 8.63-21.37 8.62-8.61 21.37-8.61h620q12.75 0 21.37 8.63 8.63 8.62 8.63 21.38 0 12.75-8.63 21.37-8.62 8.61-21.37 8.61H170Z"/>
</symbol>
diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.ts
index d7bc64dd30..61310ae554 100644
--- a/app/src/menus/workspace.ts
+++ b/app/src/menus/workspace.ts
@@ -7,14 +7,7 @@ import {getOpenNotebookCount, originalPath, pathPosix, useShell} from "../util/p
import {fetchNewDailyNote, mountHelp, newDailyNote} from "../util/mount";
import {fetchPost} from "../util/fetch";
import {Constants} from "../constants";
-import {
- isInAndroid,
- isInHarmony,
- isInMobileApp,
- isIPad,
- setStorageVal,
- writeText
-} from "../protyle/util/compatibility";
+import {isInAndroid, isInHarmony, isInMobileApp, isIPad, setStorageVal, writeText} from "../protyle/util/compatibility";
import {openCard} from "../card/openCard";
import {openSetting} from "../config";
import {getAllDocks} from "../layout/getAll";
@@ -516,7 +509,7 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
window.siyuan.menus.menu.append(new MenuItem({
id: "recentDocs",
label: window.siyuan.languages.recentDocs,
- icon: "iconFile",
+ icon: "iconRecentDocs",
accelerator: window.siyuan.config.keymap.general.recentDocs.custom,
click: () => {
openRecentDocs();