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
|
|
|
|
{
|
2022-02-17 23:34:22 +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
|
|
|
|
{
|
2020-03-28 14:16:28 +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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|