diff --git a/src/Core/Controls/IconButton.cs b/src/Core/Controls/IconButton.cs index d27d50626f..45ad3c8942 100644 --- a/src/Core/Controls/IconButton.cs +++ b/src/Core/Controls/IconButton.cs @@ -16,7 +16,7 @@ namespace Bit.App.Controls FontFamily = "bwi-font"; break; case Device.Android: - FontFamily = "bwi-font.ttf#bwi-font"; + FontFamily = "bwi-font.ttf"; break; } diff --git a/src/Core/Controls/IconLabel.cs b/src/Core/Controls/IconLabel.cs index 6b5e723086..1b4771f80c 100644 --- a/src/Core/Controls/IconLabel.cs +++ b/src/Core/Controls/IconLabel.cs @@ -17,7 +17,7 @@ namespace Bit.App.Controls FontFamily = "bwi-font"; break; case Device.Android: - FontFamily = "bwi-font.ttf#bwi-font"; + FontFamily = "bwi-font.ttf"; break; } diff --git a/src/Core/Controls/MiButton.cs b/src/Core/Controls/MiButton.cs index 99309351ba..f345af8828 100644 --- a/src/Core/Controls/MiButton.cs +++ b/src/Core/Controls/MiButton.cs @@ -15,7 +15,7 @@ namespace Bit.App.Controls FontFamily = "Material Icons"; break; case Device.Android: - FontFamily = "MaterialIcons_Regular.ttf#Material Icons"; + FontFamily = "MaterialIcons_Regular.ttf"; break; } } diff --git a/src/Core/Controls/MiLabel.cs b/src/Core/Controls/MiLabel.cs index 4d510899ff..86e8387711 100644 --- a/src/Core/Controls/MiLabel.cs +++ b/src/Core/Controls/MiLabel.cs @@ -14,7 +14,7 @@ namespace Bit.App.Controls FontFamily = "Material Icons"; break; case Device.Android: - FontFamily = "MaterialIcons_Regular.ttf#Material Icons"; + FontFamily = "MaterialIcons_Regular.ttf"; break; } } diff --git a/src/Core/Controls/MonoEntry.cs b/src/Core/Controls/MonoEntry.cs index dfa85d8491..a43890492e 100644 --- a/src/Core/Controls/MonoEntry.cs +++ b/src/Core/Controls/MonoEntry.cs @@ -1,22 +1,14 @@ -using Microsoft.Maui.Controls; -using Microsoft.Maui; - -namespace Bit.App.Controls +namespace Bit.App.Controls { public class MonoEntry : Entry { public MonoEntry() { - // TODO Xamarin.Forms.Device.RuntimePlatform is no longer supported. Use Microsoft.Maui.Devices.DeviceInfo.Platform instead. For more details see https://learn.microsoft.com/en-us/dotnet/maui/migration/forms-projects#device-changes - switch (Device.RuntimePlatform) - { - case Device.iOS: - FontFamily = "Menlo-Regular"; - break; - case Device.Android: - FontFamily = "RobotoMono_Regular.ttf#Roboto Mono"; - break; - } +#if ANDROID + FontFamily = "RobotoMono_Regular"; +#elif IOS + FontFamily = "Menlo-Regular"; +#endif } } } diff --git a/src/Core/Controls/MonoLabel.cs b/src/Core/Controls/MonoLabel.cs index 6baaf399eb..09c760b534 100644 --- a/src/Core/Controls/MonoLabel.cs +++ b/src/Core/Controls/MonoLabel.cs @@ -14,7 +14,7 @@ namespace Bit.App.Controls FontFamily = "Menlo-Regular"; break; case Device.Android: - FontFamily = "RobotoMono_Regular.ttf#Roboto Mono"; + FontFamily = "RobotoMono_Regular.ttf"; break; } } diff --git a/src/Core/Pages/Accounts/HomePage.xaml b/src/Core/Pages/Accounts/HomePage.xaml index 1bace759a2..c419ccd150 100644 --- a/src/Core/Pages/Accounts/HomePage.xaml +++ b/src/Core/Pages/Accounts/HomePage.xaml @@ -14,7 +14,7 @@ - + AutomationId="AccountIconButton" /> - + -