local var icon v2

This commit is contained in:
Matt Parker
2025-10-27 20:43:45 +10:00
parent 076d4ed886
commit eafed42383
3 changed files with 13 additions and 12 deletions

View File

@@ -8,6 +8,7 @@ public partial class SharpIdeCodeEdit
private readonly Texture2D _csharpMethodIcon = ResourceLoader.Load<Texture2D>("uid://b17p18ijhvsep");
private readonly Texture2D _csharpClassIcon = ResourceLoader.Load<Texture2D>("uid://b027uufaewitj");
private readonly Texture2D _csharpInterfaceIcon = ResourceLoader.Load<Texture2D>("uid://bdwmkdweqvowt");
private readonly Texture2D _localVariableIcon = ResourceLoader.Load<Texture2D>("uid://vwvkxlnvqqk3");
private Texture2D? GetIconForCompletion(SymbolKind? symbolKind, TypeKind? typeKind, Accessibility? accessibility)
{
@@ -16,7 +17,7 @@ public partial class SharpIdeCodeEdit
(SymbolKind.Method, _, _) => _csharpMethodIcon,
(_, TypeKind.Interface, _) => _csharpInterfaceIcon,
(SymbolKind.NamedType, _, _) => _csharpClassIcon,
//SymbolKind.Local => ,
(SymbolKind.Local, _, _) => _localVariableIcon,
//SymbolKind.Property => ,
//SymbolKind.Field => ,
_ => null

View File

@@ -23,26 +23,26 @@
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="1.031492"
inkscape:cx="403.2993"
inkscape:cy="390.21146"
inkscape:zoom="0.72937499"
inkscape:cx="-10.968295"
inkscape:cy="324.25022"
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="fill:#25324d;stroke-width:19.6997;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1"
transform="matrix(0.11029462,-1.6488495,1.7174008,0.10885639,75.060033,330.78755)"
d="m 196.71193,95.491228 c 0.10538,1.469263 -49.1559,131.900932 -50.37563,132.726822 -1.21973,0.82589 -159.563072,10.96467 -160.888179,10.3213 -1.325107,-0.64338 -82.483497,-120.50396 -82.588872,-121.97322 -0.105374,-1.46926 63.117739,-131.684781 64.337471,-132.51067 1.219732,-0.825889 160.93366,-12.165503 162.25877,-11.522128 1.32511,0.643375 67.15107,121.488632 67.25644,122.957896 z"
style="display:inline;fill:#25324d;fill-opacity:1;stroke-width:29.5991;stroke-linecap:round;stroke-linejoin:round"
d="m 260.75301,67.293899 c 2.53494,-0.01096 208.64804,100.373741 209.93189,102.041701 1.28386,1.66796 13.68889,185.1791 12.4378,186.85802 -1.25108,1.67893 -192.35032,89.14865 -194.88525,89.15962 C 285.70252,445.36419 47.032102,317.7052 45.74825,316.03724 44.464397,314.36927 40.915914,146.38371 42.166999,144.70478 43.418085,143.02586 258.21808,67.304855 260.75301,67.293899 Z"
sodipodi:nodetypes="sssssss" /><path
style="display:inline;fill:#548af7;fill-opacity:1;stroke:#548af7;stroke-width:19.6997;stroke-dasharray:none;stroke-opacity:1"
d="M 494.23,89.943 265.622,0.528 C 265.24,0.374 264.85,0.414 264.46,0.325 263.858,0.179 263.272,0 262.646,0 c -0.65,0 -1.244,0.179 -1.861,0.333 -0.366,0.089 -0.732,0.057 -1.089,0.195 l -0.309,0.122 v 0 L 31.08,89.943 c -3.804,1.496 -5.706,5.527 -4.804,9.397 -0.219,0.732 -0.358,1.496 -0.358,2.284 v 293.645 c 0,2.999 1.658,5.763 4.3,7.178 l 228.616,121.929 c 0.374,0.195 0.772,0.309 1.162,0.447 0.203,0.073 0.398,0.171 0.61,0.228 0.675,0.171 1.366,0.276 2.057,0.276 0.691,0 1.382,-0.106 2.057,-0.276 0.211,-0.057 0.406,-0.163 0.61,-0.228 0.39,-0.138 0.788,-0.244 1.162,-0.447 L 495.108,402.447 c 2.65,-1.414 4.3,-4.178 4.3,-7.178 V 101.623 c 0,-0.788 -0.146,-1.544 -0.358,-2.284 0.894,-3.861 -1.008,-7.901 -4.82,-9.396 z M 262.655,198.345 49.946,100.022 262.663,16.834 475.372,100.022 Z m -220.488,-84 212.359,98.153 V 503.647 L 42.167,390.399 Z M 483.142,390.399 270.783,503.647 v -291.15 l 212.359,-98.153 z"
id="path1" /></g>
style="display:inline;fill:#548af7;fill-opacity:1;stroke:#548af7;stroke-width:22.4948;stroke-dasharray:none;stroke-opacity:1"
d="M 492.21854,157.82655 231.17488,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 33.088194,132.17043 c -4.343724,1.70826 -6.515586,6.3112 -5.485607,10.73028 -0.250073,0.83586 -0.408795,1.70826 -0.408795,2.60806 v 176.08944 c 0,3.42451 1.893243,6.58068 4.910099,8.19644 L 293.15669,469.02334 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 493.22112,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 297.51982,255.95287 54.63096,143.67948 227.79605,74.344612 470.6849,169.3356 Z M 45.74825,160.03467 288.23745,272.11395 V 445.35324 L 45.74825,316.03724 Z M 479.55734,341.69336 306.80104,445.35324 V 272.1128 l 172.7563,-86.42315 z"
id="path1"
sodipodi:nodetypes="cccsccccccssccccsccccssccccccccccccccccc" /></g>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.1 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