utilities feature

This commit is contained in:
2021-08-06 14:42:40 +08:00
parent 569c0a733f
commit 600d81a3f1
24 changed files with 1036 additions and 83 deletions

View File

@ -0,0 +1,35 @@
using Gallery.Services;
using Xamarin.Forms;
namespace Gallery.Resources.Theme
{
public class LightTheme : Theme
{
private static LightTheme instance;
public static LightTheme Instance
{
get
{
if (instance == null)
{
instance = new LightTheme();
}
return instance;
}
}
public LightTheme()
{
InitColors();
InitResources();
}
private void InitColors()
{
Add(StatusBarStyle, StatusBarStyles.DarkText);
Add(NavigationColor, Color.FromRgb(0xf0, 0xf0, 0xf0));
Add(Primary, Color.FromRgb(33, 150, 243));
}
}
}