mirror of
https://github.com/bitwarden/android.git
synced 2024-12-28 03:48:31 +03:00
21 lines
773 B
C#
21 lines
773 B
C#
using Bit.iOS.Renderers;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.iOS;
|
|
|
|
[assembly: ExportRenderer(typeof(TabbedPage), typeof(CustomTabbedRenderer))]
|
|
namespace Bit.iOS.Renderers
|
|
{
|
|
public class CustomTabbedRenderer : TabbedRenderer
|
|
{
|
|
protected override void OnElementChanged(VisualElementChangedEventArgs e)
|
|
{
|
|
base.OnElementChanged(e);
|
|
TabBar.Translucent = false;
|
|
TabBar.Opaque = true;
|
|
TabBar.SelectedImageTintColor =
|
|
((Color)Xamarin.Forms.Application.Current.Resources["TabBarSelectedItemColor"]).ToUIColor();
|
|
TabBar.UnselectedItemTintColor =
|
|
((Color)Xamarin.Forms.Application.Current.Resources["TabBarItemColor"]).ToUIColor();
|
|
}
|
|
}
|
|
}
|