mirror of
https://github.com/bitwarden/android.git
synced 2024-12-20 08:12:26 +03:00
update renders to use fixed font sizes when not using the named ones.
This commit is contained in:
parent
b8c6e77fca
commit
118a790689
3 changed files with 12 additions and 2 deletions
|
@ -48,6 +48,11 @@ namespace Bit.iOS.Controls
|
||||||
{
|
{
|
||||||
pointSize *= .6f;
|
pointSize *= .6f;
|
||||||
}
|
}
|
||||||
|
else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
|
||||||
|
{
|
||||||
|
// not using dynamic font sizes, return
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Control.Font = UIFont.FromDescriptor(Element.Font.ToUIFont().FontDescriptor, pointSize);
|
Control.Font = UIFont.FromDescriptor(Element.Font.ToUIFont().FontDescriptor, pointSize);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,9 +60,9 @@ namespace Bit.iOS.Controls
|
||||||
{
|
{
|
||||||
pointSize *= .6f;
|
pointSize *= .6f;
|
||||||
}
|
}
|
||||||
else
|
else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
|
||||||
{
|
{
|
||||||
// not using dyanmic font sizes, return
|
// not using dynamic font sizes, return
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,11 @@ namespace Bit.iOS.Controls
|
||||||
{
|
{
|
||||||
pointSize *= .6f;
|
pointSize *= .6f;
|
||||||
}
|
}
|
||||||
|
else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
|
||||||
|
{
|
||||||
|
// not using dynamic font sizes, return
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(!string.IsNullOrWhiteSpace(Element.FontFamily))
|
if(!string.IsNullOrWhiteSpace(Element.FontFamily))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue