예제 #1
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)));
        }
예제 #2
0
        static WelcomePageSection()
        {
            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)));
        }