mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
style cursor color
This commit is contained in:
parent
92764eeae0
commit
dd4561d985
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue