From 419956d30f0298681a12af41a56d3e3aaec0b743 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 30 Jul 2024 11:45:36 -0500 Subject: [PATCH] Improve contrast of default themes --- DesktopClock/Data/Theme.cs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/DesktopClock/Data/Theme.cs b/DesktopClock/Data/Theme.cs index 3fe1255..53a6eb4 100644 --- a/DesktopClock/Data/Theme.cs +++ b/DesktopClock/Data/Theme.cs @@ -31,19 +31,20 @@ public Theme(string name, string primaryColor, string secondaryColor) /// Built-in themes that the user can use without specifying their own palettes. /// /// - /// https://www.materialui.co/colors - A100, A700. + /// https://www.materialui.co/colors + /// https://webaim.org/resources/contrastchecker /// public static IReadOnlyList DefaultThemes { get; } = [ - new("Light Text", "#F5F5F5", "#212121"), - new("Dark Text", "#212121", "#F5F5F5"), - new("Red", "#D50000", "#FF8A80"), - new("Pink", "#C51162", "#FF80AB"), - new("Purple", "#AA00FF", "#EA80FC"), - new("Blue", "#2962FF", "#82B1FF"), - new("Cyan", "#00B8D4", "#84FFFF"), - new("Green", "#00C853", "#B9F6CA"), - new("Orange", "#FF6D00", "#FFD180"), + new("Light Text", "#F7F7F7", "#212121"), + new("Dark Text", "#212121", "#F7F7F7"), + new("Red", "#D50000", "#FFC2BD"), + new("Pink", "#C51162", "#FFBDD2"), + new("Purple", "#AA00FF", "#F6CBFB"), + new("Blue", "#2962FF", "#C7DBFF"), + new("Cyan", "#00A8C2", "#A8FFFF"), + new("Green", "#00AD48", "#C9F8D4"), + new("Orange", "#FF6D00", "#FFEFD6"), ]; /// @@ -55,4 +56,4 @@ public static Theme GetRandomDefaultTheme() var index = random.Next(0, DefaultThemes.Count); return DefaultThemes[index]; } -} \ No newline at end of file +}