From 60e3d4d36dae153eb9e6681f1634656f924cb635 Mon Sep 17 00:00:00 2001
From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com>
Date: Sat, 29 Nov 2025 12:17:47 +1000
Subject: [PATCH] image icon
---
.../Resources/FileExtensions/ImageFile.svg | 22 ++++++++-----------
.../SolutionExplorerPanel.FileIcons.cs | 2 ++
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/ImageFile.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/ImageFile.svg
index 887fc7b..2324bd2 100644
--- a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/ImageFile.svg
+++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/ImageFile.svg
@@ -24,24 +24,19 @@
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
- inkscape:zoom="17.191534"
- inkscape:cx="6.3984982"
- inkscape:cy="-0.95977474"
+ inkscape:zoom="64"
+ inkscape:cx="11.5625"
+ inkscape:cy="13.929687"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
-
+ style="fill:#2b3f64;stroke:#5287f1;stroke-linecap:round;stroke-linejoin:round"
+ d="M 6.0309873,3.5219898 H 17.969013 c 1.389984,0 2.508997,1.1190129 2.508997,2.5089975 V 17.969013 c 0,1.389984 -1.119013,2.508997 -2.508997,2.508997 H 6.0309873 c -1.3899846,0 -2.5089975,-1.119013 -2.5089975,-2.508997 V 6.0309873 c 0,-1.3899846 1.1190129,-2.5089975 2.5089975,-2.5089975 z" />
+ d="m 20.47801,14.560411 c 0,0 -1.790682,-2.993353 -3.861044,-3.043701 C 15.60636,11.49213 13.9213,13.044095 13.9213,13.044095 l -8.6106293,7.329793"
+ id="path2"
+ sodipodi:nodetypes="cscc" />
diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs
index 271f718..2a86530 100644
--- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs
+++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs
@@ -15,6 +15,7 @@ public partial class SolutionExplorerPanel
private readonly Texture2D _mdFileIcon = ResourceLoader.Load("uid://8i2y6xjdjno3");
private readonly Texture2D _editorConfigFileIcon = ResourceLoader.Load("uid://5t83l7c7f3g6");
private readonly Texture2D _gitignoreFileIcon = ResourceLoader.Load("uid://qhtsnkua67ds");
+ private readonly Texture2D _imageFileIcon = ResourceLoader.Load("uid://73nvtvnx1tie");
private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load("uid://fa7tdmldi206");
private readonly Texture2D _configFileOverlayIcon = ResourceLoader.Load("uid://brsdisqgeah5n");
@@ -35,6 +36,7 @@ public partial class SolutionExplorerPanel
".md" => _mdFileIcon,
".editorconfig" => _editorConfigFileIcon,
".gitignore" => _gitignoreFileIcon,
+ ".png" or ".jpg" or ".jpeg" or ".gif" or ".bmp" or ".svg" or ".ico" or ".avif" or ".webp" => _imageFileIcon,
_ => _csIcon
};
var overlayTexture = fileExtension switch