1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-07 09:20:04 +01:00

style cursor color

This commit is contained in:
Kyle Spearrin 2019-06-26 10:12:34 -04:00
parent 92764eeae0
commit dd4561d985

View File

@ -9,16 +9,20 @@ namespace Bit.iOS.Core.Utilities
{
var lightTheme = false;
var mutedColor = Xamarin.Forms.Color.FromHex("#777777").ToUIColor();
var textColor = Xamarin.Forms.Color.FromHex("#000000").ToUIColor();
if(theme == "dark")
{
textColor = Xamarin.Forms.Color.FromHex("#ffffff").ToUIColor();
mutedColor = Xamarin.Forms.Color.FromHex("#a3a3a3").ToUIColor();
}
else if(theme == "black")
{
textColor = Xamarin.Forms.Color.FromHex("#ffffff").ToUIColor();
mutedColor = Xamarin.Forms.Color.FromHex("#a3a3a3").ToUIColor();
}
else if(theme == "nord")
{
textColor = Xamarin.Forms.Color.FromHex("#e5e9f0").ToUIColor();
mutedColor = Xamarin.Forms.Color.FromHex("#d8dee9").ToUIColor();
}
else
@ -26,6 +30,8 @@ namespace Bit.iOS.Core.Utilities
lightTheme = true;
}
UITextField.Appearance.TintColor = textColor;
UITextView.Appearance.TintColor = textColor;
UIStepper.Appearance.TintColor = mutedColor;
if(!lightTheme)
{