From eafed42383ce12d6dd838125cdb24044e3081ac9 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 27 Oct 2025 20:43:45 +1000 Subject: [PATCH] local var icon v2 --- .../SharpIdeCodeEdit_Completions.cs | 3 ++- .../Resources/local-variable-icon.svg | 20 +++++++++---------- .../Resources/local-variable-icon.svg.import | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs index acdfd6f..f194141 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs @@ -8,6 +8,7 @@ public partial class SharpIdeCodeEdit private readonly Texture2D _csharpMethodIcon = ResourceLoader.Load("uid://b17p18ijhvsep"); private readonly Texture2D _csharpClassIcon = ResourceLoader.Load("uid://b027uufaewitj"); private readonly Texture2D _csharpInterfaceIcon = ResourceLoader.Load("uid://bdwmkdweqvowt"); + private readonly Texture2D _localVariableIcon = ResourceLoader.Load("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 diff --git a/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg b/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg index 61e9be1..d5c3ced 100644 --- a/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg +++ b/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg @@ -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" /> + 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" /> diff --git a/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg.import b/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg.import index f7c57dd..82ba926 100644 --- a/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg.import +++ b/src/SharpIDE.Godot/Features/Completions/Resources/local-variable-icon.svg.import @@ -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