.editorconfig icon

This commit is contained in:
Matt Parker
2025-11-29 11:21:18 +10:00
parent 61e67fb799
commit 5763c9efa1
4 changed files with 60 additions and 40 deletions

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="mud-icon-root mud-icon-default mud-svg-icon mud-icon-size-medium"
focusable="false"
viewBox="0 0 24 24"
aria-hidden="true"
role="img"
version="1.1"
id="svg2"
sodipodi:docname="EditorConfigFile.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="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="17.191534"
inkscape:cx="-9.5395795"
inkscape:cy="16.607012"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
d="m 17.433484,12.715333 c 0.03044,-0.228298 0.04566,-0.464206 0.04566,-0.715333 0,-0.243517 -0.01522,-0.487035 -0.05327,-0.715333 L 18.970688,10.0823 c 0.136979,-0.1065392 0.175029,-0.3120071 0.09132,-0.4642055 L 17.600902,7.0916004 C 17.509583,6.9241821 17.319335,6.8709127 17.151917,6.9241821 L 15.333146,7.6547346 C 14.95265,7.3655576 14.549324,7.1220401 14.100338,6.939402 L 13.826381,5.0064818 C 13.795942,4.8238437 13.643743,4.694475 13.461105,4.694475 h -2.92221 c -0.182638,0 -0.327227,0.1293687 -0.357666,0.3120068 L 9.9072716,6.939402 C 9.4582862,7.1220401 9.0473504,7.3731675 8.6744642,7.6547346 L 6.8556929,6.9241821 c -0.1674182,-0.060879 -0.3576663,0 -0.4489854,0.1674183 L 4.9532125,9.6180945 C 4.8618934,9.7779028 4.8923331,9.9757608 5.0445315,10.0823 l 1.5448142,1.202367 C 6.5512961,11.512965 6.5208564,11.764092 6.5208564,12 c 0,0.235908 0.01522,0.487035 0.053269,0.715333 L 5.0293117,13.9177 c -0.1369786,0.106539 -0.1750282,0.312007 -0.091319,0.464206 l 1.461105,2.526494 c 0.091319,0.167418 0.2815671,0.220687 0.4489854,0.167418 l 1.8187713,-0.730553 c 0.3804961,0.289177 0.783822,0.532695 1.2328074,0.715333 l 0.2739572,1.93292 c 0.03805,0.182638 0.182638,0.312007 0.365276,0.312007 h 2.92221 c 0.182638,0 0.334837,-0.129369 0.357666,-0.312007 l 0.273958,-1.93292 c 0.448985,-0.182638 0.859921,-0.426156 1.232807,-0.715333 l 1.818771,0.730553 c 0.167418,0.06088 0.357666,0 0.448986,-0.167418 l 1.461105,-2.526494 c 0.09132,-0.167419 0.05327,-0.357667 -0.09132,-0.464206 z M 12,14.739572 c -1.506765,0 -2.7395718,-1.232807 -2.7395718,-2.739572 0,-1.506765 1.2328068,-2.7395719 2.7395718,-2.7395719 1.506765,0 2.739572,1.2328069 2.739572,2.7395719 0,1.506765 -1.232807,2.739572 -2.739572,2.739572 z"
id="path2"
style="display:inline;fill:#2d2d2d;fill-opacity:1;stroke:#c0c0c0;stroke-width:1;stroke-opacity:1;stroke-dasharray:none" />
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,18 @@
[remap]
importer="svg"
type="DPITexture"
uid="uid://5t83l7c7f3g6"
path="res://.godot/imported/EditorConfigFile.svg-b0aa3b42c9d3a42f4472a42fe88df1a6.dpitex"
[deps]
source_file="res://Features/SolutionExplorer/Resources/FileExtensions/EditorConfigFile.svg"
dest_files=["res://.godot/imported/EditorConfigFile.svg-b0aa3b42c9d3a42f4472a42fe88df1a6.dpitex"]
[params]
base_scale=1.0
saturation=1.0
color_map={}
compress=true

View File

@@ -1,40 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="mud-icon-root mud-icon-default mud-svg-icon mud-icon-size-medium"
focusable="false"
viewBox="0 0 24 24"
aria-hidden="true"
role="img"
version="1.1"
id="svg2"
sodipodi:docname="ConfigFile.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="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="34.383067"
inkscape:cx="6.4566665"
inkscape:cy="14.498416"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
d="m 19.14,12.94 c 0.04,-0.3 0.06,-0.61 0.06,-0.94 0,-0.32 -0.02,-0.64 -0.07,-0.94 L 21.16,9.48 C 21.34,9.34 21.39,9.07 21.28,8.87 L 19.36,5.55 C 19.24,5.33 18.99,5.26 18.77,5.33 L 16.38,6.29 C 15.88,5.91 15.35,5.59 14.76,5.35 L 14.4,2.81 C 14.36,2.57 14.16,2.4 13.92,2.4 H 10.08 C 9.8399998,2.4 9.6500001,2.57 9.6100001,2.81 l -0.36,2.54 c -0.59,0.24 -1.13,0.57 -1.62,0.94 l -2.39,-0.96 c -0.22,-0.08 -0.47,0 -0.59,0.22 l -1.91,3.32 c -0.12,0.21 -0.08,0.47 0.12,0.61 l 2.03,1.58 c -0.05,0.3 -0.09,0.63 -0.09,0.94 0,0.31 0.02,0.64 0.07,0.94 l -2.03,1.58 c -0.18,0.14 -0.23,0.41 -0.12,0.61 l 1.92,3.32 c 0.12,0.22 0.37,0.29 0.59,0.22 l 2.39,-0.96 c 0.5,0.38 1.03,0.7 1.6200001,0.94 l 0.36,2.54 c 0.05,0.24 0.2399997,0.41 0.4799998,0.41 h 3.84 c 0.24,0 0.44,-0.17 0.47,-0.41 l 0.36,-2.54 c 0.59,-0.24 1.13,-0.56 1.62,-0.94 l 2.39,0.96 c 0.22,0.08 0.47,0 0.59,-0.22 l 1.92,-3.32 c 0.12,-0.22 0.07,-0.47 -0.12,-0.61 z M 12,15.6 C 10.02,15.6 8.4000001,13.98 8.4000001,12 8.4000001,10.02 10.02,8.4 12,8.4 c 1.98,0 3.6,1.62 3.6,3.6 0,1.98 -1.62,3.6 -3.6,3.6 z"
id="path2"
style="display:inline;fill:#c0c0c0;fill-opacity:1" />
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -14,6 +14,7 @@ public partial class SolutionExplorerPanel
private readonly Texture2D _txtIcon = ResourceLoader.Load<Texture2D>("uid://b6bpjhs2o1j2l");
private readonly Texture2D _genericFileIcon = ResourceLoader.Load<Texture2D>("uid://bile1h6sq0l08");
private readonly Texture2D _mdFileIcon = ResourceLoader.Load<Texture2D>("uid://8i2y6xjdjno3");
private readonly Texture2D _editorConfigFileIcon = ResourceLoader.Load<Texture2D>("uid://5t83l7c7f3g6");
private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://fa7tdmldi206");
@@ -30,6 +31,7 @@ public partial class SolutionExplorerPanel
".txt" => _txtIcon,
".props" => _genericFileIcon,
".md" => _mdFileIcon,
".editorconfig" => _editorConfigFileIcon,
_ => _csIcon
};
var overlayTexture = fileExtension switch