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

Daniel60da4a7da514
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.html
index c5c33dedcd..aad090d101 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="#iconSearchAsset"></use>
+ </svg>
+ iconSearchAsset
+ </div>
<div>
<svg>
<use xlink:href="#iconAddDoc"></use>
diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.js
index e0de92ab1a..799166d7af 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="iconSearchAsset" viewBox="30 -930 900 900">
+ <path d="M200-800v247.15-1V-160v-640 180-180Zm90 390h141.92q7.47-17.23 17.39-32.04 9.92-14.81 22.31-27.96H290v60Zm0 160h121.23q-3.46-15-4.58-30-1.11-15 .12-30H290v60Zm-77.69 150Q182-100 161-121q-21-21-21-51.31v-615.38Q140-818 161-839q21-21 51.31-21H530l210 210v110.38q-14.39-5.69-29.39-8.65T680-552.85V-620H500v-180H212.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v615.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h236q11.77 17.85 26.38 32.96 14.62 15.12 31.69 27.04H212.31Zm523.11-124.58q30.73-30.73 30.73-75.42t-30.73-75.42q-30.73-30.73-75.42-30.73t-75.42 30.73q-30.73 30.73-30.73 75.42t30.73 75.42q30.73 30.73 75.42 30.73t75.42-30.73ZM864-54.23 754.46-163.77q-20.23 14.77-44.34 22.35-24.12 7.57-50.12 7.57-69.23 0-117.69-48.46-48.46-48.46-48.46-117.69 0-69.23 48.46-117.69 48.46-48.46 117.69-48.46 69.23 0 117.69 48.46 48.46 48.46 48.46 117.69 0 26-7.57 50.12-7.58 24.11-22.35 44.34L905.77-96 864-54.23Z"/>
+ </symbol>
<symbol id="iconAddDoc" viewBox="30 -930 900 900">
<path d="M450-370v90q0 12.77 8.62 21.38Q467.23-250 480-250t21.38-8.62Q510-267.23 510-280v-90h90q12.77 0 21.38-8.62Q630-387.23 630-400t-8.62-21.38Q612.77-430 600-430h-90v-90q0-12.77-8.62-21.38Q492.77-550 480-550t-21.38 8.62Q450-532.77 450-520v90h-90q-12.77 0-21.38 8.62Q330-412.77 330-400t8.62 21.38Q347.23-370 360-370h90ZM252.31-100Q222-100 201-121q-21-21-21-51.31v-615.38Q180-818 201-839q21-21 51.31-21h287.77q14.46 0 27.81 5.62 13.34 5.61 23.19 15.46l167.84 167.84q9.85 9.85 15.46 23.19 5.62 13.35 5.62 27.81v447.77Q780-142 759-121q-21 21-51.31 21H252.31ZM540-656.16V-800H252.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v615.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h455.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46V-620H576.16q-15.47 0-25.81-10.35Q540-640.69 540-656.16ZM240-800v180-180V-160v-640Z"/>
</symbol>
@@ -435,9 +438,12 @@ document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="p
<symbol id="iconBookmark" viewBox="30 -930 900 900">
<path d="m480-261.54-158.77 68.15q-36.15 15.46-68.69-5.92Q220-220.69 220-259.46v-488.23Q220-778 241-799q21-21 51.31-21h375.38Q698-820 719-799q21 21 21 51.31v488.23q0 38.77-32.54 60.15-32.54 21.38-68.69 5.92L480-261.54Zm0-66.46 182.69 78.69q6.16 2.69 11.73-1.15 5.58-3.85 5.58-10.39v-486.84q0-4.62-3.85-8.46-3.84-3.85-8.46-3.85H292.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v486.84q0 6.54 5.58 10.39 5.57 3.84 11.73 1.15L480-328Zm0-432H280h400-200Z"/>
</symbol>
- <symbol id="iconH1" viewBox="30 -930 900 900">
- <path d="M228.62-298.63Q220-307.25 220-320v-320q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q280-652.75 280-640v130h180v-130q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q520-652.75 520-640v320q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Q460-307.25 460-320v-130H280v130q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Zm460 0Q680-307.25 680-320v-290h-50q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37Q617.25-670 630-670h73.65q15.66 0 26 10.39Q740-649.21 740-633.85V-320q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Z"/>
- </symbol>
+<symbol id="iconH1" viewBox="30 -930 900 900">
+ <path d="M228.62-298.63Q220-307.25 220-320v-320q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q280-652.75 280-640v130h180v-130q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q520-652.75 520-640v320q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Q460-307.25 460-320v-130H280v130q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Z"/>
+ <g transform="translate(-40 0) scale(1.22 1)">
+ <path d="M688.62-298.63Q680-307.25 680-320v-290h-50q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37Q617.25-670 630-670h73.65q15.66 0 26 10.39Q740-649.21 740-633.85V-320q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Z"/>
+ </g>
+</symbol>
<symbol id="iconH2" viewBox="30 -930 900 900">
<path d="M148.62-298.63Q140-307.25 140-320v-320q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q200-652.75 200-640v130h180v-130q0-12.75 8.63-21.37 8.63-8.63 21.38-8.63 12.76 0 21.37 8.63Q440-652.75 440-640v320q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63Q380-307.25 380-320v-130H200v130q0 12.75-8.63 21.37-8.63 8.63-21.38 8.63-12.76 0-21.37-8.63ZM556.15-290q-15.36 0-25.76-10.39Q520-310.79 520-326.15v-111.54q0-29.83 21.24-51.07Q562.48-510 592.31-510h155.38q5.39 0 8.85-3.46t3.46-8.85v-75.38q0-5.39-3.46-8.85t-8.85-3.46H550q-12.75 0-21.38-8.63-8.62-8.63-8.62-21.38 0-12.76 8.62-21.37Q537.25-670 550-670h197.69q29.83 0 51.07 21.24Q820-627.52 820-597.69v75.38q0 29.83-21.24 51.07Q777.52-450 747.69-450H592.31q-5.39 0-8.85 3.46t-3.46 8.85V-350h210q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q802.75-290 790-290H556.15Z"/>
</symbol>
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index cb83a58e85..587bc0bc97 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -129,7 +129,7 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
</span>
<span class="fn__space"></span>
<span id="searchAsset" aria-label="${window.siyuan.languages.searchAssetContent}" class="block__icon block__icon--show ariaLabel" data-position="9south">
- <svg><use xlink:href="#iconExact"></use></svg>
+ <svg><use xlink:href="#iconSearchAsset"></use></svg>
</span>
</div>
<div class="b3-form__icon search__header">