// Select Theme private void SelectTheme(Theme theme) { SharedClasses.Instance().AppClass.ChangeColours(theme.ThemeIndex); SharedClasses.Instance().AppClass.SavePref <int>("ThemeIndex", theme.ThemeIndex); _prevoiusTheme = theme; }
public SettingsView() { AppClass = SharedClasses.Instance().AppClass; InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); ThemeGrid.Children.Add(GenerateThemeList(ReturnThemeColours()), 1, 0); _themeList.ScrollTo(ReturnThemeColours()[PlayerPreferences.Instance().ThemeIndex], ScrollToPosition.Start, false); }
public App() { InitializeComponent(); var gameController = new MainController(); SharedClasses.Instance().AppClass = this; // Set up Colours PlayerPreferences.Instance().Load(); Colours.Instance().CompileThemeList(); Colours.Instance().SetThemeColours(PlayerPreferences.Instance().ThemeIndex); ChangeColours(PlayerPreferences.Instance().ThemeIndex); //MainPage = new CrosswordView(); //MainPage = new SettingsView(); MainPage = new NavigationPage(new HomeView()); }