allow to select a date & fix issue

This commit is contained in:
2022-03-08 14:19:50 +08:00
parent 91db3caa15
commit 63ee572e8b
27 changed files with 368 additions and 158 deletions

View File

@ -7,6 +7,7 @@ namespace Billing.Themes
{
public static Color CurrentPrimaryColor => (Color)Application.Current.Resources[PrimaryColor];
public const string FontSemiBold = nameof(FontSemiBold);
public const string FontBold = nameof(FontBold);
public const string WindowBackgroundColor = nameof(WindowBackgroundColor);
@ -29,6 +30,7 @@ namespace Billing.Themes
protected void InitResources()
{
var regularFontFamily = Definition.GetRegularFontFamily();
Add(FontSemiBold, Definition.GetSemiBoldFontFamily());
Add(FontBold, Definition.GetBoldFontFamily());
Add(PrimaryColor, PrimaryMauiColor);
@ -76,21 +78,18 @@ namespace Billing.Themes
new Setter { Property = TimePicker.FontFamilyProperty, Value = regularFontFamily }
}
});
Add(new Style(typeof(Button))
{
Setters =
{
new Setter { Property = Button.TextColorProperty, Value = SecondaryMauiColor },
new Setter { Property = Button.FontFamilyProperty, Value = regularFontFamily },
new Setter { Property = VisualElement.BackgroundColorProperty, Value = PrimaryMauiColor },
new Setter { Property = Button.PaddingProperty, Value = new Thickness(14, 10) }
}
});
Add(new Style(typeof(TintImage))
{
Setters =
{
new Setter { Property = TintImage.PrimaryColorProperty, Value = PrimaryMauiColor }
new Setter { Property = TintHelper.TintColorProperty, Value = PrimaryMauiColor }
}
});
Add(new Style(typeof(TintImageButton))
{
Setters =
{
new Setter { Property = TintHelper.TintColorProperty, Value = PrimaryMauiColor }
}
});
}