mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 04:31:27 +08:00
💄 icon
This commit is contained in:
parent
deed49ecea
commit
0f0cab91ca
@ -1,5 +1,9 @@
|
||||
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconTerminal" viewBox="0 0 32 32">
|
||||
<path d="M10.044 21.956c-0.447 0-0.744-0.149-1.042-0.447-0.596-0.596-0.596-1.489 0-2.084l3.424-3.424-3.424-3.424c-0.596-0.596-0.596-1.489 0-2.084s1.489-0.596 2.084 0l4.467 4.467c0.596 0.596 0.596 1.489 0 2.084l-4.467 4.467c-0.298 0.298-0.596 0.447-1.042 0.447zM21.956 21.956h-4.467c-0.893 0-1.489-0.596-1.489-1.489s0.596-1.489 1.489-1.489h4.467c0.893 0 1.489 0.596 1.489 1.489s-0.596 1.489-1.489 1.489z"></path>
|
||||
<path d="M26.422 29.4h-20.844c-2.531 0-4.467-1.936-4.467-4.467v-17.867c0-2.531 1.936-4.467 4.467-4.467h20.844c2.531 0 4.467 1.936 4.467 4.467v17.867c0 2.531-1.936 4.467-4.467 4.467zM5.578 5.578c-0.893 0-1.489 0.596-1.489 1.489v17.867c0 0.893 0.596 1.489 1.489 1.489h20.844c0.893 0 1.489-0.596 1.489-1.489v-17.867c0-0.893-0.596-1.489-1.489-1.489h-20.844z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconCamera" viewBox="0 0 32 32">
|
||||
<path d="M28.070 7.359h-4.663l-1.111-3.114c-0.157-0.428-0.561-0.727-1.035-0.727-0 0-0.001 0-0.001 0h-10.52c-0.463 0-0.878 0.291-1.032 0.727l-1.114 3.114h-4.663c-1.516 0-2.743 1.228-2.743 2.743v15.636c0 1.516 1.228 2.743 2.743 2.743h24.14c1.516 0 2.743-1.228 2.743-2.743v-15.636c0-1.516-1.228-2.743-2.743-2.743zM28.344 25.738c0 0.151-0.123 0.274-0.274 0.274h-24.14c-0.151 0-0.274-0.123-0.274-0.274v-15.636c0-0.151 0.123-0.274 0.274-0.274h6.402l0.586-1.639 0.785-2.201h8.59l0.785 2.201 0.586 1.639h6.405c0.151 0 0.274 0.123 0.274 0.274v15.636zM16 12.022c-3.031 0-5.486 2.455-5.486 5.486s2.455 5.486 5.486 5.486 5.486-2.455 5.486-5.486-2.455-5.486-5.486-5.486zM16 20.801c-1.817 0-3.292-1.474-3.292-3.292s1.474-3.292 3.292-3.292 3.292 1.474 3.292 3.292-1.474 3.292-3.292 3.292z"></path>
|
||||
</symbol>
|
||||
|
@ -2,5 +2,5 @@
|
||||
"name": "ant",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.31.0"
|
||||
"version": "1.32.0"
|
||||
}
|
||||
|
@ -34,6 +34,12 @@
|
||||
</svg>
|
||||
iconCamera
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconTerminal"></use>
|
||||
</svg>
|
||||
iconTerminal
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconSoftWrap"></use>
|
||||
|
@ -1,5 +1,9 @@
|
||||
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconTerminal" viewBox="0 0 32 32">
|
||||
<path d="M10.044 21.956c-0.447 0-0.744-0.149-1.042-0.447-0.596-0.596-0.596-1.489 0-2.084l3.424-3.424-3.424-3.424c-0.596-0.596-0.596-1.489 0-2.084s1.489-0.596 2.084 0l4.467 4.467c0.596 0.596 0.596 1.489 0 2.084l-4.467 4.467c-0.298 0.298-0.596 0.447-1.042 0.447zM21.956 21.956h-4.467c-0.893 0-1.489-0.596-1.489-1.489s0.596-1.489 1.489-1.489h4.467c0.893 0 1.489 0.596 1.489 1.489s-0.596 1.489-1.489 1.489z"></path>
|
||||
<path d="M26.422 29.4h-20.844c-2.531 0-4.467-1.936-4.467-4.467v-17.867c0-2.531 1.936-4.467 4.467-4.467h20.844c2.531 0 4.467 1.936 4.467 4.467v17.867c0 2.531-1.936 4.467-4.467 4.467zM5.578 5.578c-0.893 0-1.489 0.596-1.489 1.489v17.867c0 0.893 0.596 1.489 1.489 1.489h20.844c0.893 0 1.489-0.596 1.489-1.489v-17.867c0-0.893-0.596-1.489-1.489-1.489h-20.844z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconCamera" viewBox="0 0 32 32">
|
||||
<path d="M16 24.189q2.792 0 4.746-1.954t1.954-4.746-1.954-4.746-4.746-1.954-4.746 1.954-1.954 4.746 1.954 4.746 4.746 1.954zM16 21.211q-1.563 0-2.643-1.079t-1.079-2.643 1.079-2.643 2.643-1.079 2.643 1.079 1.079 2.643-1.079 2.643-2.643 1.079zM4.089 29.4q-1.228 0-2.103-0.875t-0.875-2.103v-17.867q0-1.228 0.875-2.103t2.103-0.875h4.69l2.754-2.978h8.933l2.754 2.978h4.69q1.228 0 2.103 0.875t0.875 2.103v17.867q0 1.228-0.875 2.103t-2.103 0.875h-23.822zM4.089 26.422h23.822v-17.867h-6.030l-2.717-2.978h-6.328l-2.717 2.978h-6.030v17.867z"></path>
|
||||
</symbol>
|
||||
|
@ -2,5 +2,5 @@
|
||||
"name": "material",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.31.0"
|
||||
"version": "1.32.0"
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ export const initBar = (app: App) => {
|
||||
<svg><use xlink:href="#iconPlugin"></use></svg>
|
||||
</div>
|
||||
<div id="barCommand" class="toolbar__item ariaLabel" aria-label="${window.siyuan.languages.commandPanel} ${updateHotkeyTip(window.siyuan.config.keymap.general.commandPanel.custom)}">
|
||||
<svg><use xlink:href="#iconLayoutBottom"></use></svg>
|
||||
<svg><use xlink:href="#iconTerminal"></use></svg>
|
||||
</div>
|
||||
<div id="barSearch" class="toolbar__item ariaLabel" aria-label="${window.siyuan.languages.globalSearch} ${updateHotkeyTip(window.siyuan.config.keymap.general.globalSearch.custom)}">
|
||||
<svg><use xlink:href="#iconSearch"></use></svg>
|
||||
|
@ -179,7 +179,7 @@ export const initRightMenu = (app: App) => {
|
||||
} else if (target.id === "menuPlugin") {
|
||||
const menu = new Menu();
|
||||
menu.addItem({
|
||||
icon: "iconLayoutBottom",
|
||||
icon: "iconTerminal",
|
||||
label: window.siyuan.languages.commandPanel,
|
||||
click() {
|
||||
commandPanel(app);
|
||||
|
Loading…
Reference in New Issue
Block a user