diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index f7f9d95c2..3d22b9e92 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -85,6 +85,7 @@ + diff --git a/src/Android/Assets/RobotoMono_Regular.ttf b/src/Android/Assets/RobotoMono_Regular.ttf new file mode 100644 index 000000000..f7b4a9b39 Binary files /dev/null and b/src/Android/Assets/RobotoMono_Regular.ttf differ diff --git a/src/App/Controls/MonoLabel.cs b/src/App/Controls/MonoLabel.cs new file mode 100644 index 000000000..7209fc8ee --- /dev/null +++ b/src/App/Controls/MonoLabel.cs @@ -0,0 +1,20 @@ +using Xamarin.Forms; + +namespace Bit.App.Controls +{ + public class MonoLabel : Label + { + public MonoLabel() + { + switch(Device.RuntimePlatform) + { + case Device.iOS: + FontFamily = "Menlo-Regular"; + break; + case Device.Android: + FontFamily = "RobotoMono_Regular.ttf#Roboto Mono"; + break; + } + } + } +} diff --git a/src/App/Pages/Vault/ViewPage.xaml b/src/App/Pages/Vault/ViewPage.xaml index b99107b73..29b230cd4 100644 --- a/src/App/Pages/Vault/ViewPage.xaml +++ b/src/App/Pages/Vault/ViewPage.xaml @@ -45,7 +45,7 @@ - + @@ -74,7 +74,7 @@ Grid.RowSpan="2" /> - + @@ -82,24 +82,39 @@ + @@ -118,7 +133,7 @@ StyleClass="box-label" Grid.Row="0" Grid.Column="0" /> -