private async void SplashViewLoaded(object sender, RoutedEventArgs e) { try { ShowLoading(); if (CanLoaded) { SettingsHelper.LoadSettings(); } Helper.CreateCachedFolder(); await Task.Delay(100); if (CanLoaded) { await SessionHelper.LoadSessionsAsync(); } await Task.Delay(100); ThemeHelper.InitTheme(SettingsHelper.Settings.CurrentTheme); } catch { } try { HideLoading(); } catch { } try { Dismiss(); } catch { } }
private async void SplashViewLoaded(object sender, RoutedEventArgs e) { try { //Application.Current.Resources["DefaultBackgroundColor"] = Helper.GetColorBrush("#c4001d"); //Application.Current.Resources["DefaultItemBackgroundColor"] = Helper.GetColorBrush("#7f0000"); //Application.Current.Resources["DefaultForegroundColor"] = Helper.GetColorBrush("#ffffff"); //Application.Current.Resources["DefaultInnerForegroundColor"] = Helper.GetColorBrush("#ffffff"); //Application.Current.Resources["DefaultBackgroundColor"] = Helper.GetColorBrush("#000000"); //Application.Current.Resources["DefaultItemBackgroundColor"] = Helper.GetColorBrush("#170400"); //Application.Current.Resources["DefaultForegroundColor"] = Helper.GetColorBrush("#ffff00"); //Application.Current.Resources["DefaultInnerForegroundColor"] = Helper.GetColorBrush("#ffea00"); //// WHITE THEME //Application.Current.Resources["DefaultBackgroundColor"] = Helper.GetColorBrush("#FFFFFFFF"); //Application.Current.Resources["DefaultItemBackgroundColor"] = Helper.GetColorBrush("#FFE8E8E8"); //Application.Current.Resources["DefaultForegroundColor"] = Helper.GetColorBrush("#FF2F2F2F"); //Application.Current.Resources["DefaultInnerForegroundColor"] = Helper.GetColorBrush("#FF575757"); } catch /*(Exception ex)*/ { } try { ShowLoading(); if (CanLoaded) { SettingsHelper.LoadSettings(); } Helper.CreateCachedFolder(); await Task.Delay(100); if (CanLoaded) { await SessionHelper.LoadSessionsAsync(); } await Task.Delay(100); } catch { } try { HideLoading(); } catch { } try { Dismiss(); } catch { } }