This commit is contained in:
Matt Parker
2025-09-12 21:30:22 +10:00
parent 1ef12d4bf9
commit 5179802f48
4 changed files with 119 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ public partial class SolutionExplorerPanel : Panel
public Texture2D SlnFolderIcon { get; set; } = null!;
[Export]
public Texture2D CsprojIcon { get; set; } = null!;
[Export]
public Texture2D SlnIcon { get; set; } = null!;
public SharpIdeSolutionModel SolutionModel { get; set; } = null!;
private Tree _tree = null!;
@@ -44,6 +46,7 @@ public partial class SolutionExplorerPanel : Panel
var rootItem = _tree.CreateItem();
rootItem.SetText(0, SolutionModel.Name);
rootItem.SetIcon(0, SlnIcon);
// Add projects directly under solution
foreach (var project in SolutionModel.Projects)