Example #1
0
        protected void OnChangeSelected(UIChangeEventArgs e)
        {
            Selected = (string)e.Value;
            ITypographyOptions theme = Typography.ThemeForName(Selected);

            Fontsize      = Typography.Unitless(theme.BaseFontSize) + ".00";
            Lineheight    = theme.BaseLineHeight;
            Ratio         = theme.ScaleRatio.ToString();
            Spacing       = theme.BlockMarginBottom;
            HeaderFont    = theme.HeaderFontFamily[0];
            BodyFont      = theme.BodyFontFamily[0];
            HeaderWeights = GetWeightForDropdown(HeaderFont);
            HeaderWeight  = theme.HeaderWeight;
            BodyWeights   = GetWeightForDropdown(BodyFont);
            BodyWeight    = theme.BodyWeight;
            BoldWeights   = GetWeightForDropdown(BodyFont);
            BoldWeight    = theme.BoldWeight;
        }