property icon v2

This commit is contained in:
Matt Parker
2025-10-27 21:13:07 +10:00
parent 1892e7a30a
commit 34ceb88384
3 changed files with 23 additions and 27 deletions

View File

@@ -10,6 +10,7 @@ public partial class SharpIdeCodeEdit
private readonly Texture2D _csharpInterfaceIcon = ResourceLoader.Load<Texture2D>("uid://bdwmkdweqvowt");
private readonly Texture2D _localVariableIcon = ResourceLoader.Load<Texture2D>("uid://vwvkxlnvqqk3");
private readonly Texture2D _fieldIcon = ResourceLoader.Load<Texture2D>("uid://c4y7d5m4upfju");
private readonly Texture2D _propertyIcon = ResourceLoader.Load<Texture2D>("uid://y5pwrwwrjqmc");
private Texture2D? GetIconForCompletion(SymbolKind? symbolKind, TypeKind? typeKind, Accessibility? accessibility)
{
@@ -20,7 +21,7 @@ public partial class SharpIdeCodeEdit
(SymbolKind.NamedType, _, _) => _csharpClassIcon,
(SymbolKind.Local, _, _) => _localVariableIcon,
(SymbolKind.Field, _, _) => _fieldIcon,
//SymbolKind.Property => ,
(SymbolKind.Property, _, _) => _propertyIcon,
_ => null
};
return texture;

View File

