diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg new file mode 100644 index 0000000..3a3bb6f --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg.import b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg.import new file mode 100644 index 0000000..f5bca7b --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://xc8srvqwlwng" +path="res://.godot/imported/FolderIcon.svg-05f9ba2264f41d857e2b60f63780a9b4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Features/SolutionExplorer/Resources/FolderIcon.svg" +dest_files=["res://.godot/imported/FolderIcon.svg-05f9ba2264f41d857e2b60f63780a9b4.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/Resources/SlnBaseIcon.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg new file mode 100644 index 0000000..e57b047 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg @@ -0,0 +1,10 @@ + + + + + + + diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg.import b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg.import new file mode 100644 index 0000000..f7d7c39 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dqdimcvjjyyrv" +path="res://.godot/imported/SlnBaseIcon.svg-a052ed45073f34c5707a25f4480eeb96.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Features/SolutionExplorer/Resources/SlnBaseIcon.svg" +dest_files=["res://.godot/imported/SlnBaseIcon.svg-a052ed45073f34c5707a25f4480eeb96.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 0220a5b..c047dd9 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs @@ -12,6 +12,8 @@ public partial class SolutionExplorerPanel : Panel [Export] public Texture2D CsharpFileIcon { get; set; } = null!; + [Export] + public Texture2D FolderIcon { get; set; } = null!; public SharpIdeSolutionModel SolutionModel { get; set; } = null!; private Tree _tree = null!; @@ -93,6 +95,7 @@ public partial class SolutionExplorerPanel : Panel { var folderItem = _tree.CreateItem(projectItem); folderItem.SetText(0, sharpIdeFolder.Name); + folderItem.SetIcon(0, FolderIcon); foreach (var subFolder in sharpIdeFolder.Folders) { diff --git a/src/SharpIDE.Godot/IdeRoot.tscn b/src/SharpIDE.Godot/IdeRoot.tscn index cf7a9ee..e6124f9 100644 --- a/src/SharpIDE.Godot/IdeRoot.tscn +++ b/src/SharpIDE.Godot/IdeRoot.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=15 format=3 uid="uid://b2oniigcp5ew5"] +[gd_scene load_steps=16 format=3 uid="uid://b2oniigcp5ew5"] [ext_resource type="Script" uid="uid://bavypuy7b375x" path="res://IdeRoot.cs" id="1_whawi"] [ext_resource type="Texture2D" uid="uid://bkty6563cthj8" path="res://Features/Run/Resources/Run.svg" id="2_8x8ub"] @@ -10,6 +10,7 @@ [ext_resource type="PackedScene" uid="uid://bcoytt3bw0gpe" path="res://Features/Run/RunPanel.tscn" id="5_y3aoi"] [ext_resource type="Texture2D" uid="uid://do0edciarrnp0" path="res://Features/SolutionExplorer/Resources/CsharpFile.svg" id="6_7ptyn"] [ext_resource type="Script" uid="uid://cvvgp42r3nml8" path="res://Features/BottomPanel/BottomPanelManager.cs" id="7_i62lx"] +[ext_resource type="Texture2D" uid="uid://xc8srvqwlwng" path="res://Features/SolutionExplorer/Resources/FolderIcon.svg" id="7_woo5i"] [ext_resource type="PackedScene" uid="uid://co6dkhdolriej" path="res://Features/Build/BuildPanel.tscn" id="9_rllbf"] [ext_resource type="PackedScene" uid="uid://tqpmww430cor" path="res://Features/Problems/ProblemsPanel.tscn" id="11_b7c1a"] [ext_resource type="PackedScene" uid="uid://dkjips8oudqou" path="res://Features/Debug_/DebugPanel.tscn" id="11_s2dv6"] @@ -121,6 +122,7 @@ unique_name_in_owner = true layout_mode = 2 script = ExtResource("2_tcy02") CsharpFileIcon = ExtResource("6_7ptyn") +FolderIcon = ExtResource("7_woo5i") [node name="Tree" type="Tree" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer/HSplitContainer/SolutionExplorerPanel"] layout_mode = 1