Пример #1
0
        public void SetTheme(XappyTheme theme)
        {
            switch (theme)
            {
            case XappyTheme.Clancey:
                Application.Current.Resources["pageBackgroundColor"] = LookupColor("almost_black");
                Application.Current.Resources["flyoutGradientStart"] = LookupColor("dark_peach");
                Application.Current.Resources["flyoutGradientEnd"]   = LookupColor("light_peach");
                break;

            default:
                Application.Current.Resources["pageBackgroundColor"] = LookupColor("white");
                Application.Current.Resources["flyoutGradientStart"] = LookupColor("cerulean_three");
                Application.Current.Resources["flyoutGradientEnd"]   = LookupColor("teal");
                break;
            }
        }
Пример #2
0
        public void SetTheme(XappyTheme theme)
        {
            switch (theme)
            {
            case XappyTheme.Clancey:
                App.Current.Resources["pageBackgroundColor"] = LookupColor("almost_black");
                App.Current.Resources["flyoutGradientStart"] = LookupColor("dark_peach");
                App.Current.Resources["flyoutGradientEnd"]   = LookupColor("light_peach");
                break;

            default:
                App.Current.Resources["Primary"]      = LookupColor("Primary");
                App.Current.Resources["PrimaryLight"] = LookupColor("PrimaryLight");
                //App.Current.Resources["Secondary"] = LookupColor("Secondary");
                break;
            }
        }