26 lines
611 B
C#
26 lines
611 B
C#
using Bit.App.Effects;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Controls
|
|
{
|
|
public class IconLabel : Label
|
|
{
|
|
public bool ShouldUpdateFontSizeDynamicallyForAccesibility { get; set; }
|
|
|
|
public IconLabel()
|
|
{
|
|
switch (Device.RuntimePlatform)
|
|
{
|
|
case Device.iOS:
|
|
FontFamily = "bwi-font";
|
|
break;
|
|
case Device.Android:
|
|
FontFamily = "bwi-font.ttf#bwi-font";
|
|
break;
|
|
}
|
|
|
|
Effects.Add(new RemoveFontPaddingEffect());
|
|
}
|
|
}
|
|
}
|