From b0d40697bb51217129caa0cdc18ef539966bcd14 Mon Sep 17 00:00:00 2001 From: marcchevaldonne Date: Fri, 13 Sep 2024 00:11:26 +0200 Subject: [PATCH] :adhesive_bandage: test --- ch02_DesigningViews/ex_CustomToolbar/App.xaml | 1 + .../ex_CustomToolbar/AppShell.xaml | 2 +- .../ex_CustomToolbar/MainPage.xaml | 17 +++++++++- .../ex_CustomToolbar/MainPage.xaml.cs | 31 ++++++++++++++++++- .../Resources/Themes/ColorBlindTheme.xaml | 10 ++++++ .../Resources/Themes/ColorBlindTheme.xaml.cs | 9 ++++++ .../Resources/Themes/DarkTheme.xaml | 12 +++++++ .../Resources/Themes/DarkTheme.xaml.cs | 9 ++++++ .../Resources/Themes/ICustomTheme.cs | 6 ++++ .../Resources/Themes/LightTheme.xaml | 10 ++++++ .../Resources/Themes/LightTheme.xaml.cs | 9 ++++++ .../ex_CustomToolbar/ex_CustomToolbar.csproj | 2 +- 12 files changed, 114 insertions(+), 4 deletions(-) create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/ColorBlindTheme.xaml create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/ColorBlindTheme.xaml.cs create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/DarkTheme.xaml create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/DarkTheme.xaml.cs create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/ICustomTheme.cs create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/LightTheme.xaml create mode 100644 ch02_DesigningViews/ex_CustomToolbar/Resources/Themes/LightTheme.xaml.cs diff --git a/ch02_DesigningViews/ex_CustomToolbar/App.xaml b/ch02_DesigningViews/ex_CustomToolbar/App.xaml index 4eaeefe..89ed686 100644 --- a/ch02_DesigningViews/ex_CustomToolbar/App.xaml +++ b/ch02_DesigningViews/ex_CustomToolbar/App.xaml @@ -8,6 +8,7 @@ + diff --git a/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml index 811451f..bcc36f2 100644 --- a/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml +++ b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml @@ -7,7 +7,7 @@ xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" Shell.FlyoutBehavior="Disabled" Shell.Padding="0" - Shell.BackgroundColor="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" + Shell.BackgroundColor="{DynamicResource PrimaryBackgroundColor}" Title="ex_CustomToolbar"> @@ -65,11 +65,26 @@ SemanticProperties.Description="Welcome to dot net Multi platform App U I" />