@@ -23,42 +23,37 @@
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="0.3646875"
inkscape:cx="-1116.024"
inkscape:cy="154.92717"
inkscape:zoom="0.72937499"
inkscape:cx="45.244217"
inkscape:cy="351.67096"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="Capa_1" />
inkscape:current-layer="g1" />
<g
id="g1"
transform="matrix(1.0007541,0,0,0.96334492,-0.19807395,9.6729914)">
<path
id="path2"
style="display:none;fill:#25324d;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="M 264.57199,67.293899 C 262.03705,67.282939 55.923952,167.66764 54.640102,169.3356 c -1.28386,1.66796 -13.68889,185.1791 -12.4378,186.85802 1.25108,1.67893 192.350318,89.14865 194.885248,89.15962 2.53493,0.0109 241.20535,-127.64804 242.4892,-129.316 1.28385,-1.66797 4.83234,-169.65353 3.58125,-171.33246 -1.25108,-1.67892 -216.05108,-77.399925 -218.58601,-77.410881 z"
sodipodi:nodetypes="sssssss" /><path
id="path2-2-1"
style="display:inline;fill:#583234;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="m -264.13205,6.582281 c -2.53494,-0.011 -167.75799,99.718319 -169.04184,101.386279 -1.28386,1.66796 -1.25109,164.18967 0,165.86859 1.25108,1.67893 213.33689,129.46253 215.87182,129.4735 2.53493,0.0109 167.757999,-99.71831 169.041849,-101.38627 1.28385,-1.66797 1.25109,-164.18967 0,-165.8686 C -49.511301,134.37686 -261.59712,6.593241 -264.13205,6.582281 Z"
sodipodi:nodetypes="sssssss"
inkscape:label="red-bg" /><path
id="path2-2"
style="display:inline;fill:#304434;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="m -433.1739,107.96856 c -2.53494,-0.011 -167.75799,99.71832 -169.04184,101.38628 -1.28386,1.66796 -1.25109,164.18967 0,165.86859 1.25108,1.67893 213.33689,129.46253 215.87182,129.4735 2.53493,0.0109 167.758,-99.71831 169.04185,-101.38627 1.28385,-1.66797 1.25109,-164.18967 0,-165.8686 -1.25108,-1.67892 -213.3369,-129.46254 -215.87183,-129.4735 z"
sodipodi:nodetypes="sssssss"
inkscape:label="green-bg" /><path
style="display:inline;fill:#548af7;fill-opacity:1;stroke:#548af7;stroke-width:22.4948;stroke-dasharray:none;stroke-opacity:1"
d="M 33.106462,157.82655 294.15012,55.725063 c 0.4362,-0.175851 0.88154,-0.130175 1.32687,-0.231803 0.68742,-0.166715 1.35655,-0.371112 2.07138,-0.371112 0.74222,0 1.4205,0.204397 2.12504,0.380248 0.41793,0.10163 0.83586,0.06509 1.24351,0.222667 l 0.35284,0.139309 v 0 l 190.96705,76.306058 c 4.34372,1.70826 6.51558,6.3112 5.4856,10.73028 0.25008,0.83586 0.4088,1.70826 0.4088,2.60806 v 176.08944 c 0,3.42451 -1.89324,6.58068 -4.9101,8.19644 l -261.0528,139.22869 c -0.42706,0.22267 -0.88153,0.35284 -1.32686,0.51042 -0.23181,0.0833 -0.45447,0.19526 -0.69655,0.26035 -0.77077,0.19527 -1.55981,0.31516 -2.34886,0.31516 -0.78903,0 -1.57808,-0.12104 -2.34885,-0.31516 -0.24094,-0.0651 -0.4636,-0.18613 -0.69655,-0.26035 -0.44533,-0.15758 -0.8998,-0.27861 -1.32687,-0.51042 L 32.103882,355.45077 c -3.02598,-1.61462 -4.91009,-4.77079 -4.91009,-8.19644 V 171.16376 c 0,-0.89982 0.16671,-1.76308 0.4088,-2.60807 -1.02086,-4.40881 1.15101,-9.02202 5.50387,-10.72914 z M 227.80518,255.95287 470.69404,143.67948 297.52895,74.344612 54.640102,169.3356 Z m 251.77157,-95.9182 -242.4892,112.07928 v 173.23929 l 242.4892,-129.316 z M 45.767662,341.69336 218.52396,445.35324 V 272.1128 L 45.767662,185.68965 Z"
id="path1"
sodipodi:nodetypes="cccsccccccssccccsccccssccccccccccccccccc" /><g
<g
id="g6"
transform="translate(-232.18689,58.813959)"><g
transform="matrix(0.87189869,0,0,0.87189869,343.79363,91.003685)"><path
id="path2-2-1"
style="display:inline;fill:#583234;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="m -264.13205,6.582281 c -2.53494,-0.011 -167.75799,99.718319 -169.04184,101.386279 -1.28386,1.66796 -1.25109,164.18967 0,165.86859 1.25108,1.67893 213.33689,129.46253 215.87182,129.4735 2.53493,0.0109 167.757999,-99.71831 169.041849,-101.38627 1.28385,-1.66797 1.25109,-164.18967 0,-165.8686 C -49.511301,134.37686 -261.59712,6.593241 -264.13205,6.582281 Z"
sodipodi:nodetypes="sssssss"
inkscape:label="red-bg"
transform="translate(232.18689,-58.813959)" /><path
id="path2-2"
style="display:inline;fill:#304434;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="m -433.1739,107.96856 c -2.53494,-0.011 -167.75799,99.71832 -169.04184,101.38628 -1.28386,1.66796 -1.25109,164.18967 0,165.86859 1.25108,1.67893 213.33689,129.46253 215.87182,129.4735 2.53493,0.0109 167.758,-99.71831 169.04185,-101.38627 1.28385,-1.66797 1.25109,-164.18967 0,-165.8686 -1.25108,-1.67892 -213.3369,-129.46254 -215.87183,-129.4735 z"
sodipodi:nodetypes="sssssss"
inkscape:label="green-bg"
transform="translate(232.18689,-58.813959)" /><g
id="g18"
inkscape:label="red"><path
inkscape:label="red"
transform="translate(-1.5360302e-6)"><path
style="fill:none;stroke:#db5c5c;stroke-width:26.7512;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="M -200.98701,49.154601 -31.945154,-52.231678"
id="path13" /><path

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -38,6 +38,6 @@ process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
svg/scale=0.1
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false