From a7d5c9ae038734aaaafdbe91dda974351983da6d Mon Sep 17 00:00:00 2001 From: Splitwirez <34009058+Splitwirez@users.noreply.github.com> Date: Fri, 14 May 2021 00:10:50 -0700 Subject: [PATCH] New Fluent expander style (#5573) * Updated Fluent theme Expander style. closes #5358 * Fixed padding mismatch between header and content * Fixed CornerRadii, unleashed the c o l o u r e s * Use CornerRadiusFilterConverter instead of expander specific converters * Formatting * Fix default theme in ControlCatalog Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com> Co-authored-by: Max Katz # Conflicts: # src/Avalonia.Themes.Fluent/Controls/Expander.xaml --- samples/ControlCatalog/App.xaml.cs | 8 ++++++++ src/Avalonia.Themes.Fluent/Accents/Base.xaml | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/samples/ControlCatalog/App.xaml.cs b/samples/ControlCatalog/App.xaml.cs index 020fb2fff3..f3ec7b48aa 100644 --- a/samples/ControlCatalog/App.xaml.cs +++ b/samples/ControlCatalog/App.xaml.cs @@ -39,6 +39,10 @@ namespace ControlCatalog public static Styles DefaultLight = new Styles { + new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog")) + { + Source = new Uri("avares://Avalonia.Themes.Fluent/Accents/AccentColors.xaml") + }, new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog")) { Source = new Uri("avares://Avalonia.Themes.Fluent/Accents/Base.xaml") @@ -60,6 +64,10 @@ namespace ControlCatalog public static Styles DefaultDark = new Styles { + new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog")) + { + Source = new Uri("avares://Avalonia.Themes.Fluent/Accents/AccentColors.xaml") + }, new StyleInclude(new Uri("resm:Styles?assembly=ControlCatalog")) { Source = new Uri("avares://Avalonia.Themes.Fluent/Accents/Base.xaml") diff --git a/src/Avalonia.Themes.Fluent/Accents/Base.xaml b/src/Avalonia.Themes.Fluent/Accents/Base.xaml index 8597c76998..1e2acf736d 100644 --- a/src/Avalonia.Themes.Fluent/Accents/Base.xaml +++ b/src/Avalonia.Themes.Fluent/Accents/Base.xaml @@ -1,6 +1,7 @@