From c224bed1f4e0a19234a388d67c01cf5acac0b358 Mon Sep 17 00:00:00 2001 From: Tsanie Lily Date: Wed, 11 Aug 2021 16:59:35 +0800 Subject: [PATCH] splash ui --- Gallery.Share/App.cs | 18 ++++++---- Gallery.Share/AppShell.xaml | 2 +- .../Resources/UI/GalleryCollectionPage.cs | 6 +++- Gallery.Share/Util/NetHelper.cs | 2 +- Gallery.Share/Util/Store.cs | 2 +- Gallery.iOS/Gallery.iOS.csproj | 10 +++--- Gallery.iOS/Info.plist | 4 +-- Gallery.iOS/Resources/LaunchScreen.storyboard | 32 ++++++++++++------ Gallery.iOS/Resources/logo_light.png | Bin 0 -> 890 bytes Gallery.iOS/Resources/logo_light@2x.png | Bin 0 -> 1792 bytes Gallery.iOS/Resources/logo_light@3x.png | Bin 0 -> 3414 bytes Gallery.iOS/Resources/xamarin_logo.png | Bin 4250 -> 0 bytes Gallery.iOS/Resources/xamarin_logo@2x.png | Bin 9337 -> 0 bytes Gallery.iOS/Resources/xamarin_logo@3x.png | Bin 21481 -> 0 bytes 14 files changed, 48 insertions(+), 28 deletions(-) create mode 100644 Gallery.iOS/Resources/logo_light.png create mode 100644 Gallery.iOS/Resources/logo_light@2x.png create mode 100644 Gallery.iOS/Resources/logo_light@3x.png delete mode 100644 Gallery.iOS/Resources/xamarin_logo.png delete mode 100644 Gallery.iOS/Resources/xamarin_logo@2x.png delete mode 100644 Gallery.iOS/Resources/xamarin_logo@3x.png diff --git a/Gallery.Share/App.cs b/Gallery.Share/App.cs index 8a30d38..4eada77 100644 --- a/Gallery.Share/App.cs +++ b/Gallery.Share/App.cs @@ -16,12 +16,7 @@ namespace Gallery public static PlatformCulture CurrentCulture { get; private set; } public static Dictionary RefreshTimes { get; } = new(); - public static List 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 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() + { + 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() diff --git a/Gallery.Share/AppShell.xaml b/Gallery.Share/AppShell.xaml index eba9390..61f7234 100644 --- a/Gallery.Share/AppShell.xaml +++ b/Gallery.Share/AppShell.xaml @@ -57,7 +57,7 @@ -