Switch up Font loading

This commit is contained in:
2021-03-27 16:19:11 -05:00
parent 6e52a67726
commit 4c7196c948
14 changed files with 39 additions and 54 deletions
@@ -28,7 +28,7 @@ namespace qController.UI.Cells
var icon = new Label();
icon.FontFamily = App.QFont;
icon.FontFamily = (OnPlatform<string>)Application.Current.Resources["QFontFamily"];
icon.SetBinding(Label.TextProperty, "Icon");
icon.HorizontalTextAlignment = TextAlignment.Center;
icon.VerticalTextAlignment = TextAlignment.Center;
@@ -1,6 +1,7 @@
using System;
using Xamarin.Forms;
using Serilog;
using qController.Helpers;
namespace qController.UI.Cells
{
@@ -87,18 +88,18 @@ namespace qController.UI.Cells
connectLabel.HorizontalOptions = LayoutOptions.StartAndExpand;
connectLabel.VerticalOptions = LayoutOptions.CenterAndExpand;
connectLabel.Text = QIcon.WIFI;
connectLabel.Text = IconConstants.Wifi;
connectLabel.FontSize = App.HeightUnit * 5;
connectLabel.TextColor = Color.LimeGreen;
deleteLabel.HorizontalOptions = LayoutOptions.CenterAndExpand;
deleteLabel.VerticalOptions = LayoutOptions.CenterAndExpand;
deleteLabel.Text = QIcon.TRASH_EMPTY;
deleteLabel.Text = IconConstants.Delete;
deleteLabel.FontSize = App.HeightUnit * 5;
deleteLabel.TextColor = Color.Red;
connectLabel.FontFamily = App.QFont;
deleteLabel.FontFamily = App.QFont;
connectLabel.FontFamily = (OnPlatform<string>)Application.Current.Resources["MaterialFontFamily"];
deleteLabel.FontFamily = (OnPlatform<string>)Application.Current.Resources["MaterialFontFamily"];
}
@@ -89,7 +89,7 @@ namespace qController.UI.Cells
type = new Label {
Text = QIcon.SPIN3,
FontFamily = App.QFont,
FontFamily = (OnPlatform<string>)Application.Current.Resources["QFontFamily"],
VerticalTextAlignment = TextAlignment.Center,
HorizontalTextAlignment = TextAlignment.End,
FontSize = App.HeightUnit * 5