- tweak: SVG think
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ public partial class ServerListViewModel : ViewModelBase
|
||||
//Design think
|
||||
protected override void InitialiseInDesignMode()
|
||||
{
|
||||
Console.WriteLine("SOSAL");
|
||||
ServerInfos.Add(CreateServerView(new ServerHubInfo("ss14://localhost",
|
||||
new ServerStatus("Nebula", "TestCraft", ["16+", "RU"], "super", 12, 55, 1, false, DateTime.Now, 20), [])));
|
||||
ServerInfos.Add(CreateServerView(new ServerHubInfo("ss14://localhost",
|
||||
@@ -38,7 +37,6 @@ public partial class ServerListViewModel : ViewModelBase
|
||||
//real think
|
||||
protected override void Initialise()
|
||||
{
|
||||
Console.WriteLine("SOSAL!!");
|
||||
foreach (var info in HubService.ServerList) UnsortedServers.Add(info);
|
||||
|
||||
HubService.HubServerChangedEventArgs += HubServerChangedEventArgs;
|
||||
|
||||
Reference in New Issue
Block a user