From 18c2c1433b80a2f2aab173540911060983f6b436 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 1 Jun 2019 23:42:42 -0400 Subject: [PATCH] stub black theme --- src/App/App.csproj | 3 +++ src/App/Styles/Black.xaml | 39 +++++++++++++++++++++++++++++++ src/App/Styles/Black.xaml.cs | 12 ++++++++++ src/App/Utilities/ThemeManager.cs | 4 ++++ 4 files changed, 58 insertions(+) create mode 100644 src/App/Styles/Black.xaml create mode 100644 src/App/Styles/Black.xaml.cs diff --git a/src/App/App.csproj b/src/App/App.csproj index bad4ed32c..2e27b8e4a 100644 --- a/src/App/App.csproj +++ b/src/App/App.csproj @@ -114,6 +114,9 @@ True True + + Black.xaml + Variables.xaml diff --git a/src/App/Styles/Black.xaml b/src/App/Styles/Black.xaml new file mode 100644 index 000000000..6e07bb77d --- /dev/null +++ b/src/App/Styles/Black.xaml @@ -0,0 +1,39 @@ + + + #ffffff + #52bdfb + #ff3e24 + #00a65a + #555555 + #bf7e16 + #a3a3a3 + #52bdfb + #ff7c70 + #e0e0e0 + + #191919 + #c7c7cd + + #191919 + #52bdfb + + #ffffff + #ffffff + #707070 + + #191919 + #52bdfb + + #B9B9B9 + #000000 + #52bdfb + + #52bdfb + #3ea1da + + #212121 + #C0C0C0 + #52bdfb + diff --git a/src/App/Styles/Black.xaml.cs b/src/App/Styles/Black.xaml.cs new file mode 100644 index 000000000..24787b6b7 --- /dev/null +++ b/src/App/Styles/Black.xaml.cs @@ -0,0 +1,12 @@ +using Xamarin.Forms; + +namespace Bit.App.Styles +{ + public partial class Black : ResourceDictionary + { + public Black() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/src/App/Utilities/ThemeManager.cs b/src/App/Utilities/ThemeManager.cs index 2191d0eb5..4366aa64d 100644 --- a/src/App/Utilities/ThemeManager.cs +++ b/src/App/Utilities/ThemeManager.cs @@ -21,6 +21,10 @@ namespace Bit.App.Utilities { Application.Current.Resources.MergedDictionaries.Add(new Dark()); } + else if(name == "black") + { + Application.Current.Resources.MergedDictionaries.Add(new Black()); + } else { Application.Current.Resources.MergedDictionaries.Add(new Light());