feat: 改进事件系统与全局快捷键 (#62)

This commit is contained in:
hstyi
2025-01-15 14:54:39 +08:00
committed by GitHub
parent a71493e52c
commit 45ea822fd6
137 changed files with 2860 additions and 1032 deletions

View File

@@ -0,0 +1,10 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="3.5" width="9" height="10" rx="1.5" stroke="#6C707E"/>
<rect x="5" y="6" width="4" height="1" rx="0.5" fill="#6C707E"/>
<rect x="5" y="8" width="4" height="1" rx="0.5" fill="#6C707E"/>
<rect x="5" y="10" width="4" height="1" rx="0.5" fill="#6C707E"/>
<path fill-rule="evenodd" clip-rule="evenodd"
d="M11.0017 2H11.5998C12.373 2 12.9998 2.6268 12.9998 3.4V3.91081C13.0011 3.94038 13.0017 3.97011 13.0017 4V11.5482C13.6063 11.1124 13.9998 10.4021 13.9998 9.6V3.4C13.9998 2.07452 12.9253 1 11.5998 1H6.39978C5.59677 1 4.88587 1.39437 4.4502 2H6.39978H11.0017Z"
fill="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 862 B

View File

@@ -0,0 +1,10 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="3.5" width="9" height="10" rx="1.5" stroke="#CED0D6"/>
<rect x="5" y="6" width="4" height="1" rx="0.5" fill="#CED0D6"/>
<rect x="5" y="8" width="4" height="1" rx="0.5" fill="#CED0D6"/>
<rect x="5" y="10" width="4" height="1" rx="0.5" fill="#CED0D6"/>
<path fill-rule="evenodd" clip-rule="evenodd"
d="M11.0017 2H11.5998C12.373 2 12.9998 2.6268 12.9998 3.4V3.91081C13.0011 3.94038 13.0017 3.97011 13.0017 4V11.5482C13.6063 11.1124 13.9998 10.4021 13.9998 9.6V3.4C13.9998 2.07452 12.9253 1 11.5998 1H6.39978C5.59677 1 4.88587 1.39437 4.4502 2H6.39978H11.0017Z"
fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 862 B

View File

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M7 2H9C9.55228 2 10 2.44772 10 3H6C6 2.44772 6.44772 2 7 2ZM5 3C5 1.89543 5.89543 1 7 1H9C10.1046 1 11 1.89543 11 3H13C13.5523 3 14 3.44772 14 4V5V6H13V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13V6H2V5V4C2 3.44772 2.44772 3 3 3H5ZM11 4H10H6H5H3V5H4H12H13V4H11ZM4 6H12V13C12 13.5523 11.5523 14 11 14H5C4.44772 14 4 13.5523 4 13V6ZM6.5 7C6.22386 7 6 7.22386 6 7.5V11.5C6 11.7761 6.22386 12 6.5 12C6.77614 12 7 11.7761 7 11.5V7.5C7 7.22386 6.77614 7 6.5 7ZM9 7.5C9 7.22386 9.22386 7 9.5 7C9.77614 7 10 7.22386 10 7.5V11.5C10 11.7761 9.77614 12 9.5 12C9.22386 12 9 11.7761 9 11.5V7.5Z"
fill="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 917 B

View File

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M7 2H9C9.55228 2 10 2.44772 10 3H6C6 2.44772 6.44772 2 7 2ZM5 3C5 1.89543 5.89543 1 7 1H9C10.1046 1 11 1.89543 11 3H13C13.5523 3 14 3.44772 14 4V5V6H13V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13V6H2V5V4C2 3.44772 2.44772 3 3 3H5ZM11 4H10H6H5H3V5H4H12H13V4H11ZM4 6H12V13C12 13.5523 11.5523 14 11 14H5C4.44772 14 4 13.5523 4 13V6ZM6.5 7C6.22386 7 6 7.22386 6 7.5V11.5C6 11.7761 6.22386 12 6.5 12C6.77614 12 7 11.7761 7 11.5V7.5C7 7.22386 6.77614 7 6.5 7ZM9 7.5C9 7.22386 9.22386 7 9.5 7C9.77614 7 10 7.22386 10 7.5V11.5C10 11.7761 9.77614 12 9.5 12C9.22386 12 9 11.7761 9 11.5V7.5Z"
fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 917 B

View File

@@ -0,0 +1,8 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="11" y="7" width="1" height="4" rx="0.5" fill="#6C707E"/>
<rect x="12" y="10" width="1" height="4" rx="0.5" transform="rotate(90 12 10)" fill="#6C707E"/>
<rect x="4" y="5" width="1" height="4" rx="0.5" fill="#6C707E"/>
<rect x="8" y="5" width="1" height="4" rx="0.5" transform="rotate(90 8 5)" fill="#6C707E"/>
<rect x="1.5" y="2.5" width="13" height="11" rx="1.5" stroke="#6C707E"/>
</svg>

After

Width:  |  Height:  |  Size: 642 B

View File

@@ -0,0 +1,8 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="11" y="7" width="1" height="4" rx="0.5" fill="#CED0D6"/>
<rect x="12" y="10" width="1" height="4" rx="0.5" transform="rotate(90 12 10)" fill="#CED0D6"/>
<rect x="4" y="5" width="1" height="4" rx="0.5" fill="#CED0D6"/>
<rect x="8" y="5" width="1" height="4" rx="0.5" transform="rotate(90 8 5)" fill="#CED0D6"/>
<rect x="1.5" y="2.5" width="13" height="11" rx="1.5" stroke="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 642 B