From 9784a794a8f8a8c5968c55d2c854fc8f596cfb95 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sat, 11 Jul 2026 07:07:01 -0500 Subject: [PATCH] Make hover, pressed, and highlight states visible in high contrast In every built-in Windows high-contrast theme the Control color equals the window surface, so mapping HoverBrush and PressedBrush to Control left every hover, press, and menu/list highlight invisible - including keyboard navigation of the clock and tray context menus, the app's primary surface. Map those brushes to the system Highlight color, and add an OnHoverTextBrush so text and glyphs on the highlighted fill switch to HighlightText and stay legible. In light and dark the new brush equals the primary text color, so their subtle-tint hover states are unchanged. --- DesktopClock/Themes/DarkPalette.xaml | 2 ++ DesktopClock/Themes/FluentTheme.xaml | 17 ++++++++++++++++- DesktopClock/Themes/HighContrastPalette.xaml | 6 ++++-- DesktopClock/Themes/LightPalette.xaml | 2 ++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/DesktopClock/Themes/DarkPalette.xaml b/DesktopClock/Themes/DarkPalette.xaml index 811d6dd..33563d6 100644 --- a/DesktopClock/Themes/DarkPalette.xaml +++ b/DesktopClock/Themes/DarkPalette.xaml @@ -10,6 +10,8 @@ + + diff --git a/DesktopClock/Themes/FluentTheme.xaml b/DesktopClock/Themes/FluentTheme.xaml index 3e94509..40e4230 100644 --- a/DesktopClock/Themes/FluentTheme.xaml +++ b/DesktopClock/Themes/FluentTheme.xaml @@ -48,9 +48,11 @@ + + @@ -114,12 +116,15 @@ + + + @@ -246,9 +251,11 @@ + + @@ -300,7 +307,8 @@ ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" /> - + + + + @@ -767,6 +779,9 @@ + + + diff --git a/DesktopClock/Themes/HighContrastPalette.xaml b/DesktopClock/Themes/HighContrastPalette.xaml index 426fa5a..981a0a2 100644 --- a/DesktopClock/Themes/HighContrastPalette.xaml +++ b/DesktopClock/Themes/HighContrastPalette.xaml @@ -10,8 +10,10 @@ - - + + + + diff --git a/DesktopClock/Themes/LightPalette.xaml b/DesktopClock/Themes/LightPalette.xaml index 19fa2b6..8ecf8a6 100644 --- a/DesktopClock/Themes/LightPalette.xaml +++ b/DesktopClock/Themes/LightPalette.xaml @@ -10,6 +10,8 @@ + +