예제 #1
0
            void UpdateTheme()
            {
                switch (Prefs.UI.Theme.ProseTypography.GetValue())
                {
                case "sans-serif":
                    currentThemeCssClass = "theme-prose-typography-sans-serif";
                    ContentElement.AddCssClass(currentThemeCssClass);
                    break;

                default:
                    if (currentThemeCssClass != null)
                    {
                        ContentElement.RemoveCssClass(currentThemeCssClass);
                        currentThemeCssClass = null;
                    }
                    break;
                }
            }