diff --git a/Billing.Shared/Languages/Resource.cs b/Billing.Shared/Languages/Resource.cs
index 081a3a5..4eec6cf 100644
--- a/Billing.Shared/Languages/Resource.cs
+++ b/Billing.Shared/Languages/Resource.cs
@@ -16,6 +16,14 @@ namespace Billing.Languages
public static string ConfirmDeleteBill => Text(nameof(ConfirmDeleteBill));
public static string TitleDateFormat => Text(nameof(TitleDateFormat));
public static string DateRangeFormat => Text(nameof(DateRangeFormat));
+ public static string Custom => Text(nameof(Custom));
+ public static string Monthly => Text(nameof(Monthly));
+ public static string Today => Text(nameof(Today));
+ public static string PastMonth => Text(nameof(PastMonth));
+ public static string PastQuarter => Text(nameof(PastQuarter));
+ public static string PastSixMonths => Text(nameof(PastSixMonths));
+ public static string PastYear => Text(nameof(PastYear));
+ public static string Total => Text(nameof(Total));
public static string Cash => Text(nameof(Cash));
public static string CreditCard => Text(nameof(CreditCard));
public static string DebitCard => Text(nameof(DebitCard));
diff --git a/Billing.Shared/Languages/en.xml b/Billing.Shared/Languages/en.xml
index 7bc6922..942e2e3 100644
--- a/Billing.Shared/Languages/en.xml
+++ b/Billing.Shared/Languages/en.xml
@@ -21,6 +21,9 @@
MM/dd/yyyy
MM/dd
To
+ Type
+ Preset
+ Custom
Monthly
Today
Past Month
diff --git a/Billing.Shared/Languages/zh-CN.xml b/Billing.Shared/Languages/zh-CN.xml
index 1dab13b..a786a4b 100644
--- a/Billing.Shared/Languages/zh-CN.xml
+++ b/Billing.Shared/Languages/zh-CN.xml
@@ -21,6 +21,9 @@
yyyy年MM月dd日
MM月dd日
至
+ 类型
+ 预设
+ 自定义
当月
今日
一个月
diff --git a/Billing.Shared/Themes/BaseTheme.cs b/Billing.Shared/Themes/BaseTheme.cs
index 26f820e..de45714 100644
--- a/Billing.Shared/Themes/BaseTheme.cs
+++ b/Billing.Shared/Themes/BaseTheme.cs
@@ -80,6 +80,14 @@ namespace Billing.Themes
new Setter { Property = TimePicker.FontFamilyProperty, Value = regularFontFamily }
}
});
+ Add(new Style(typeof(OptionPicker))
+ {
+ Setters =
+ {
+ new Setter { Property = Picker.FontSizeProperty, Value = Device.GetNamedSize(NamedSize.Small, typeof(TimePicker)) },
+ new Setter { Property = Picker.FontFamilyProperty, Value = regularFontFamily }
+ }
+ });
Add(new Style(typeof(TintImage))
{
Setters =
diff --git a/Billing.Shared/UI/CustomControl.cs b/Billing.Shared/UI/CustomControl.cs
index 17baaab..8ee262f 100644
--- a/Billing.Shared/UI/CustomControl.cs
+++ b/Billing.Shared/UI/CustomControl.cs
@@ -34,8 +34,8 @@ namespace Billing.UI
public class LongPressGrid : Grid
{
- public static readonly BindableProperty LongCommandProperty = BindableProperty.Create(nameof(LongCommand), typeof(Command), typeof(LongPressGrid));
- public static readonly BindableProperty LongCommandParameterProperty = BindableProperty.Create(nameof(LongCommandParameter), typeof(object), typeof(LongPressGrid));
+ public static readonly BindableProperty LongCommandProperty = Helper.Create(nameof(LongCommand));
+ public static readonly BindableProperty LongCommandParameterProperty = Helper.Create