more icons

This commit is contained in:
Matt Parker
2025-09-12 20:53:00 +10:00
parent f0f9bd3b93
commit 2c0cf677ae
6 changed files with 119 additions and 1 deletions

View File

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