From 3345b0ec2c801d556c53256642660b676475cb80 Mon Sep 17 00:00:00 2001 From: Himanshi Goyal Date: Fri, 28 Jun 2024 12:55:00 +0530 Subject: [PATCH] Made the following changes: 1. Changed the KeyboardFocusBorderColor, CalendarViewItemBackgroundPointerOver and CalendarViewSelectedBackground values in High Contrast themes 2. Changed the ListBoxItemSelectedForegroundThemeBrush in the Light and Dark themes 3. Added explicit focus visual style to Button, ComboBox and DataGridCell 4. Updated the focus visual style of Expander 5. Added a Foreground property to ListBoxItem on Selected State --- .../Resources/Theme/Dark.xaml | 2 +- .../Resources/Theme/HC1.xaml | 6 +++--- .../Resources/Theme/HC2.xaml | 6 +++--- .../Resources/Theme/HCBlack.xaml | 6 +++--- .../Resources/Theme/HCWhite.xaml | 4 ++-- .../Resources/Theme/Light.xaml | 2 +- .../Styles/Button.xaml | 20 +++++++++++++++++-- .../Styles/ComboBox.xaml | 18 ++++++++++++++++- .../Styles/DataGrid.xaml | 17 ++++++++++++++++ .../Styles/Expander.xaml | 10 +++++----- .../Styles/ListBoxItem.xaml | 2 +- 11 files changed, 71 insertions(+), 22 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml index efcf3be8f05..4df7c81f930 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml @@ -491,7 +491,7 @@ - + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC1.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC1.xaml index ee7a40d6bbe..843cd1369c2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC1.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC1.xaml @@ -36,7 +36,7 @@ - #3D3D3D + #FFFFFF @@ -242,8 +242,8 @@ - - + + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC2.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC2.xaml index 84cbb305c4d..fbd1c13a086 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC2.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC2.xaml @@ -35,7 +35,7 @@ - #3D3D3D + #FFFFFF @@ -241,8 +241,8 @@ - - + + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCBlack.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCBlack.xaml index 16385cb85aa..3751aba60f3 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCBlack.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCBlack.xaml @@ -35,7 +35,7 @@ - #3D3D3D + #FFFFFF @@ -241,8 +241,8 @@ - - + + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCWhite.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCWhite.xaml index b89a3cbab70..8ab431859e2 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCWhite.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HCWhite.xaml @@ -241,8 +241,8 @@ - - + + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Light.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Light.xaml index 88f1d47ef58..8cff90cb613 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Light.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Light.xaml @@ -486,7 +486,7 @@ - + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Button.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Button.xaml index 12eff1ec156..9c517f33a1b 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Button.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Button.xaml @@ -15,8 +15,24 @@ 1 0,0,8,0 + + + + +