1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-30 11:14:51 +02:00
bitwarden-mobile/src/App/Controls/IconLabel.cs

23 lines
531 B
C#
Raw Normal View History

2019-03-29 22:54:03 +01:00
using Xamarin.Forms;
namespace Bit.App.Controls
{
2022-01-21 10:31:03 +01:00
public class IconLabel : Label
2019-03-29 22:54:03 +01:00
{
public bool ShouldUpdateFontSizeDynamicallyForAccesibility { get; set; }
2022-01-21 10:31:03 +01:00
public IconLabel()
2019-03-29 22:54:03 +01:00
{
switch (Device.RuntimePlatform)
2019-03-29 22:54:03 +01:00
{
case Device.iOS:
2022-01-21 10:31:03 +01:00
FontFamily = "bwi-font";
2019-03-29 22:54:03 +01:00
break;
case Device.Android:
2022-01-21 10:31:03 +01:00
FontFamily = "bwi-font.ttf#bwi-font";
2019-03-29 22:54:03 +01:00
break;
}
}
}
}