white logo and popupTheme

This commit is contained in:
Kyle Spearrin 2019-05-29 17:14:15 -04:00
parent 886f356525
commit 6e91d66b2c
3 changed files with 7 additions and 2 deletions

View file

@ -40,6 +40,7 @@
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
<item name="android:colorActivatedHighlight">@android:color/transparent</item> <item name="android:colorActivatedHighlight">@android:color/transparent</item>
<item name="android:textCursorDrawable">@null</item> <item name="android:textCursorDrawable">@null</item>
<item name="popupTheme">@style/ThemeOverlay.AppCompat</item>
</style> </style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">

View file

@ -18,7 +18,9 @@
HorizontalOptions="Start" HorizontalOptions="Start"
Clicked="Settings_Clicked" /> Clicked="Settings_Clicked" />
<StackLayout VerticalOptions="CenterAndExpand" Spacing="20"> <StackLayout VerticalOptions="CenterAndExpand" Spacing="20">
<Image Source="logo.png" <Image
x:Name="_logo"
Source="logo.png"
VerticalOptions="Center" /> VerticalOptions="Center" />
<Label Text="{u:I18n LoginOrCreateNewAccount}" <Label Text="{u:I18n LoginOrCreateNewAccount}"
StyleClass="text-lg" StyleClass="text-lg"

View file

@ -1,4 +1,5 @@
using System; using Bit.App.Utilities;
using System;
using Xamarin.Forms; using Xamarin.Forms;
namespace Bit.App.Pages namespace Bit.App.Pages
@ -8,6 +9,7 @@ namespace Bit.App.Pages
public HomePage() public HomePage()
{ {
InitializeComponent(); InitializeComponent();
_logo.Source = ThemeManager.GetTheme() == "dark" ? "logo_white.png" : "logo.png";
} }
private void LogIn_Clicked(object sender, EventArgs e) private void LogIn_Clicked(object sender, EventArgs e)