namespace PlotLine.Services; public sealed class ApplicationAppearance { public string? ThemeKey { get; set; } public bool RibbonCollapsed { get; set; } public static IReadOnlyDictionary Themes { get; } = new Dictionary { ["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); }