From 0e8b12077daf676097d29651b5e1791a10a72fca Mon Sep 17 00:00:00 2001 From: Alexandre Agostinho Date: Sun, 9 Apr 2023 02:53:39 +0200 Subject: [PATCH] :art: add night colors --- MCTG/Views/App.xaml.cs | 7 +++++-- MCTG/Views/ContainerFlyout.xaml | 2 +- MCTG/Views/CustomHeader.xaml | 5 +++-- MCTG/Views/Home.xaml | 20 ++++++++++++-------- MCTG/Views/MyPosts.xaml | 8 +++++--- MCTG/Views/Resources/Styles/Styles.xaml | 10 +++++----- MCTG/Views/ReturnButton.xaml | 2 +- 7 files changed, 32 insertions(+), 22 deletions(-) diff --git a/MCTG/Views/App.xaml.cs b/MCTG/Views/App.xaml.cs index c6726e7..b1bac15 100644 --- a/MCTG/Views/App.xaml.cs +++ b/MCTG/Views/App.xaml.cs @@ -28,8 +28,11 @@ namespace Views #endif }); - MainPage = new MyPosts(); - Application.Current.UserAppTheme = AppTheme.Light; + MainPage = new Home(); + + + + Application.Current.UserAppTheme = AppTheme.Dark; } } } diff --git a/MCTG/Views/ContainerFlyout.xaml b/MCTG/Views/ContainerFlyout.xaml index 87278c8..7f15aa4 100644 --- a/MCTG/Views/ContainerFlyout.xaml +++ b/MCTG/Views/ContainerFlyout.xaml @@ -4,7 +4,7 @@ xmlns:local="clr-namespace:Views" x:Class="Views.ContainerFlyout" x:Name="fl" - BackgroundColor="{StaticResource Secondary}"> + BackgroundColor="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray600}}"> diff --git a/MCTG/Views/CustomHeader.xaml b/MCTG/Views/CustomHeader.xaml index d46be9c..50212be 100644 --- a/MCTG/Views/CustomHeader.xaml +++ b/MCTG/Views/CustomHeader.xaml @@ -2,13 +2,14 @@ + BackgroundColor="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray900}}"> diff --git a/MCTG/Views/Home.xaml b/MCTG/Views/Home.xaml index aa48635..7a1f1ef 100644 --- a/MCTG/Views/Home.xaml +++ b/MCTG/Views/Home.xaml @@ -15,7 +15,8 @@ MaximumHeightRequest="20" Style="{StaticResource button1}"/> + BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray300}}" + Margin="15, 10, 15, 40"/>