Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void SetStyle(AppFontSize fontSize)
 {
     BackColor = Color.FromArgb(255, 10, 5, 0);
     UseCompatibleTextRendering = true;
     Font = AppFont.getAppFont(fontSize);
 }
Пример #4
0
 public void SetStyle(AppFontSize fontSize)
 {
     BackColor = Color.Transparent;
     UseCompatibleTextRendering = true;
     Font = AppFont.getAppFont(fontSize);
 }