public static Font TabControl(MetroTabControlSize labelSize, MetroTabControlWeight labelWeight) { switch (labelSize) { case MetroTabControlSize.Small: if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(12f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(12f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(12f)); } break; case MetroTabControlSize.Medium: if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(14f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(14f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(14f)); } break; case MetroTabControlSize.Tall: if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(18f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(18f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(18f)); } break; } return(DefaultLight(14f)); }
public static Font TabControl(MetroTabControlSize labelSize, MetroTabControlWeight labelWeight) { if (labelSize == MetroTabControlSize.Small) { if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(12f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(12f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(12f)); } } else if (labelSize == MetroTabControlSize.Medium) { if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(14f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(14f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(14f)); } } else if (labelSize == MetroTabControlSize.Tall) { if (labelWeight == MetroTabControlWeight.Light) { return(DefaultLight(18f)); } if (labelWeight == MetroTabControlWeight.Regular) { return(Default(18f)); } if (labelWeight == MetroTabControlWeight.Bold) { return(DefaultBold(18f)); } } return(DefaultLight(14f)); }
public static Font TabControl(MetroTabControlSize labelSize, MetroTabControlWeight labelWeight) { if (labelSize == MetroTabControlSize.Small) { if (labelWeight == MetroTabControlWeight.Light) return DefaultLight(12f); if (labelWeight == MetroTabControlWeight.Regular) return Default(12f); if (labelWeight == MetroTabControlWeight.Bold) return DefaultBold(12f); } else if (labelSize == MetroTabControlSize.Medium) { if (labelWeight == MetroTabControlWeight.Light) return DefaultLight(14f); if (labelWeight == MetroTabControlWeight.Regular) return Default(14f); if (labelWeight == MetroTabControlWeight.Bold) return DefaultBold(14f); } else if (labelSize == MetroTabControlSize.Tall) { if (labelWeight == MetroTabControlWeight.Light) return DefaultLight(18f); if (labelWeight == MetroTabControlWeight.Regular) return Default(18f); if (labelWeight == MetroTabControlWeight.Bold) return DefaultBold(18f); } return DefaultLight(14f); }
public static Font TabControl(MetroTabControlSize labelSize, MetroTabControlWeight labelWeight) => MetroFontGeneral(labelSize, labelWeight, new float[] { 12f, 14f, 18f });