namespace PlotLine.Services; public sealed class ApplicationAppearance { public string ToastPosition { get; set; } = "bottom-left"; public static bool IsValidToastPosition(string? position) => position is "bottom-left" or "bottom-right"; 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 Themes { get; } = new Dictionary { ["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); }