コード例 #1
0
        static void UpdateStyle()
        {
            var face = Platform.IsMac ? Styles.WelcomeScreen.Pad.TitleFontFamilyMac : Styles.WelcomeScreen.Pad.TitleFontFamilyWindows;

            linkUnderlinedFormat = Styles.GetFormatString(face, Styles.WelcomeScreen.Pad.MediumTitleFontSize, Styles.WelcomeScreen.Pad.News.Item.TitleHoverColor, Pango.Weight.Bold);
            linkFormat           = Styles.GetFormatString(face, Styles.WelcomeScreen.Pad.MediumTitleFontSize, Styles.WelcomeScreen.Pad.MediumTitleColor, Pango.Weight.Bold);
            descFormat           = Styles.GetFormatString(Styles.WelcomeScreen.Pad.SummaryFontFamily, Styles.WelcomeScreen.Pad.SummaryFontSize, Styles.WelcomeScreen.Pad.TextColor);
            subtitleFormat       = Styles.GetFormatString(face, Styles.WelcomeScreen.Pad.SmallTitleFontSize, Styles.WelcomeScreen.Pad.SmallTitleColor);
        }
コード例 #2
0
        static void UpdateStyle()
        {
            var face = Platform.IsMac ? Styles.WelcomeScreen.Pad.TitleFontFamilyMac : Styles.WelcomeScreen.Pad.TitleFontFamilyWindows;

            headerFormat = Styles.GetFormatString(face, Styles.WelcomeScreen.Pad.LargeTitleFontSize, Styles.WelcomeScreen.Pad.LargeTitleFontColor);
        }
コード例 #3
0
        public static string FormatText(string fontFace, int fontSize, Pango.Weight weight, string color, string text)
        {
            var format = Styles.GetFormatString(fontFace, fontSize, color, weight);

            return(string.Format(format, GLib.Markup.EscapeText(text)));
        }
コード例 #4
0
        public static string FormatText(string fontFace, int fontSize, bool bold, string color, string text)
        {
            var format = Styles.GetFormatString(fontFace, fontSize, color, bold);

            return(string.Format(format, GLib.Markup.EscapeText(text)));
        }