mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 06:13:21 +00:00
Android styles and theme, updated to extended controls
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Bit.Android.Controls
|
||||
}
|
||||
|
||||
SetBorder(view);
|
||||
SetPlaceholderTextColor(view);
|
||||
SetMaxLength(view);
|
||||
}
|
||||
|
||||
@@ -36,14 +35,10 @@ namespace Bit.Android.Controls
|
||||
|
||||
if(e.PropertyName == ExtendedEntry.HasBorderProperty.PropertyName
|
||||
|| e.PropertyName == ExtendedEntry.HasOnlyBottomBorderProperty.PropertyName
|
||||
|| e.PropertyName == ExtendedEntry.BorderColorProperty.PropertyName)
|
||||
|| e.PropertyName == ExtendedEntry.BottomBorderColorProperty.PropertyName)
|
||||
{
|
||||
SetBorder(view);
|
||||
}
|
||||
if(e.PropertyName == ExtendedEntry.PlaceholderTextColorProperty.PropertyName)
|
||||
{
|
||||
SetPlaceholderTextColor(view);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.OnElementPropertyChanged(sender, e);
|
||||
@@ -63,13 +58,5 @@ namespace Bit.Android.Controls
|
||||
{
|
||||
Control.SetFilters(new IInputFilter[] { new InputFilterLengthFilter(view.MaxLength) });
|
||||
}
|
||||
|
||||
private void SetPlaceholderTextColor(ExtendedEntry view)
|
||||
{
|
||||
if(view.PlaceholderTextColor != Xamarin.Forms.Color.Default)
|
||||
{
|
||||
Control.SetHintTextColor(view.PlaceholderTextColor.ToAndroid());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user