From 972e7598af7517b244484a7fe0dfd590c82ee786 Mon Sep 17 00:00:00 2001 From: workgroupengineering Date: Tue, 24 Oct 2023 19:11:32 +0200 Subject: [PATCH] fix(CaptionButton): theme used hardcoded Background, Foreground and BorderBrush color (#13373) * fix(CaptionButtons): FluentCaptionButton theme used hardcoded Background, Foreground and BorderBrush color * fix(CaptionButtons): SimpleCaptionButton theme used hardcoded Background, Foreground and BorderBrush color --- .../Accents/FluentControlResources.xaml | 10 +++++++++ .../Controls/CaptionButtons.xaml | 22 ++++++++++++++----- src/Avalonia.Themes.Simple/Accents/Base.xaml | 13 +++++++++++ .../Controls/CaptionButtons.xaml | 20 ++++++++++++----- 4 files changed, 55 insertions(+), 10 deletions(-) diff --git a/src/Avalonia.Themes.Fluent/Accents/FluentControlResources.xaml b/src/Avalonia.Themes.Fluent/Accents/FluentControlResources.xaml index 397f7ec431..73e8595b11 100644 --- a/src/Avalonia.Themes.Fluent/Accents/FluentControlResources.xaml +++ b/src/Avalonia.Themes.Fluent/Accents/FluentControlResources.xaml @@ -784,6 +784,11 @@ + + + + + @@ -1571,6 +1576,11 @@ + + + + + diff --git a/src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml b/src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml index 41d74c6063..cd7335eb53 100644 --- a/src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml +++ b/src/Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml @@ -1,20 +1,32 @@  + + 45 + 30 + - + + + + + + + + - + - - - + + + + diff --git a/src/Avalonia.Themes.Simple/Accents/Base.xaml b/src/Avalonia.Themes.Simple/Accents/Base.xaml index ca5c2e7d30..2dee84ed38 100644 --- a/src/Avalonia.Themes.Simple/Accents/Base.xaml +++ b/src/Avalonia.Themes.Simple/Accents/Base.xaml @@ -39,6 +39,13 @@ + + + + + + + #FF282828 @@ -75,6 +82,12 @@ + + + + + + fonts:Inter#Inter, $Default diff --git a/src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml b/src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml index e5978919fa..bfc095e4c0 100644 --- a/src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml +++ b/src/Avalonia.Themes.Simple/Controls/CaptionButtons.xaml @@ -4,18 +4,28 @@ - + + + + + + + + + 45 + 30 + - + - - - + + +