Esempio n. 1
0
        public static Font DateTime(MetroDateTimeSize linkSize, MetroDateTimeWeight linkWeight)
        {
            switch (linkSize)
            {
            case MetroDateTimeSize.Small:
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(12f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
                break;

            case MetroDateTimeSize.Medium:
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(14f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
                break;

            case MetroDateTimeSize.Tall:
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(18f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
                break;
            }

            return(Default(12f));
        }
Esempio n. 2
0
        public static Font DateTime(MetroDateTimeSize linkSize, MetroDateTimeWeight linkWeight)
        {
            if (linkSize == MetroDateTimeSize.Small)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(12f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(12f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(12f));
                }
            }
            else if (linkSize == MetroDateTimeSize.Medium)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(14f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(14f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(14f));
                }
            }
            else if (linkSize == MetroDateTimeSize.Tall)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                {
                    return(DefaultLight(18f));
                }
                if (linkWeight == MetroDateTimeWeight.Regular)
                {
                    return(Default(18f));
                }
                if (linkWeight == MetroDateTimeWeight.Bold)
                {
                    return(DefaultBold(18f));
                }
            }

            return(Default(12f));
        }
Esempio n. 3
0
        public static Font DateTime(MetroDateTimeSize linkSize, MetroDateTimeWeight linkWeight)
        {
            if (linkSize == MetroDateTimeSize.Small)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                    return DefaultLight(12f);
                if (linkWeight == MetroDateTimeWeight.Regular)
                    return Default(12f);
                if (linkWeight == MetroDateTimeWeight.Bold)
                    return DefaultBold(12f);
            }
            else if (linkSize == MetroDateTimeSize.Medium)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                    return DefaultLight(14f);
                if (linkWeight == MetroDateTimeWeight.Regular)
                    return Default(14f);
                if (linkWeight == MetroDateTimeWeight.Bold)
                    return DefaultBold(14f);
            }
            else if (linkSize == MetroDateTimeSize.Tall)
            {
                if (linkWeight == MetroDateTimeWeight.Light)
                    return DefaultLight(18f);
                if (linkWeight == MetroDateTimeWeight.Regular)
                    return Default(18f);
                if (linkWeight == MetroDateTimeWeight.Bold)
                    return DefaultBold(18f);
            }

            return Default(12f);
        }
Esempio n. 4
0
 public static Font DateTime(MetroDateTimeSize linkSize, MetroDateTimeWeight linkWeight) => MetroFontGeneral(linkSize, linkWeight, new float[] { 12f, 14f, 18f });