feat: add icon for editor layout

This commit is contained in:
2025-11-18 21:12:33 +08:00
parent 86ea296a1b
commit 9d41119710
46 changed files with 54 additions and 141 deletions

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 24 24"
version="1.1"
id="svg1"
sodipodi:docname="EditorLayout.svg"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="32.916667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="m 17,16.88 c 0.56,0 1,0.44 1,1 0,0.56 -0.44,1 -1,1 -0.56,0 -1,-0.45 -1,-1 0,-0.55 0.44,-1 1,-1 m 0,-3 c 2.73,0 5.06,1.66 6,4 -0.94,2.34 -3.27,4 -6,4 -2.73,0 -5.06,-1.66 -6,-4 0.94,-2.34 3.27,-4 6,-4 m 0,1.5 c -1.38,0 -2.5,1.12 -2.5,2.5 0,1.38 1.12,2.5 2.5,2.5 1.38,0 2.5,-1.12 2.5,-2.5 0,-1.38 -1.12,-2.5 -2.5,-2.5 M 18,3 H 4 C 2.9,3 2,3.9 2,5 v 12 c 0,1.1 0.9,2 2,2 H 9.42 C 9.26,18.68 9.12,18.34 9,18 9.12,17.66 9.26,17.32 9.42,17 H 4 v -4 h 6 v 2.97 c 0.55,-0.86 1.23,-1.6 2,-2.21 V 13 h 1.15 c 1.16,-0.64 2.47,-1 3.85,-1 1.06,0 2.07,0.21 3,0.59 V 5 C 20,3.9 19.1,3 18,3 m -8,8 H 4 V 7 h 6 v 4 m 8,0 H 12 V 7 h 6 z"
id="path1"
style="display:none" />
<path
style="fill:#607d8b;stroke-width:0.000911392"
d="M 3.6628462,18.954277 C 2.9389876,18.812286 2.3759743,18.324642 2.1168369,17.615228 l -0.081394,-0.222823 -0.00795,-6.31273 C 2.0187833,4.1608898 2.0079771,4.5989137 2.1975777,4.1854184 2.4627257,3.6071637 3.0327014,3.1622473 3.6490655,3.0524039 4.0078744,2.98846 18.006733,2.9865703 18.3391,3.050421 c 0.772499,0.1484042 1.363905,0.6920224 1.57275,1.4456672 0.06203,0.2238257 0.06283,0.2770438 0.06283,4.1387442 0,2.1516016 -0.01025,3.9119406 -0.02278,3.9118636 -0.01253,-7.7e-5 -0.130705,-0.04212 -0.262607,-0.09342 -0.298338,-0.116046 -1.048666,-0.308327 -1.491824,-0.3823 -0.478751,-0.07991 -1.886507,-0.08033 -2.36962,-7.01e-4 -0.888588,0.146464 -1.949529,0.494282 -2.526929,0.828427 -0.122446,0.07086 -0.147925,0.07345 -0.721519,0.07345 h -0.59459 v 0.389632 0.389632 l -0.205063,0.164798 c -0.480657,0.386278 -1.187873,1.161369 -1.598081,1.751459 l -0.15635,0.22491 -0.0079,-1.460216 -0.0079,-1.460215 H 7.00224 3.9949367 v 2.020253 2.020253 h 2.6886076 c 1.4807347,0 2.6886076,0.01174 2.6886076,0.02613 0,0.01437 -0.052575,0.140828 -0.1168326,0.281013 -0.064258,0.140185 -0.1534676,0.351781 -0.1982437,0.470213 l -0.081411,0.215332 0.134109,0.333693 c 0.07376,0.183531 0.1629697,0.390265 0.1982436,0.459407 0.035274,0.06914 0.064135,0.13993 0.064135,0.157305 0,0.03934 -5.5084997,0.03791 -5.7093057,-0.0015 z M 10.010127,9.0075949 V 6.9873418 H 7.0025316 3.9949367 v 2.0202531 2.0202531 h 3.0075949 3.0075954 z m 7.989873,0 V 6.9873418 H 14.992405 11.98481 V 9.0075949 11.027848 H 14.992405 18 Z"
id="path2" />
<path
style="fill:#2196f3;stroke-width:0.000911392;fill-opacity:1"
d="m 16.426066,21.8414 c -1.029487,-0.09183 -2.15905,-0.487628 -3.013408,-1.055912 -0.958091,-0.637283 -1.676676,-1.447469 -2.190361,-2.46958 -0.23281,-0.463235 -0.231597,-0.392375 -0.01432,-0.836503 0.780517,-1.595445 2.19126,-2.786582 3.914876,-3.305459 1.824557,-0.549264 3.823645,-0.266322 5.413859,0.766254 1.009506,0.655504 1.846896,1.618122 2.329721,2.67812 l 0.123713,0.2716 -0.186695,0.378922 c -0.715355,1.451907 -1.925808,2.556638 -3.464893,3.162265 -0.353851,0.13924 -0.974949,0.300502 -1.400537,0.363635 -0.41,0.06082 -1.110727,0.08244 -1.511952,0.04666 z m 1.285326,-1.547018 c 0.362606,-0.115278 0.723028,-0.320767 0.974453,-0.55557 0.376823,-0.351912 0.585002,-0.684396 0.730974,-1.167446 0.07096,-0.234832 0.08086,-0.319606 0.08086,-0.692885 0,-0.373279 -0.0099,-0.458053 -0.08086,-0.692885 -0.213191,-0.705491 -0.660219,-1.237582 -1.315696,-1.566056 -0.446454,-0.223727 -1.086544,-0.305521 -1.591507,-0.20337 -1.296023,0.262177 -2.165591,1.462516 -2.003867,2.766108 0.133179,1.073496 0.897442,1.909623 1.975264,2.161001 0.268477,0.06262 0.966925,0.03486 1.230379,-0.0489 z"
id="path3" />
<path
style="fill:#2196f3;fill-opacity:1;stroke-width:0.000911392"
d="m 16.70278,18.811229 c -0.316978,-0.113491 -0.534483,-0.329272 -0.63793,-0.632872 -0.06423,-0.188514 -0.04057,-0.52591 0.0503,-0.717166 0.224074,-0.471628 0.817052,-0.692295 1.278645,-0.475827 0.222808,0.104487 0.362138,0.230984 0.471128,0.427734 0.08235,0.148668 0.08951,0.185873 0.08951,0.465383 0,0.280009 -0.0071,0.316545 -0.09017,0.466597 -0.228247,0.412084 -0.739454,0.617254 -1.161479,0.466151 z"
id="path4" />
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 24 24"
version="1.1"
id="svg1"
sodipodi:docname="HorizontalLayout.svg"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="32.916667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="M 20,2 H 4 C 2.9,2 2,2.9 2,4 v 16 c 0,1.1 0.9,2 2,2 h 16 c 1.1,0 2,-0.9 2,-2 V 4 C 22,2.9 21.1,2 20,2 M 6.5,20 H 4 V 4 H 6.5 V 20 M 11,20 H 8.5 V 4 H 11 v 16 m 4.5,0 H 13 V 4 h 2.5 V 20 M 20,20 H 17.5 V 4 H 20 Z"
id="path1"
style="display:none" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 17.513924,12 V 4.0101266 h 1.23038 1.23038 V 12 19.989873 h -1.23038 -1.23038 z"
id="path2" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 13.017722,12 V 4.0101266 h 1.230379 1.23038 V 12 19.989873 h -1.23038 -1.230379 z"
id="path3" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 8.521519,12 V 4.0101266 H 9.7518987 10.982278 V 12 19.989873 H 9.7518987 8.521519 Z"
id="path4" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 4.0253165,12 V 4.0101266 H 5.2556962 6.4860759 V 12 19.989873 H 5.2556962 4.0253165 Z"
id="path5" />
<path
style="fill:#607d8b;fill-opacity:1;stroke-width:0.000911392"
d="M 3.8126582,21.975791 C 3.409833,21.91582 3.0889628,21.785022 2.7913767,21.559483 2.4877736,21.329384 2.2588732,21.010805 2.1154671,20.618767 L 2.035443,20.4 2.0275241,12.098344 C 2.0187718,2.9230804 2.0049609,3.5827436 2.2148669,3.1501174 2.4741771,2.6156669 2.9780349,2.2110802 3.5696203,2.0622805 3.8184349,1.9996968 20.18008,1.99945 20.43038,2.0620261 c 0.694973,0.1737467 1.236637,0.6755781 1.463303,1.3556954 l 0.07087,0.2126582 V 12 20.36962 l -0.07087,0.212658 c -0.220781,0.662458 -0.70682,1.12592 -1.412833,1.347206 -0.142686,0.04472 -0.896441,0.04953 -8.374521,0.05338 -4.5197467,0.0023 -8.2518986,-8.54e-4 -8.2936708,-0.0071 z M 6.5164557,12 V 3.9797468 H 5.2556962 3.9949367 V 12 20.020253 h 1.2607595 1.2607595 z m 4.4962023,0 V 3.9797468 H 9.7518987 8.4911392 V 12 20.020253 h 1.2607595 1.2607593 z m 4.496203,0 V 3.9797468 h -1.26076 -1.260759 V 12 20.020253 h 1.260759 1.26076 z m 4.496202,0 V 3.9797468 h -1.260759 -1.26076 V 12 20.020253 h 1.26076 1.260759 z"
id="path6" />
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 24 24"
version="1.1"
id="svg1"
sodipodi:docname="VerticalLayout.svg"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="32.916667"
inkscape:cx="12"
inkscape:cy="12"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="M 22,20 V 4 C 22,2.9 21.1,2 20,2 H 4 C 2.9,2 2,2.9 2,4 v 16 c 0,1.1 0.9,2 2,2 h 16 c 1.1,0 2,-0.9 2,-2 M 4,6.5 V 4 H 20 V 6.5 H 4 M 4,11 V 8.5 H 20 V 11 H 4 m 0,4.5 V 13 h 16 v 2.5 H 4 M 4,20 V 17.5 H 20 V 20 Z"
id="path1"
style="display:none" />
<path
style="fill:#607d8b;fill-opacity:1;stroke-width:0.000911392"
d="M 3.8126582,21.975791 C 3.409833,21.91582 3.0889628,21.785022 2.7913767,21.559483 2.4877736,21.329384 2.2588732,21.010805 2.1154671,20.618767 L 2.035443,20.4 2.0275241,12.098344 C 2.0187718,2.9230804 2.0049609,3.5827436 2.2148669,3.1501174 2.4741771,2.6156669 2.9780349,2.2110802 3.5696203,2.0622805 3.8184349,1.9996968 20.18008,1.99945 20.43038,2.0620261 c 0.694973,0.1737467 1.236637,0.6755781 1.463303,1.3556954 l 0.07087,0.2126582 V 12 20.36962 l -0.07087,0.212658 c -0.220781,0.662458 -0.70682,1.12592 -1.412833,1.347206 -0.142686,0.04472 -0.896441,0.04953 -8.374521,0.05338 -4.5197467,0.0023 -8.2518986,-8.54e-4 -8.2936708,-0.0071 z M 20.005063,18.759494 v -1.26076 H 12 3.9949367 v 1.26076 1.260759 H 12 20.005063 Z m 0,-4.511393 V 12.972152 H 12 3.9949367 v 1.275949 1.27595 H 12 20.005063 Z m 0,-4.4962023 V 8.4759494 H 12 3.9949367 V 9.7518987 11.027848 H 12 20.005063 Z m 0,-4.5113924 V 3.9797468 H 12 3.9949367 V 5.2405063 6.5012658 H 12 20.005063 Z"
id="path2" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="m 4.0253165,18.759494 v -1.23038 H 12 19.974684 v 1.23038 1.230379 H 12 4.0253165 Z"
id="path3" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 4.0253165,14.248101 V 13.002532 H 12 19.974684 v 1.245569 1.24557 H 12 4.0253165 Z"
id="path4" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 4.0253165,9.7518987 V 8.5063291 H 12 19.974684 V 9.7518987 10.997468 H 12 4.0253165 Z"
id="path5" />
<path
style="fill:#ffffff;fill-opacity:1;stroke-width:0.000911392"
d="M 4.0253165,5.2405063 V 4.0101266 H 12 19.974684 V 5.2405063 6.4708861 H 12 4.0253165 Z"
id="path6" />
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

