add completions parameter icon

This commit is contained in:
Matt Parker
2025-10-29 18:10:22 +10:00
parent 239fd1b544
commit 0f9947115d
4 changed files with 103 additions and 0 deletions

View File

@@ -518,6 +518,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
SymbolKind.Method => CodeCompletionKind.Function,
SymbolKind.NamedType => CodeCompletionKind.Class,
SymbolKind.Local => CodeCompletionKind.Variable,
SymbolKind.Parameter => CodeCompletionKind.Variable,
SymbolKind.Property => CodeCompletionKind.Member,
SymbolKind.Field => CodeCompletionKind.Member,
_ => CodeCompletionKind.PlainText

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 _parameterIcon = ResourceLoader.Load<Texture2D>("uid://b0bv71yfmd08f");
private readonly Texture2D _propertyIcon = ResourceLoader.Load<Texture2D>("uid://y5pwrwwrjqmc");
private readonly Texture2D _keywordIcon = ResourceLoader.Load<Texture2D>("uid://b0ujhoq2xg2v0");
private readonly Texture2D _namespaceIcon = ResourceLoader.Load<Texture2D>("uid://bob5blfjll4h3");
@@ -31,6 +32,7 @@ public partial class SharpIdeCodeEdit
(SymbolKind.NamedType, _, _) => _csharpClassIcon,
(SymbolKind.Local, _, _) => _localVariableIcon,
(SymbolKind.Field, _, _) => _fieldIcon,
(SymbolKind.Parameter, _, _) => _parameterIcon,
(SymbolKind.Property, _, _) => _propertyIcon,
(SymbolKind.Namespace, _, _) => _namespaceIcon,
(SymbolKind.Event, _, _) => _eventIcon,

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
height="800px"
width="800px"
version="1.1"
id="Capa_1"
viewBox="0 0 525.325 525.325"
xml:space="preserve"
sodipodi:docname="parameter-icon.svg"
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
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="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="0.72937499"
inkscape:cx="161.78235"
inkscape:cy="462.72494"
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" />
<g
id="g1"
transform="matrix(0.90576484,0,0,0.87190645,24.752043,33.686171)">
<path
id="path2"
style="display:inline;fill:#25324d;fill-opacity:1;stroke-width:23.8788;stroke-linecap:round;stroke-linejoin:round"
d="m 264.20297,105.04146 c -2.04505,-0.009 -168.325073,80.97568 -169.360809,82.3213 -1.035743,1.34561 -11.043398,149.3917 -10.034091,150.74615 1.009298,1.35446 155.17702,71.91993 157.22205,71.92878 2.04504,0.009 194.59041,-102.97899 195.62615,-104.32461 1.03573,-1.34562 3.89845,-136.86657 2.88914,-138.22103 -1.0093,-1.35446 -174.29741,-62.44175 -176.34244,-62.45059 z"
sodipodi:nodetypes="sssssss" /><path
style="display:inline;fill:#548af7;fill-opacity:1;stroke:#548af7;stroke-width:18.1475;stroke-dasharray:none;stroke-opacity:1"
d="M 77.470076,178.07793 288.06488,95.708402 c 0.3519,-0.141867 0.71117,-0.105018 1.07044,-0.187006 0.55457,-0.134496 1.09438,-0.299391 1.67107,-0.299391 0.59878,0 1.14597,0.164895 1.71435,0.306762 0.33717,0.08199 0.67433,0.05251 1.0032,0.179635 l 0.28465,0.112386 v 0 l 154.06107,61.559282 c 3.50426,1.37812 5.25639,5.0915 4.42547,8.65656 0.20175,0.67432 0.32979,1.37812 0.32979,2.10403 v 142.05869 c 0,2.7627 -1.52735,5.30891 -3.96118,6.61241 L 238.06157,429.13335 c -0.34453,0.17964 -0.71117,0.28465 -1.07044,0.41178 -0.18701,0.0672 -0.36664,0.15752 -0.56193,0.21003 -0.62182,0.15753 -1.25837,0.25425 -1.89493,0.25425 -0.63654,0 -1.2731,-0.0976 -1.89491,-0.25425 -0.19438,-0.0525 -0.37401,-0.15016 -0.56194,-0.21003 -0.35926,-0.12713 -0.7259,-0.22477 -1.07044,-0.41178 L 76.661253,337.50962 c -2.441184,-1.30258 -3.961174,-3.84879 -3.961174,-6.61241 v -142.0596 c 0,-0.72592 0.134492,-1.42235 0.329796,-2.10404 -0.82357,-3.55677 0.928568,-7.27844 4.440201,-8.65564 z M 234.54165,257.24052 430.49021,166.6649 290.79072,110.72957 94.842161,187.36276 Z M 437.65627,179.85931 242.03012,270.27834 V 410.03769 L 437.65627,305.71308 Z M 87.684394,326.41095 227.0541,410.03769 V 270.27741 L 87.684394,200.55625 Z"
id="path1"
sodipodi:nodetypes="cccsccccccssccccsccccssccccccccccccccccc" /></g>
<path
d="M 132.88577,451.96431 H 88.830779 Q 54.779541,412.91119 35.926313,366.74002 17.073085,320.56885 17.073085,262.66251 q 0,-57.90635 18.853228,-104.07752 18.853228,-46.17117 52.904466,-85.224282 h 44.054991 v 1.923799 q -15.58277,14.043731 -29.81888,32.512203 -14.043731,18.27608 -26.163664,42.70833 -11.542792,23.66272 -18.853228,52.13495 -7.118055,28.47222 -7.118055,60.02252 0,32.89696 6.925676,60.2149 7.118055,27.31794 19.045607,51.94257 11.542793,23.66272 26.356044,42.70833 14.81325,19.23799 29.6265,32.5122 z"
id="text1"
style="font-size:393.994px;fill:#bdc1cb;stroke-width:0.656656;stroke-linecap:round;stroke-linejoin:round"
aria-label="(" /><path
d="m -393.51695,451.96431 h -44.05499 q -34.05124,-39.05312 -52.90446,-85.22429 -18.85323,-46.17117 -18.85323,-104.07751 0,-57.90635 18.85323,-104.07752 18.85322,-46.17117 52.90446,-85.224282 h 44.05499 v 1.923799 q -15.58277,14.043731 -29.81888,32.512203 -14.04373,18.27608 -26.16366,42.70833 -11.54279,23.66272 -18.85323,52.13495 -7.11805,28.47222 -7.11805,60.02252 0,32.89696 6.92567,60.2149 7.11806,27.31794 19.04561,51.94257 11.54279,23.66272 26.35604,42.70833 14.81325,19.23799 29.6265,32.5122 z"
id="text1-8"
style="font-size:393.994px;fill:#bdc1cb;stroke-width:0.656656;stroke-linecap:round;stroke-linejoin:round"
transform="scale(-1,1)"
aria-label="(" /></svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0bv71yfmd08f"
path="res://.godot/imported/parameter-icon.svg-e8efb5295d762320d48b667e0c085211.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Features/Completions/Resources/parameter-icon.svg"
dest_files=["res://.godot/imported/parameter-icon.svg-e8efb5295d762320d48b667e0c085211.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=0.1
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false