Exemple #1
0
        private IEnumerator LoadTheme()
        {
            yield return(null);

            var backgroundColor = ThemeHelper.GetThemeBackgroundColor(this.Theme);

            this.profileInfoPanelImage.color = backgroundColor;
            this.gamerpicMask.color          = backgroundColor;
            this.signInPanelImage.sprite     = ThemeHelper.LoadSprite(this.Theme, "RowBackground-Highlighted");
            this.gamertag.color = ThemeHelper.GetThemeBaseFontColor(this.Theme);
        }
        private IEnumerator LoadTheme(Theme theme)
        {
            yield return(null);

            this.HeaderRowImage.sprite = ThemeHelper.LoadSprite(this.Theme, "LabelRowBackground");
            this.BackgroundImage.color = ThemeHelper.GetThemeBackgroundColor(this.Theme);
            var fontColor = ThemeHelper.GetThemeBaseFontColor(this.Theme);

            this.HeaderText.color       = fontColor;
            this.pageText.color         = ThemeHelper.GetThemeHighlightColor(this.Theme);
            this.NextPageText.color     = fontColor;
            this.PreviousPageText.color = fontColor;
            var lineSprite = ThemeHelper.LoadSprite(this.Theme, "Line");

            this.BottomLine.sprite = lineSprite;
            this.TopLine.sprite    = lineSprite;
        }