splash ui

This commit is contained in:
2021-08-11 16:59:35 +08:00
parent 521d82829d
commit c224bed1f4
14 changed files with 48 additions and 28 deletions

View File

@@ -16,12 +16,7 @@ namespace Gallery
public static PlatformCulture CurrentCulture { get; private set; }
public static Dictionary<string, System.DateTime> RefreshTimes { get; } = new();
public static List<IGallerySource> GallerySources { get; } = new()
{
new Sources.Yandere.GallerySource(), // https://yande.re
new Sources.Danbooru.GallerySource(), // https://danbooru.donmai.us
new Sources.Gelbooru.GallerySource() // https://gelbooru.com
};
public static List<IGallerySource> GallerySources { get; private set; }
public App()
{
@@ -42,7 +37,7 @@ namespace Gallery
private void InitPreference()
{
Config.Proxy = null;
Config.DownloadThreads = Preferences.Get(Config.DownloadThreadsKey, 1);
Config.DownloadThreads = Preferences.Get(Config.DownloadThreadsKey, 4);
var isProxied = Preferences.Get(Config.IsProxiedKey, false);
if (isProxied)
@@ -109,6 +104,14 @@ namespace Gallery
protected override void OnStart()
{
InitLanguage();
GallerySources = new List<IGallerySource>()
{
new Sources.Yandere.GallerySource(), // https://yande.re
new Sources.Danbooru.GallerySource(), // https://danbooru.donmai.us
new Sources.Gelbooru.GallerySource() // https://gelbooru.com
};
MainPage = new AppShell();
InitResource();
@@ -117,6 +120,7 @@ namespace Gallery
protected override void OnSleep()
{
base.OnSleep();
}
protected override void OnResume()