From 34ceb883845b995acbc28cb4ab4b8dc8ac52cd90 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:13:07 +1000 Subject: [PATCH] property icon v2 --- .../SharpIdeCodeEdit_Completions.cs | 3 +- .../Completions/Resources/property-icon.svg | 45 +++++++++---------- .../Resources/property-icon.svg.import | 2 +- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs index d9b786d..a126d88 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_Completions.cs @@ -10,6 +10,7 @@ public partial class SharpIdeCodeEdit private readonly Texture2D _csharpInterfaceIcon = ResourceLoader.Load("uid://bdwmkdweqvowt"); private readonly Texture2D _localVariableIcon = ResourceLoader.Load("uid://vwvkxlnvqqk3"); private readonly Texture2D _fieldIcon = ResourceLoader.Load("uid://c4y7d5m4upfju"); + private readonly Texture2D _propertyIcon = ResourceLoader.Load("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; diff --git a/src/SharpIDE.Godot/Features/Completions/Resources/property-icon.svg b/src/SharpIDE.Godot/Features/Completions/Resources/property-icon.svg index 8842c58..2a3c536 100644 --- a/src/SharpIDE.Godot/Features/Completions/Resources/property-icon.svg +++ b/src/SharpIDE.Godot/Features/Completions/Resources/property-icon.svg @@ -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" /> -