basic logic

This commit is contained in:
2022-02-25 12:20:16 +08:00
parent abeae1cab9
commit 9a6011c3d8
49 changed files with 773 additions and 73 deletions

View File

@ -1,4 +1,5 @@
using Xamarin.Forms;
using Billing.UI;
using Xamarin.Forms;
namespace Billing.Themes;
@ -20,12 +21,14 @@ public class Dark : BaseTheme
private void InitColors()
{
Add(WindowBackgroundColor, Color.Black);
Add(OptionTintColor, Color.FromRgb(28, 28, 28));
Add(PromptBackgroundColor, Color.FromRgb(0x1f, 0x1f, 0x1f));
Add(TabBarBackgroundColor, Color.Black);
Add(TabBarUnselectedColor, Color.FromRgb(0x82, 0x82, 0x82));
Add(OutRangeDayColor, Color.DarkGray);
Add(TextColor, Color.FromRgb(0xcc, 0xcc, 0xcc));
Add(WeekendColor, Color.FromRgb(211, 5, 5));
Add(SecondaryTextColor, Color.LightGray);
Add(RedColor, Color.FromRgb(211, 5, 5));
Add(new Style(typeof(TabBar))
{
@ -36,5 +39,12 @@ public class Dark : BaseTheme
new Setter { Property = Shell.TabBarUnselectedColorProperty, Value = Color.FromRgb(0x82, 0x82, 0x82) }
}
});
Add(new Style(typeof(TableView))
{
Setters =
{
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Color.Black }
}
});
}
}