diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg new file mode 100644 index 0000000..5943231 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg @@ -0,0 +1,89 @@ + + diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg.import b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg.import new file mode 100644 index 0000000..d3c7be1 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/Csproj.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cqt30ma6xgder" +path="res://.godot/imported/Csproj.svg-b6fad87b913cc38bcb396763ad6786ac.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Features/SolutionExplorer/Resources/Csproj.svg" +dest_files=["res://.godot/imported/Csproj.svg-b6fad87b913cc38bcb396763ad6786ac.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs index 20d233e..29bea52 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs @@ -16,6 +16,8 @@ public partial class SolutionExplorerPanel : Panel public Texture2D FolderIcon { get; set; } = null!; [Export] public Texture2D SlnFolderIcon { get; set; } = null!; + [Export] + public Texture2D CsprojIcon { get; set; } = null!; public SharpIdeSolutionModel SolutionModel { get; set; } = null!; private Tree _tree = null!; @@ -82,6 +84,7 @@ public partial class SolutionExplorerPanel : Panel { var projectItem = _tree.CreateItem(parent); projectItem.SetText(0, project.Name); + projectItem.SetIcon(0, CsprojIcon); foreach (var sharpIdeFolder in project.Folders) { diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn index be7835c..5b01292 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=5 format=3 uid="uid://cy1bb32g7j7dr"] +[gd_scene load_steps=6 format=3 uid="uid://cy1bb32g7j7dr"] [ext_resource type="Script" uid="uid://bai53k7ongbxw" path="res://Features/SolutionExplorer/SolutionExplorerPanel.cs" id="1_gjy0r"] [ext_resource type="Texture2D" uid="uid://do0edciarrnp0" path="res://Features/SolutionExplorer/Resources/CsharpFile.svg" id="2_8ymw0"] [ext_resource type="Texture2D" uid="uid://xc8srvqwlwng" path="res://Features/SolutionExplorer/Resources/FolderIcon.svg" id="3_r1qfc"] [ext_resource type="Texture2D" uid="uid://bbfxltr1fcomt" path="res://Features/SolutionExplorer/Resources/SlnFolderIcon.svg" id="4_8ymw0"] +[ext_resource type="Texture2D" uid="uid://cqt30ma6xgder" path="res://Features/SolutionExplorer/Resources/Csproj.svg" id="5_r1qfc"] [node name="SolutionExplorerPanel" type="Panel"] anchors_preset = 15 @@ -15,6 +16,7 @@ script = ExtResource("1_gjy0r") CsharpFileIcon = ExtResource("2_8ymw0") FolderIcon = ExtResource("3_r1qfc") SlnFolderIcon = ExtResource("4_8ymw0") +CsprojIcon = ExtResource("5_r1qfc") [node name="Tree" type="Tree" parent="."] layout_mode = 1