.gitignore icon

This commit is contained in:
Matt Parker
2025-11-29 11:48:32 +10:00
parent efbe811593
commit 2ce588d60a
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?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="GitIgnoreFile.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.383068"
inkscape:cx="6.4566664"
inkscape:cy="13.305968"
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
id="path1"
style="fill:#4b4d50;stroke:#c0c0c0;stroke-linecap:round;stroke-linejoin:round"
d="M 12,4.5546877 A 7.4455252,7.4455252 0 0 0 4.5546877,12 7.4455252,7.4455252 0 0 0 6.7343752,17.265625 7.4455252,7.4455252 0 0 0 12,19.445312 7.4455252,7.4455252 0 0 0 19.445312,12 7.4455252,7.4455252 0 0 0 17.265625,6.7343752 7.4455252,7.4455252 0 0 0 12,4.5546877 Z" />
<path
style="fill:#4b4d50;fill-opacity:1;stroke:#c0c0c0;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="M 6.7343752,17.265625 17.265625,6.7343752"
id="path2" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

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

View File

@@ -14,6 +14,7 @@ public partial class SolutionExplorerPanel
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 _gitignoreFileIcon = ResourceLoader.Load<Texture2D>("uid://qhtsnkua67ds");
private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://fa7tdmldi206");
private readonly Texture2D _configFileOverlayIcon = ResourceLoader.Load<Texture2D>("uid://brsdisqgeah5n");
@@ -32,6 +33,7 @@ public partial class SolutionExplorerPanel
".props" or ".config" => _genericFileIcon,
".md" => _mdFileIcon,
".editorconfig" => _editorConfigFileIcon,
".gitignore" => _gitignoreFileIcon,
_ => _csIcon
};
var overlayTexture = fileExtension switch