Add MD icon

This commit is contained in:
Matt Parker
2025-11-29 11:14:03 +10:00
parent 27a4ced21a
commit 7d71fedb8d
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="mud-icon-root mud-svg-icon mud-error-text mud-icon-size-medium"
focusable="false"
viewBox="0 0 24 24"
aria-hidden="true"
role="img"
style="fill: rgb(40, 167, 69);"
version="1.1"
id="svg1"
sodipodi:docname="MdFile.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="12.15625"
inkscape:cx="-24.92545"
inkscape:cy="12.051414"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<text
xml:space="preserve"
style="font-size:13.3333px;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:none;fill:#548af7;fill-opacity:1;stroke:#548af7;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
x="0.98440278"
y="16.846992"
id="text1"><tspan
sodipodi:role="line"
id="tspan1"
x="0.98440278"
y="16.846992">MD</tspan></text>
<path
d="M 10.919274,16.846992 H 9.6302143 V 8.4941495 L 6.9349086,14.177728 H 6.1666813 L 3.4909069,8.4941495 V 16.846992 H 2.2864828 V 7.1530071 H 4.0442909 L 6.6289198,12.550128 9.1289134,7.1530071 h 1.7903606 z m 10.794243,-4.837227 q 0,1.321611 -0.579425,2.395827 -0.572916,1.074216 -1.529945,1.666663 -0.66406,0.410155 -1.484371,0.592446 -0.8138,0.182291 -2.148432,0.182291 h -2.44791 V 7.1530071 h 2.421869 q 1.419267,0 2.252598,0.2083328 0.839842,0.2018224 1.419267,0.5598944 0.989581,0.618488 1.542965,1.6471313 0.553384,1.0286424 0.553384,2.4413994 z m -1.347653,-0.01953 q 0,-1.13932 -0.397134,-1.920568 -0.397135,-0.7812477 -1.184893,-1.2304653 -0.572915,-0.32552 -1.217445,-0.4492176 -0.644529,-0.130208 -1.542965,-0.130208 h -1.210934 v 7.4804489 h 1.210934 q 0.930988,0 1.62109,-0.136718 0.696613,-0.136718 1.276038,-0.507811 0.722655,-0.462239 1.080727,-1.217445 0.364582,-0.755206 0.364582,-1.888016 z"
id="text1-6"
style="font-size:13.3333px;fill:#548af7;stroke:#548af7;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round"
aria-label="MD" />
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

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

View File

@@ -13,6 +13,7 @@ public partial class SolutionExplorerPanel
private readonly Texture2D _cssIcon = ResourceLoader.Load<Texture2D>("uid://b6m4rm5u8hd1c");
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 _propsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://fa7tdmldi206");
@@ -28,6 +29,7 @@ public partial class SolutionExplorerPanel
".css" => _cssIcon,
".txt" => _txtIcon,
".props" => _genericFileIcon,
".md" => _mdFileIcon,
_ => _csIcon
};
var overlayTexture = fileExtension switch