xml icon v1

This commit is contained in:
Matt Parker
2025-11-29 12:38:02 +10:00
parent ff99b22e61
commit 4a23208b2d
3 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<?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="XmlFile.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="24.3125"
inkscape:cx="-2.9203085"
inkscape:cy="11.825193"
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
x="12.026042"
y="14.104163"
text-anchor="middle"
dominant-baseline="middle"
font-family="'Segoe UI', Roboto, Helvetica, Arial, sans-serif"
font-size="16px"
font-weight="700"
id="text1"
style="font-size:21.3333px;letter-spacing:-1px;word-spacing:0px;display:none;fill:#c77d55;fill-opacity:1"><tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:condensed;font-size:21.3333px;font-family:Arial;-inkscape-font-specification:'Arial Condensed';letter-spacing:-1px;word-spacing:0px"
id="tspan1"
dx="0">&lt;/&gt;</tspan></text>
<path
style="font-stretch:condensed;font-size:21.3333px;font-family:Arial;-inkscape-font-specification:'Arial Condensed';letter-spacing:-1px;word-spacing:0px;dominant-baseline:middle;text-anchor:middle;fill:#c77d55"
d="M 1.3125188,12.958332 V 11.208335 L 9.6041724,6.937508 V 8.8020884 L 3.0312661,12.09375 9.6041724,15.416661 v 1.864581 z M 9.5937541,19.895821 13.218748,4.1041791 H 14.45833 L 10.822919,19.895821 Z m 13.0937279,-6.937489 -8.291654,4.32291 V 15.416661 L 20.968734,12.09375 14.395828,8.8020884 V 6.937508 l 8.291654,4.270827 z"
id="text1-1"
aria-label="&lt;/&gt;" />
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

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

View File

@@ -17,6 +17,7 @@ public partial class SolutionExplorerPanel
private readonly Texture2D _gitignoreFileIcon = ResourceLoader.Load<Texture2D>("uid://qhtsnkua67ds");
private readonly Texture2D _imageFileIcon = ResourceLoader.Load<Texture2D>("uid://73nvtvnx1tie");
private readonly Texture2D _fSharpIcon = ResourceLoader.Load<Texture2D>("uid://xa0ntrn7vvbr");
private readonly Texture2D _xmlIcon = ResourceLoader.Load<Texture2D>("uid://p5jl3uv51irw");
private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://fa7tdmldi206");
private readonly Texture2D _configFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://brsdisqgeah5n");
@@ -39,6 +40,7 @@ public partial class SolutionExplorerPanel
".gitignore" => _gitignoreFileIcon,
".png" or ".jpg" or ".jpeg" or ".gif" or ".bmp" or ".svg" or ".ico" or ".avif" or ".webp" => _imageFileIcon,
".fs" => _fSharpIcon,
".xml" or ".nuspec" => _xmlIcon,
_ => _csIcon
};
var overlayTexture = fileExtension switch