mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
fix cursor color to renderers
This commit is contained in:
@@ -9,20 +9,16 @@ 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
|
||||
@@ -30,8 +26,6 @@ namespace Bit.iOS.Core.Utilities
|
||||
lightTheme = true;
|
||||
}
|
||||
|
||||
UITextField.Appearance.TintColor = textColor;
|
||||
UITextView.Appearance.TintColor = textColor;
|
||||
UIStepper.Appearance.TintColor = mutedColor;
|
||||
if(!lightTheme)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user