mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
💄 update icon
This commit is contained in:
parent
4e76ebd3e9
commit
92bf109fa1
7 changed files with 28 additions and 4 deletions
|
|
@ -1,5 +1,11 @@
|
|||
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconSoftWrap" viewBox="0 0 32 32">
|
||||
<path d="M19.861 29.776l-6.493-6.493 6.493-6.493 2.457 2.545-2.194 2.194h4.212q1.272 0 2.172-0.899t0.899-2.172-0.899-2.172-2.172-0.899h-23.253v-3.51h23.253q2.764 0 4.673 1.909t1.909 4.673-1.909 4.673-4.673 1.909h-4.212l2.194 2.194-2.457 2.545zM1.083 25.038v-3.51h8.775v3.51h-8.775zM1.083 5.733v-3.51h28.079v3.51h-28.079z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconImgDown" viewBox="0 0 32 32">
|
||||
<path d="M4.333 31q-1.375 0-2.354-0.979t-0.979-2.354v-23.333q0-1.375 0.979-2.354t2.354-0.979h15v3.333h-15v23.333h23.333v-15h3.333v15q0 1.375-0.979 2.354t-2.354 0.979h-23.333zM24.333 11v-3.333h-3.333v-3.333h3.333v-3.333h3.333v3.333h3.333v3.333h-3.333v3.333h-3.333zM6 24.333h20l-6.25-8.333-5 6.667-3.75-5-5 6.667zM4.333 4.333v0z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconArrowDown" viewBox="0 0 32 32">
|
||||
<path d="M16.95 30.017l12.874-14.834c0.098-0.114 0.153-0.259 0.153-0.412v-3.475c0-0.29-0.361-0.424-0.55-0.204l-11.936 13.75v-22.977c0-0.173-0.141-0.314-0.314-0.314h-2.356c-0.173 0-0.314 0.141-0.314 0.314v22.973l-11.936-13.75c-0.192-0.22-0.55-0.086-0.55 0.204v3.593c0 0.075 0.028 0.149 0.079 0.204l12.949 14.928c0.232 0.266 0.572 0.433 0.95 0.433s0.718-0.167 0.949-0.431l0.001-0.001z"></path>
|
||||
</symbol>
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
"name": "ant",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.28.0"
|
||||
"version": "1.29.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,18 @@
|
|||
<body>
|
||||
<h2>SiYuan</h2>
|
||||
<div class="fn__clear">
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconSoftWrap"></use>
|
||||
</svg>
|
||||
iconSoftWrap
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconImgDown"></use>
|
||||
</svg>
|
||||
iconImgDown
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconArrowDown"></use>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconSoftWrap" viewBox="0 0 32 32">
|
||||
<path d="M19.861 29.776l-6.493-6.493 6.493-6.493 2.457 2.545-2.194 2.194h4.212q1.272 0 2.172-0.899t0.899-2.172-0.899-2.172-2.172-0.899h-23.253v-3.51h23.253q2.764 0 4.673 1.909t1.909 4.673-1.909 4.673-4.673 1.909h-4.212l2.194 2.194-2.457 2.545zM1.083 25.038v-3.51h8.775v3.51h-8.775zM1.083 5.733v-3.51h28.079v3.51h-28.079z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconImgDown" viewBox="0 0 32 32">
|
||||
<path d="M4.333 31q-1.375 0-2.354-0.979t-0.979-2.354v-23.333q0-1.375 0.979-2.354t2.354-0.979h15v3.333h-15v23.333h23.333v-15h3.333v15q0 1.375-0.979 2.354t-2.354 0.979h-23.333zM24.333 11v-3.333h-3.333v-3.333h3.333v-3.333h3.333v3.333h3.333v3.333h-3.333v3.333h-3.333zM6 24.333h20l-6.25-8.333-5 6.667-3.75-5-5 6.667zM4.333 4.333v0z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconArrowDown" viewBox="0 0 32 32">
|
||||
<path d="M1.5 16l1.948-1.903 11.192 11.192v-23.789h2.719v23.789l11.192-11.192 1.948 1.903-14.5 14.5z"></path>
|
||||
</symbol>
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
"name": "material",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.28.0"
|
||||
"version": "1.29.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ export const initKeyboardToolbar = () => {
|
|||
<span class="keyboard__split"></span>
|
||||
<button class="keyboard__action" data-type="moveup"><svg><use xlink:href="#iconUp"></use></svg></button>
|
||||
<button class="keyboard__action" data-type="movedown"><svg><use xlink:href="#iconDown"></use></svg></button>
|
||||
<button class="keyboard__action" data-type="softLine"><svg><use xlink:href="#iconArrowDown"></use></svg></button>
|
||||
<button class="keyboard__action" data-type="softLine"><svg><use xlink:href="#iconSoftWrap"></use></svg></button>
|
||||
</div>
|
||||
<div class="fn__none keyboard__dynamic">
|
||||
<button class="keyboard__action" data-type="goback"><svg><use xlink:href="#iconBack"></use></svg></button>
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ export class Breadcrumb {
|
|||
if (!protyle.disabled) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.netImg2LocalAsset,
|
||||
icon: "iconTransform",
|
||||
icon: "iconImgDown",
|
||||
accelerator: window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom,
|
||||
click() {
|
||||
net2LocalAssets(protyle, "Img");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue