Icons, Style refactor

This commit is contained in:
2022-05-16 21:48:29 +02:00
parent b260b4d58a
commit 836c39c80c
17 changed files with 1699 additions and 182 deletions

View File

@@ -0,0 +1,10 @@
using FileTime.Core.Models;
using FileTime.GuiApp.Models;
namespace FileTime.GuiApp.IconProviders;
public interface IIconProvider
{
ImagePath GetImage(IItem item);
bool EnableAdvancedIcons { get; set; }
}

View File

@@ -0,0 +1,20 @@
namespace FileTime.GuiApp.Models;
public class ImagePath
{
public string? Path { get; }
public ImagePathType Type { get; }
public object? Image { get; }
public ImagePath(ImagePathType type, string path)
{
Path = path;
Type = type;
}
public ImagePath(ImagePathType type, object image)
{
Image = image;
Type = type;
}
}

View File

@@ -0,0 +1,8 @@
namespace FileTime.GuiApp.Models;
public enum ImagePathType
{
Asset,
Absolute,
Raw
}