View File

@ -17,8 +17,4 @@
<PackageReference Include="DotNetZip" Version="1.9.1.8" /> <PackageReference Include="DotNetZip" Version="1.9.1.8" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Resource Include="Assets\CloseFile.ico" />
</ItemGroup>
</Project> </Project>

View File

@ -1,19 +0,0 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace BallanceTasEditor.Converters {
public class NullableIntStringConverter : IValueConverter {
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
throw new NotImplementedException();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
throw new NotImplementedException();
}
}
}

View File

@ -33,6 +33,6 @@ Version: 1.2 stable&#13;
Build Date: October 21, 2025&#13;"/> Build Date: October 21, 2025&#13;"/>
<!-- 确认按钮 --> <!-- 确认按钮 -->
<Button Grid.Row="4" Content="OK" IsDefault="True" Margin="10" Padding="5" MinWidth="80" HorizontalAlignment="Center"/> <Button Grid.Row="4" Content="OK" Margin="10" HorizontalAlignment="Center" Style="{StaticResource OkButtonStyle}" IsDefault="True"/>
</Grid> </Grid>
</Window> </Window>

View File

@ -17,7 +17,7 @@
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical">
<!-- TODO: This icon is wrong. --> <!-- TODO: This icon is wrong. -->
<GroupBox Header="Editor Layout" Margin="10" Padding="10" <GroupBox Header="Editor Layout" Margin="10" Padding="10"
Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Assets/PasteFrame.ico"> Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Assets/EditorLayout.ico">
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>

View File

@ -1,7 +1,7 @@
<Project Sdk="MSTest.Sdk/3.6.4"> <Project Sdk="MSTest.Sdk/3.6.4">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0-windows</TargetFramework>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<!-- <!--
Displays error on console in addition to the log file. Note that this feature comes with a performance impact. Displays error on console in addition to the log file. Note that this feature comes with a performance impact.

View File

@ -1 +1,3 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] using Microsoft.VisualStudio.TestTools.UnitTesting;
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]