Icons, Style refactor
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FileTime.GuiApp.Models;
|
||||
|
||||
public enum ImagePathType
|
||||
{
|
||||
Asset,
|
||||
Absolute,
|
||||
Raw
|
||||
}
|
||||
Reference in New Issue
Block a user