diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg index faca9d5..b15e5ae 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/FolderIcon.svg @@ -9,13 +9,12 @@ id="svg1" sodipodi:docname="FolderIcon.svg" inkscape:version="1.4.2 (f4327f4, 2025-05-13)" + xml:space="preserve" 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"> - - - - - - - + style="stroke-width:0.9;stroke-dasharray:none" /> diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg index e57b047..2e4a3ad 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnBaseIcon.svg @@ -1,6 +1,5 @@ - diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg new file mode 100644 index 0000000..82ba068 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg @@ -0,0 +1,58 @@ + + diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg.import b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg.import new file mode 100644 index 0000000..3de6ec9 --- /dev/null +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/Resources/SlnFolderIcon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bbfxltr1fcomt" +path="res://.godot/imported/SlnFolderIcon.svg-910fde89fc1aa60f75975300405b0582.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Features/SolutionExplorer/Resources/SlnFolderIcon.svg" +dest_files=["res://.godot/imported/SlnFolderIcon.svg-910fde89fc1aa60f75975300405b0582.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 c047dd9..20d233e 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.cs @@ -14,6 +14,8 @@ public partial class SolutionExplorerPanel : Panel public Texture2D CsharpFileIcon { get; set; } = null!; [Export] public Texture2D FolderIcon { get; set; } = null!; + [Export] + public Texture2D SlnFolderIcon { get; set; } = null!; public SharpIdeSolutionModel SolutionModel { get; set; } = null!; private Tree _tree = null!; @@ -58,6 +60,7 @@ public partial class SolutionExplorerPanel : Panel { var folderItem = _tree.CreateItem(parent); folderItem.SetText(0, folder.Name); + folderItem.SetIcon(0, SlnFolderIcon); foreach (var project in folder.Projects) { diff --git a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn index 2dcea77..be7835c 100644 --- a/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn +++ b/src/SharpIDE.Godot/Features/SolutionExplorer/SolutionExplorerPanel.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://cy1bb32g7j7dr"] +[gd_scene load_steps=5 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"] [node name="SolutionExplorerPanel" type="Panel"] anchors_preset = 15 @@ -13,6 +14,7 @@ grow_vertical = 2 script = ExtResource("1_gjy0r") CsharpFileIcon = ExtResource("2_8ymw0") FolderIcon = ExtResource("3_r1qfc") +SlnFolderIcon = ExtResource("4_8ymw0") [node name="Tree" type="Tree" parent="."] layout_mode = 1