- tweak: SVG think

This commit is contained in:
2025-01-18 18:20:11 +03:00
parent c549e449fe
commit 2e3e50e7af
43 changed files with 57 additions and 85 deletions

View File

@@ -208,9 +208,6 @@ public sealed partial class ContentBrowserViewModel : ViewModelBase
public class ContentEntry
{
public static IImage DirImage = new Bitmap(AssetLoader.Open(new Uri("avares://Nebula.Launcher/Assets/dir.png")));
public static IImage IconImage = new Bitmap(AssetLoader.Open(new Uri("avares://Nebula.Launcher/Assets/file.png")));
private readonly Dictionary<string, ContentEntry> _childs = new();
private readonly ContentBrowserViewModel _viewModel;
@@ -229,7 +226,7 @@ public class ContentEntry
public string Name { get; private set; }
public string PathName { get; }
public string ServerName { get; }
public IImage IconPath { get; set; } = DirImage;
public string IconPath { get; set; } = "/Assets/svg/folder.svg";
public ContentEntry? Parent { get; private set; }
public bool IsRoot => Parent == null;
@@ -297,7 +294,7 @@ public class ContentEntry
};
dirEntry.TryAddChild(entry);
entry.IconPath = IconImage;
entry.IconPath = "/Assets/svg/file.svg";
return entry;
}