diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg new file mode 100644 index 0000000..fcdcf62 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg @@ -0,0 +1,53 @@ + + diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg.import b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg.import new file mode 100644 index 0000000..c855845 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg.import @@ -0,0 +1,18 @@ +[remap] + +importer="svg" +type="DPITexture" +uid="uid://brsdisqgeah5n" +path="res://.godot/imported/ConfigFile.svg-39ae74f2a4d35fe0ba98fe2abd073aca.dpitex" + +[deps] + +source_file="res://Features/SolutionExplorer/Resources/FileExtensions/GenericFileAdornments/ConfigFile.svg" +dest_files=["res://.godot/imported/ConfigFile.svg-39ae74f2a4d35fe0ba98fe2abd073aca.dpitex"] + +[params] + +base_scale=1.0 +saturation=1.0 +color_map={} +compress=true diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs index a675331..8415e30 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.FileIcons.cs @@ -1,5 +1,4 @@ - -using Godot; +using Godot; namespace SharpIDE.Godot.Features.SolutionExplorer; @@ -17,6 +16,7 @@ public partial class SolutionExplorerPanel private readonly Texture2D _editorConfigFileIcon = ResourceLoader.Load("uid://5t83l7c7f3g6"); private readonly Texture2D _propsFileOverlayIcon = ResourceLoader.Load("uid://fa7tdmldi206"); + private readonly Texture2D _configFileOverlayIcon = ResourceLoader.Load("uid://brsdisqgeah5n"); private (Texture2D Icon, Texture2D? OverlayIcon) GetIconForFileExtension(string fileExtension) { @@ -29,7 +29,7 @@ public partial class SolutionExplorerPanel ".html" or ".htm" => _htmlIcon, ".css" => _cssIcon, ".txt" => _txtIcon, - ".props" => _genericFileIcon, + ".props" or ".config" => _genericFileIcon, ".md" => _mdFileIcon, ".editorconfig" => _editorConfigFileIcon, _ => _csIcon @@ -37,6 +37,7 @@ public partial class SolutionExplorerPanel var overlayTexture = fileExtension switch { ".props" => _propsFileOverlayIcon, + ".config" => _configFileOverlayIcon, _ => null };