change fonts
This commit is contained in:
		@@ -17,7 +17,7 @@
 | 
			
		||||
            <Setter Property="HorizontalOptions" Value="Center"/>
 | 
			
		||||
        </Style>
 | 
			
		||||
        <ControlTemplate x:Key="weekDay">
 | 
			
		||||
            <Grid Padding="0, 8, 0, 0" RowDefinitions="Auto, 3" RowSpacing="{OnPlatform Android=0, iOS=4}">
 | 
			
		||||
            <Grid Padding="0, 8, 0, 0" RowDefinitions="Auto, 3" RowSpacing="4">
 | 
			
		||||
                <Grid.GestureRecognizers>
 | 
			
		||||
                    <TapGestureRecognizer Command="{Binding OnDayTapped, Source={x:Reference billingDate}}" CommandParameter="{TemplateBinding BillingDay}"/>
 | 
			
		||||
                </Grid.GestureRecognizers>
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
            </Grid>
 | 
			
		||||
        </ControlTemplate>
 | 
			
		||||
        <ControlTemplate x:Key="weekEnd">
 | 
			
		||||
            <Grid Padding="0, 8, 0, 0" RowDefinitions="Auto, 3" RowSpacing="{OnPlatform Android=0, iOS=4}">
 | 
			
		||||
            <Grid Padding="0, 8, 0, 0" RowDefinitions="Auto, 3" RowSpacing="4">
 | 
			
		||||
                <Grid.GestureRecognizers>
 | 
			
		||||
                    <TapGestureRecognizer Command="{Binding OnDayTapped, Source={x:Reference billingDate}}" CommandParameter="{TemplateBinding BillingDay}"/>
 | 
			
		||||
                </Grid.GestureRecognizers>
 | 
			
		||||
 
 | 
			
		||||
@@ -221,7 +221,7 @@ namespace Billing.UI
 | 
			
		||||
    {
 | 
			
		||||
        public static readonly BindableProperty DateProperty = BindableProperty.Create(nameof(Date), typeof(DateTime), typeof(BillingDay), propertyChanged: OnDatePropertyChanged);
 | 
			
		||||
        public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(BillingDay));
 | 
			
		||||
        public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(BillingDay), defaultValue: Definition.GetCascadiaRegularFontFamily());
 | 
			
		||||
        public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(BillingDay), defaultValue: Definition.GetRegularFontFamily());
 | 
			
		||||
        public static readonly BindableProperty IsSelectedProperty = BindableProperty.Create(nameof(IsSelected), typeof(bool), typeof(BillingDay));
 | 
			
		||||
        public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(double), typeof(BillingDay), defaultValue: 1.0);
 | 
			
		||||
        public static readonly BindableProperty TextOpacityProperty = BindableProperty.Create(nameof(TextOpacity), typeof(double), typeof(BillingDay), defaultValue: 1.0);
 | 
			
		||||
@@ -271,11 +271,11 @@ namespace Billing.UI
 | 
			
		||||
            if (date.Year == selected.Year && date.DayOfYear == selected.DayOfYear)
 | 
			
		||||
            {
 | 
			
		||||
                SetValue(IsSelectedProperty, true);
 | 
			
		||||
                SetValue(FontFamilyProperty, Definition.GetCascadiaBoldFontFamily());
 | 
			
		||||
                SetValue(FontFamilyProperty, Definition.GetBoldFontFamily());
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                SetValue(FontFamilyProperty, Definition.GetCascadiaRegularFontFamily());
 | 
			
		||||
                SetValue(FontFamilyProperty, Definition.GetRegularFontFamily());
 | 
			
		||||
            }
 | 
			
		||||
            if (date.Year == selected.Year && date.Month == selected.Month)
 | 
			
		||||
            {
 | 
			
		||||
 
 | 
			
		||||
@@ -13,10 +13,8 @@ namespace Billing.UI
 | 
			
		||||
    {
 | 
			
		||||
        public static string PrimaryColorKey = "PrimaryColor";
 | 
			
		||||
        public static partial (string main, long build) GetVersion();
 | 
			
		||||
        public static partial string GetCascadiaRegularFontFamily();
 | 
			
		||||
        public static partial string GetCascadiaBoldFontFamily();
 | 
			
		||||
        public static partial string GetRobotoCondensedRegularFontFamily();
 | 
			
		||||
        public static partial string GetRobotoCondensedBoldFontFamily();
 | 
			
		||||
        public static partial string GetRegularFontFamily();
 | 
			
		||||
        public static partial string GetBoldFontFamily();
 | 
			
		||||
        public static partial string GetBrandsFontFamily();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user