more icons

This commit is contained in:
Matt Parker
2025-09-12 21:12:16 +10:00
parent b3a1aaaf5c
commit 42b8dcade9
6 changed files with 108 additions and 15 deletions

View File

@@ -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)
{