namespace PlotLine.Services; public sealed class ApplicationAppearance { 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 Themes { get; } = new Dictionary { ["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); }