فهرست منبع

:sparkles: https://github.com/siyuan-note/siyuan/issues/3565 更改图标

Vanessa 2 سال پیش
والد
کامیت
987f55fdb8

+ 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">
 document.body.insertAdjacentHTML('afterBegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
 <defs>
 <defs>
+  <symbol id="iconFilter" viewBox="0 0 32 32">
+    <path d="M30.724 1.679h-29.451c-0.98 0-1.592 1.068-1.1 1.92l9.305 15.817v9.625c0 0.708 0.568 1.28 1.272 1.28h10.497c0.704 0 1.272-0.572 1.272-1.28v-9.625l9.309-15.817c0.488-0.852-0.124-1.92-1.104-1.92zM19.655 27.441h-7.313v-6.241h7.317v6.241zM20.039 17.976l-0.38 0.664h-7.321l-0.38-0.664-7.933-13.417h23.946l-7.933 13.417z"></path>
+  </symbol>
   <symbol id="iconClear" viewBox="0 0 32 32">
   <symbol id="iconClear" viewBox="0 0 32 32">
     <path d="M31.72 30.522l-2.152-12.41h0.727c0.585 0 1.056-0.471 1.056-1.056v-7.797c0-0.585-0.471-1.056-1.056-1.056h-9.99v-7.391c0-0.585-0.471-1.056-1.056-1.056h-6.497c-0.585 0-1.056 0.471-1.056 1.056v7.391h-9.99c-0.585 0-1.056 0.471-1.056 1.056v7.797c0 0.585 0.471 1.056 1.056 1.056h0.727l-2.152 12.41c-0.010 0.054-0.016 0.117-0.016 0.181 0 0.582 0.472 1.054 1.054 1.054 0 0 0.001 0 0.001 0h29.36c0.061 0 0.122-0.004 0.179-0.016 0.501-0.086 0.877-0.518 0.877-1.036 0-0.064-0.006-0.127-0.017-0.188l0.001 0.006zM3.492 11.046h11.046v-8.447h2.924v8.447h11.046v4.223h-25.015v-4.223zM22.497 28.914v-6.335c0-0.179-0.146-0.325-0.325-0.325h-1.949c-0.179 0-0.325 0.146-0.325 0.325v6.335h-7.797v-6.335c0-0.179-0.146-0.325-0.325-0.325h-1.949c-0.179 0-0.325 0.146-0.325 0.325v6.335h-6.059l1.831-10.558h21.446l1.831 10.558h-6.055z"></path>
     <path d="M31.72 30.522l-2.152-12.41h0.727c0.585 0 1.056-0.471 1.056-1.056v-7.797c0-0.585-0.471-1.056-1.056-1.056h-9.99v-7.391c0-0.585-0.471-1.056-1.056-1.056h-6.497c-0.585 0-1.056 0.471-1.056 1.056v7.391h-9.99c-0.585 0-1.056 0.471-1.056 1.056v7.797c0 0.585 0.471 1.056 1.056 1.056h0.727l-2.152 12.41c-0.010 0.054-0.016 0.117-0.016 0.181 0 0.582 0.472 1.054 1.054 1.054 0 0 0.001 0 0.001 0h29.36c0.061 0 0.122-0.004 0.179-0.016 0.501-0.086 0.877-0.518 0.877-1.036 0-0.064-0.006-0.127-0.017-0.188l0.001 0.006zM3.492 11.046h11.046v-8.447h2.924v8.447h11.046v4.223h-25.015v-4.223zM22.497 28.914v-6.335c0-0.179-0.146-0.325-0.325-0.325h-1.949c-0.179 0-0.325 0.146-0.325 0.325v6.335h-7.797v-6.335c0-0.179-0.146-0.325-0.325-0.325h-1.949c-0.179 0-0.325 0.146-0.325 0.325v6.335h-6.059l1.831-10.558h21.446l1.831 10.558h-6.055z"></path>
   </symbol>
   </symbol>

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

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

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

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

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

@@ -1,4 +1,7 @@
 document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"><defs>
 document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"><defs>
+  <symbol id="iconFilter" viewBox="0 0 32 32">
+    <path d="M14.044 31.65q-0.831 0-1.394-0.562t-0.562-1.394v-11.737l-11.688-14.916q-0.685-0.831-0.196-1.761t1.516-0.929h28.56q1.027 0 1.516 0.929t-0.196 1.761l-11.688 14.916v11.737q0 0.831-0.562 1.394t-1.394 0.562zM16 18.152l11.737-14.867h-23.474z"></path>
+  </symbol>
   <symbol id="iconClear" viewBox="0 0 32 32">
   <symbol id="iconClear" viewBox="0 0 32 32">
     <path d="M17.023 14.333l-2.917-2.879 0.909-2.121h-2.992l-3.939-3.939h20.038v3.788h-8.902zM28.348 32.061l-13.22-13.258-3.333 7.803h-4.129l4.545-10.682-12.273-12.273 1.591-1.591 28.409 28.409z"></path>
     <path d="M17.023 14.333l-2.917-2.879 0.909-2.121h-2.992l-3.939-3.939h20.038v3.788h-8.902zM28.348 32.061l-13.22-13.258-3.333 7.803h-4.129l4.545-10.682-12.273-12.273 1.591-1.591 28.409 28.409z"></path>
   </symbol>
   </symbol>

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

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

+ 1 - 0
app/appearance/langs/en_US.json

@@ -1,4 +1,5 @@
 {
 {
+  "filter": "Filter",
   "copyHeadings": "Copy Headings and Bottom Blocks",
   "copyHeadings": "Copy Headings and Bottom Blocks",
   "tWithSubtitle":"Transformation with subtitles",
   "tWithSubtitle":"Transformation with subtitles",
   "clear": "Clear",
   "clear": "Clear",

+ 1 - 0
app/appearance/langs/es_ES.json

@@ -1,4 +1,5 @@
 {
 {
+  "filter": "Filtro",
   "copyHeadings": "Copiar encabezados y bloques inferiores",
   "copyHeadings": "Copiar encabezados y bloques inferiores",
   "tWithSubtitle": "Transformación con subtítulos",
   "tWithSubtitle": "Transformación con subtítulos",
   "clear": "claro",
   "clear": "claro",

+ 1 - 0
app/appearance/langs/fr_FR.json

@@ -1,4 +1,5 @@
 {
 {
+  "filter": "Filtre",
   "copyHeadings": "Copier les en-têtes et les blocs inférieurs",
   "copyHeadings": "Copier les en-têtes et les blocs inférieurs",
   "tWithSubtitle": "Transformation avec sous-titres",
   "tWithSubtitle": "Transformation avec sous-titres",
   "clear": "Effacer",
   "clear": "Effacer",

+ 1 - 0
app/appearance/langs/zh_CHT.json

@@ -1,4 +1,5 @@
 {
 {
+  "filter": "過濾",
   "copyHeadings": "複製標題及下方塊",
   "copyHeadings": "複製標題及下方塊",
   "tWithSubtitle": "帶子標題轉換",
   "tWithSubtitle": "帶子標題轉換",
   "clear": "清空",
   "clear": "清空",

+ 1 - 0
app/appearance/langs/zh_CN.json

@@ -1,4 +1,5 @@
 {
 {
+  "filter": "过滤",
   "copyHeadings": "复制标题及下方块",
   "copyHeadings": "复制标题及下方块",
   "tWithSubtitle": "带子标题转换",
   "tWithSubtitle": "带子标题转换",
   "clear": "清空",
   "clear": "清空",

+ 4 - 4
app/src/layout/dock/Backlink.ts

@@ -76,8 +76,8 @@ export class Backlink extends Model {
     <span class="counter listCount"></span>
     <span class="counter listCount"></span>
     <span class="fn__space"></span>
     <span class="fn__space"></span>
     <label class="b3-form__icon b3-form__icon--small search__label">
     <label class="b3-form__icon b3-form__icon--small search__label">
-        <svg class="b3-form__icon-icon"><use xlink:href="#iconSearch"></use></svg>
-        <input class="b3-text-field b3-text-field--small b3-form__icon-input" placeholder="Enter ${window.siyuan.languages.search}" />
+        <svg class="b3-form__icon-icon"><use xlink:href="#iconFilter"></use></svg>
+        <input class="b3-text-field b3-text-field--small b3-form__icon-input" placeholder="Enter ${window.siyuan.languages.filter}" />
     </label>
     </label>
     <span class="fn__space"></span>
     <span class="fn__space"></span>
     <span data-type="refresh" class="block__icon b3-tooltips b3-tooltips__sw" aria-label="${window.siyuan.languages.refresh}"><svg><use xlink:href='#iconRefresh'></use></svg></span>
     <span data-type="refresh" class="block__icon b3-tooltips b3-tooltips__sw" aria-label="${window.siyuan.languages.refresh}"><svg><use xlink:href='#iconRefresh'></use></svg></span>
@@ -97,8 +97,8 @@ export class Backlink extends Model {
     <span class="counter listMCount"></span>
     <span class="counter listMCount"></span>
     <span class="fn__space"></span>
     <span class="fn__space"></span>
     <label class="b3-form__icon b3-form__icon--small search__label">
     <label class="b3-form__icon b3-form__icon--small search__label">
-        <svg class="b3-form__icon-icon"><use xlink:href="#iconSearch"></use></svg>
-        <input class="b3-text-field b3-text-field--small b3-form__icon-input" placeholder="Enter ${window.siyuan.languages.search}" />
+        <svg class="b3-form__icon-icon"><use xlink:href="#iconFilter"></use></svg>
+        <input class="b3-text-field b3-text-field--small b3-form__icon-input" placeholder="Enter ${window.siyuan.languages.filter}" />
     </label>
     </label>
     <span class="fn__space"></span>
     <span class="fn__space"></span>
     <span data-type="mCollapse" class="block__icon b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.collapse}">
     <span data-type="mCollapse" class="block__icon b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.collapse}">