From 4ca943e61bde503b8e16c3fce5081bf9a3363e2f Mon Sep 17 00:00:00 2001 From: a-bertrand Date: Tue, 3 Nov 2020 17:09:08 +0100 Subject: [PATCH 1/2] :sparkles::lipstick: add dark theme --- Smartway.UiComponent.Sample/App.xaml | 13 +---- .../Basics/BasicComponents.xaml | 15 +++++ .../Basics/BasicComponents.xaml.cs | 14 +++++ Smartway.UiComponent.Sample/MainPage.xaml | 4 +- Smartway.UiComponent.Sample/MainPage.xaml.cs | 11 +++- .../MainPageViewModel.cs | 6 ++ .../Smartway.UiComponent.Sample.csproj | 6 ++ Smartway.UiComponent/Resources/Themes.xaml | 58 +++++++++++++++++++ Smartway.UiComponent/Resources/Themes.xaml.cs | 14 +++++ .../Smartway.UiComponent.csproj | 6 ++ 10 files changed, 132 insertions(+), 15 deletions(-) create mode 100644 Smartway.UiComponent.Sample/Basics/BasicComponents.xaml create mode 100644 Smartway.UiComponent.Sample/Basics/BasicComponents.xaml.cs create mode 100644 Smartway.UiComponent/Resources/Themes.xaml create mode 100644 Smartway.UiComponent/Resources/Themes.xaml.cs diff --git a/Smartway.UiComponent.Sample/App.xaml b/Smartway.UiComponent.Sample/App.xaml index 4c241ad..6f60ea2 100644 --- a/Smartway.UiComponent.Sample/App.xaml +++ b/Smartway.UiComponent.Sample/App.xaml @@ -4,24 +4,13 @@ xmlns:d="http://xamarin.com/schemas/2014/forms/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:resources="clr-namespace:Smartway.UiComponent.Resources;assembly=Smartway.UiComponent" - xmlns:sample="clr-namespace:Smartway.UiComponent.Sample;assembly=Smartway.UiComponent.Sample" mc:Ignorable="d" x:Class="Smartway.UiComponent.Sample.App"> - - + - \ No newline at end of file diff --git a/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml b/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml new file mode 100644 index 0000000..31323d9 --- /dev/null +++ b/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml @@ -0,0 +1,15 @@ + + + + + + + \ No newline at end of file diff --git a/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml.cs b/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml.cs new file mode 100644 index 0000000..5483e2d --- /dev/null +++ b/Smartway.UiComponent.Sample/Basics/BasicComponents.xaml.cs @@ -0,0 +1,14 @@ +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +namespace Smartway.UiComponent.Sample.Basics +{ + [XamlCompilation(XamlCompilationOptions.Compile)] + public partial class BasicComponents : ContentPage + { + public BasicComponents() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/Smartway.UiComponent.Sample/MainPage.xaml b/Smartway.UiComponent.Sample/MainPage.xaml index 8c9c7da..287b3a4 100644 --- a/Smartway.UiComponent.Sample/MainPage.xaml +++ b/Smartway.UiComponent.Sample/MainPage.xaml @@ -7,8 +7,9 @@ mc:Ignorable="d" x:Class="Smartway.UiComponent.Sample.MainPage" x:DataType="sample:MainPageViewModel"> - +