19 lines
803 B
C#
19 lines
803 B
C#
namespace PlotLine.Services;
|
|
|
|
public sealed class ApplicationAppearance
|
|
{
|
|
public const string DefaultTheme = "plotdirector";
|
|
public string? ThemeKey { get; set; }
|
|
public bool RibbonCollapsed { get; set; }
|
|
public bool ShowProjectContextMenu { get; set; } = true;
|
|
public bool ShowBookContextMenu { get; set; } = true;
|
|
public static IReadOnlyDictionary<string, string> Themes { get; } = new Dictionary<string, string>
|
|
{
|
|
["plotdirector"] = "PlotDirector",
|
|
["modern-light"] = "Modern Light", ["modern-dark"] = "Modern Dark",
|
|
["warm-light"] = "Warm Light", ["warm-dark"] = "Warm Dark",
|
|
["rose-pink"] = "Rose Pink", ["baby-blue"] = "Baby Blue"
|
|
};
|
|
public static bool IsValid(string? theme) => theme is not null && Themes.ContainsKey(theme);
|
|
}
|