1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 02:23:57 +00:00

nord theme

This commit is contained in:
Kyle Spearrin
2019-06-05 11:36:58 -04:00
parent 9d86fac103
commit 8eec0c22d7
14 changed files with 283 additions and 108 deletions

View File

@@ -118,6 +118,9 @@
<Compile Update="Styles\Black.xaml.cs">
<DependentUpon>Black.xaml</DependentUpon>
</Compile>
<Compile Update="Styles\Nord.xaml.cs">
<DependentUpon>Nord.xaml</DependentUpon>
</Compile>
<Compile Update="Styles\Variables.xaml.cs">
<DependentUpon>Variables.xaml</DependentUpon>
</Compile>

View File

@@ -67,6 +67,7 @@ namespace Bit.App.Pages
{
ThemeOptions.Add(new KeyValuePair<string, string>("black", AppResources.Black));
}
ThemeOptions.Add(new KeyValuePair<string, string>("nord", "Nord"));
UriMatchOptions = new List<KeyValuePair<UriMatchType?, string>>
{
new KeyValuePair<UriMatchType?, string>(UriMatchType.Domain, AppResources.BaseDomain),

View File

@@ -78,6 +78,13 @@
<Setter Property="BarBackgroundColor"
Value="{StaticResource TabBarBackgroundColor}" />
</Style>
<Style TargetType="NavigationPage"
ApplyToDerivedTypes="True">
<Setter Property="BarTextColor"
Value="{StaticResource NavigationBarTextColor}" />
<Setter Property="BarBackgroundColor"
Value="{StaticResource NavigationBarBackgroundColor}" />
</Style>
<!-- Buttons -->
<Style TargetType="Button"

View File

@@ -36,4 +36,7 @@
<Color x:Key="TabBarBackgroundColor">#000000</Color>
<Color x:Key="TabBarItemColor">#C0C0C0</Color>
<Color x:Key="TabBarSelectedItemColor">#52bdfb</Color>
<Color x:Key="NavigationBarBackgroundColor">#000000</Color>
<Color x:Key="NavigationBarTextColor">#ffffff</Color>
</ResourceDictionary>

View File

@@ -36,4 +36,7 @@
<Color x:Key="TabBarBackgroundColor">#212121</Color>
<Color x:Key="TabBarItemColor">#C0C0C0</Color>
<Color x:Key="TabBarSelectedItemColor">#52bdfb</Color>
<Color x:Key="NavigationBarBackgroundColor">#212121</Color>
<Color x:Key="NavigationBarTextColor">#ffffff</Color>
</ResourceDictionary>

View File

@@ -36,4 +36,7 @@
<Color x:Key="TabBarBackgroundColor">#ffffff</Color>
<Color x:Key="TabBarItemColor">#757575</Color>
<Color x:Key="TabBarSelectedItemColor">#3c8dbc</Color>
<Color x:Key="NavigationBarBackgroundColor">#3c8dbc</Color>
<Color x:Key="NavigationBarTextColor">#ffffff</Color>
</ResourceDictionary>

42
src/App/Styles/Nord.xaml Normal file
View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Styles.Nord">
<Color x:Key="TextColor">#e5e9f0</Color>
<Color x:Key="PrimaryColor">#81a1c1</Color>
<Color x:Key="DangerColor">#bf616a</Color>
<Color x:Key="SuccessColor">#a3be8c</Color>
<Color x:Key="InfoColor">#81a1c1</Color>
<Color x:Key="WarningColor">#d08770</Color>
<Color x:Key="MutedColor">#d8dee9</Color>
<Color x:Key="PasswordNumberColor">#88c0d0</Color>
<Color x:Key="PasswordSpecialColor">#d08770</Color>
<Color x:Key="ButtonColor">#d8dee9</Color>
<Color x:Key="BorderColor">#2e3440</Color>
<Color x:Key="DisabledIconColor">#c7c7cd</Color>
<Color x:Key="BoxBorderColor">#2e3440</Color>
<Color x:Key="BoxHeaderTextColor">#81a1c1</Color>
<Color x:Key="TitleTextColor">#d8dee9</Color>
<Color x:Key="TitleEntryTextColor">#e5e9f0</Color>
<Color x:Key="TitleEntryPlaceholderColor">#d8dee9</Color>
<Color x:Key="ListItemBorderColor">#2e3440</Color>
<Color x:Key="ListHeaderTextColor">#81a1c1</Color>
<Color x:Key="SliderThumbColor">#e5e9f0</Color>
<Color x:Key="SliderThumbBorderColor">#2e3440</Color>
<Color x:Key="SliderTrackColor">#81a1c1</Color>
<Color x:Key="FabColor">#81a1c1</Color>
<Color x:Key="FabPressedColor">#81a1c1</Color>
<Color x:Key="TabBarBackgroundColor">#2e3440</Color>
<Color x:Key="TabBarItemColor">#e5e9f0</Color>
<Color x:Key="TabBarSelectedItemColor">#81a1c1</Color>
<Color x:Key="NavigationBarBackgroundColor">#2e3440</Color>
<Color x:Key="NavigationBarTextColor">#e5e9f0</Color>
</ResourceDictionary>

View File

@@ -0,0 +1,12 @@
using Xamarin.Forms;
namespace Bit.App.Styles
{
public partial class Nord : ResourceDictionary
{
public Nord()
{
InitializeComponent();
}
}
}

View File

@@ -25,6 +25,10 @@ namespace Bit.App.Utilities
{
Application.Current.Resources.MergedDictionaries.Add(new Black());
}
else if(name == "nord")
{
Application.Current.Resources.MergedDictionaries.Add(new Nord());
}
else
{
Application.Current.Resources.MergedDictionaries.Add(new Light());