public static Font getAppFont(AppFontSize size) { switch (size) { case AppFontSize.Big: return(appFontBig); case AppFontSize.Small: return(appFontSmall); case AppFontSize.Medium: return(appFontMedium); } return(null); }
protected FancyLabel CreateFancyLabel(string text, AppFontSize fontSize, int hSize, int vSize) { FancyLabel label = new FancyLabel() { Text = text, Anchor = AnchorStyles.Left, AutoSize = false, Size = new Size(hSize, vSize) }; label.SetStyle(fontSize); return(label); }
public void SetStyle(AppFontSize fontSize) { BackColor = Color.FromArgb(255, 10, 5, 0); UseCompatibleTextRendering = true; Font = AppFont.getAppFont(fontSize); }
public void SetStyle(AppFontSize fontSize) { BackColor = Color.Transparent; UseCompatibleTextRendering = true; Font = AppFont.getAppFont(fontSize); }