14 lines
520 B
C#
14 lines
520 B
C#
namespace PlotLine.Services;
|
|
|
|
public sealed class ApplicationAppearance
|
|
{
|
|
public string? ThemeKey { get; set; }
|
|
public bool RibbonCollapsed { get; set; }
|
|
public static IReadOnlyDictionary<string, string> Themes { get; } = new Dictionary<string, string>
|
|
{
|
|
["modern-light"] = "Modern Light", ["modern-dark"] = "Modern Dark",
|
|
["warm-light"] = "Warm Light", ["warm-dark"] = "Warm Dark"
|
|
};
|
|
public static bool IsValid(string? theme) => theme is not null && Themes.ContainsKey(theme);
|
|
}
|