public static void ApplyTheme() { try { Tuple <AppTheme, Accent> appStyle = ThemeManager.DetectAppStyle(Application.Current); ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent(Theme), ThemeManager.GetAppTheme("BaseLight")); } catch (Exception) { Dialogs.Error("Couldn't apply theme."); } }
private static void handleResult(bool succeed, string succeedMsg, string failedMsg) { if (succeed) { updateStatusBar(succeedMsg); } else { updateStatusBar(failedMsg); Dialogs.Error(failedMsg); } }