예제 #1
0
        // Select Theme
        private void SelectTheme(Theme theme)
        {
            SharedClasses.Instance().AppClass.ChangeColours(theme.ThemeIndex);
            SharedClasses.Instance().AppClass.SavePref <int>("ThemeIndex", theme.ThemeIndex);

            _prevoiusTheme = theme;
        }
예제 #2
0
        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);
        }
예제 #3
0
        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());
        }