Explorar el Código

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

Vanessa hace 2 años
padre
commit
ba8ff1cb31

+ 3 - 0
app/appearance/icons/ant/icon.js

@@ -1,5 +1,8 @@
 document.body.insertAdjacentHTML('afterBegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
 <defs>
+  <symbol id="iconWorkspace" viewBox="0 0 32 32">
+    <path d="M27.429 0h-22.857c-0.632 0-1.143 0.511-1.143 1.143v29.714c0 0.632 0.511 1.143 1.143 1.143h22.857c0.632 0 1.143-0.511 1.143-1.143v-29.714c0-0.632-0.511-1.143-1.143-1.143zM6 2.571h20v7.429h-20v-7.429zM26 19.714h-20v-7.429h20v7.429zM26 29.429h-20v-7.429h20v7.429zM15.429 5.143h-6.571c-0.157 0-0.286 0.129-0.286 0.286v1.714c0 0.157 0.129 0.286 0.286 0.286h6.571c0.157 0 0.286-0.129 0.286-0.286v-1.714c0-0.157-0.129-0.286-0.286-0.286zM8.857 17.143h6.571c0.157 0 0.286-0.129 0.286-0.286v-1.714c0-0.157-0.129-0.286-0.286-0.286h-6.571c-0.157 0-0.286 0.129-0.286 0.286v1.714c0 0.157 0.129 0.286 0.286 0.286zM20.571 25.857c0 0.789 0.64 1.429 1.429 1.429s1.429-0.64 1.429-1.429v0c0-0.789-0.64-1.429-1.429-1.429s-1.429 0.64-1.429 1.429v0z"></path>
+  </symbol>
   <symbol id="iconLiandi" viewBox="0 0 32 32">
     <path fill="#d23f31" d="M5.787 17.226h17.033l5.954 9.528c0.47 0.752 0.003 1.361-1.042 1.361h-15.141z"></path>
     <path d="M10.74 3.927h17.033c1.045 0 1.512 0.609 1.042 1.361l-5.954 9.528h-19.872l6.379-10.209c0.235-0.376 0.849-0.681 1.372-0.681z"></path>

+ 1 - 1
app/appearance/icons/ant/icon.json

@@ -2,5 +2,5 @@
   "name": "ant",
   "author": "Vanessa",
   "url": "https://github.com/Vanessa219",
-  "version": "1.10.0"
+  "version": "1.11.0"
 }

+ 6 - 0
app/appearance/icons/index.html

@@ -28,6 +28,12 @@
 <body>
 <h2>SiYuan</h2>
 <div class="fn__clear">
+    <div>
+        <svg>
+            <use xlink:href="#iconWorkspace"></use>
+        </svg>
+        iconWorkspace
+    </div>
     <div>
         <svg>
             <use xlink:href="#iconLiandi"></use>

+ 3 - 0
app/appearance/icons/material/icon.js

@@ -1,5 +1,8 @@
 document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
 <defs>
+  <symbol id="iconWorkspace" viewBox="0 0 32 32">
+    <path d="M6.733 20.633c1.699 0 3.089 1.39 3.089 3.089s-1.39 3.089-3.089 3.089-3.089-1.39-3.089-3.089 1.39-3.089 3.089-3.089zM6.733 17.544c-3.398 0-6.178 2.78-6.178 6.178s2.78 6.178 6.178 6.178 6.178-2.78 6.178-6.178-2.78-6.178-6.178-6.178zM16 5.189c1.699 0 3.089 1.39 3.089 3.089s-1.39 3.089-3.089 3.089-3.089-1.39-3.089-3.089 1.39-3.089 3.089-3.089zM16 2.1c-3.398 0-6.178 2.78-6.178 6.178s2.78 6.178 6.178 6.178 6.178-2.78 6.178-6.178-2.78-6.178-6.178-6.178zM25.267 20.633c1.699 0 3.089 1.39 3.089 3.089s-1.39 3.089-3.089 3.089-3.089-1.39-3.089-3.089 1.39-3.089 3.089-3.089zM25.267 17.544c-3.398 0-6.178 2.78-6.178 6.178s2.78 6.178 6.178 6.178 6.178-2.78 6.178-6.178-2.78-6.178-6.178-6.178z"></path>
+  </symbol>
   <symbol id="iconLiandi" viewBox="0 0 32 32">
     <path fill="#d23f31" d="M5.787 17.226h17.033l5.954 9.528c0.47 0.752 0.003 1.361-1.042 1.361h-15.141z"></path>
     <path d="M10.74 3.927h17.033c1.045 0 1.512 0.609 1.042 1.361l-5.954 9.528h-19.872l6.379-10.209c0.235-0.376 0.849-0.681 1.372-0.681z"></path>

+ 1 - 1
app/appearance/icons/material/icon.json

@@ -2,5 +2,5 @@
   "name": "material",
   "author": "Vanessa",
   "url": "https://github.com/Vanessa219",
-  "version": "1.10.0"
+  "version": "1.11.0"
 }

+ 1 - 1
app/src/menus/workspace.ts

@@ -73,7 +73,7 @@ export const workspaceMenu = (rect: DOMRect) => {
         });
         window.siyuan.menus.menu.append(new MenuItem({
             label: window.siyuan.languages.workspaceList,
-            icon: "iconFiles",
+            icon: "iconWorkspace",
             type: "submenu",
             submenu: workspaceSubMenu,
         }).element);