utilities feature
This commit is contained in:
35
Gallery.Share/Resources/Theme/LightTheme.cs
Normal file
35
Gallery.Share/Resources/Theme/LightTheme.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user