allow to select a date & fix issue
This commit is contained in:
@ -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 }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user