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); }
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); }
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))); }
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))); }