public static Font ComboBox(MetroComboBoxSize linkSize, MetroComboBoxWeight linkWeight) { switch (linkSize) { case MetroComboBoxSize.Small: if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(12f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(12f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(12f)); } break; case MetroComboBoxSize.Medium: if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(14f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(14f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(14f)); } break; case MetroComboBoxSize.Tall: if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(18f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(18f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(18f)); } break; } return(Default(12f)); }
public static Font ComboBox(MetroComboBoxSize linkSize, MetroComboBoxWeight linkWeight) { if (linkSize == MetroComboBoxSize.Small) { if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(12f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(12f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(12f)); } } else if (linkSize == MetroComboBoxSize.Medium) { if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(14f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(14f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(14f)); } } else if (linkSize == MetroComboBoxSize.Tall) { if (linkWeight == MetroComboBoxWeight.Light) { return(DefaultLight(18f)); } if (linkWeight == MetroComboBoxWeight.Regular) { return(Default(18f)); } if (linkWeight == MetroComboBoxWeight.Bold) { return(DefaultBold(18f)); } } return(Default(12f)); }
public static Font ComboBox(MetroComboBoxSize linkSize, MetroComboBoxWeight linkWeight) { if (linkSize == MetroComboBoxSize.Small) { if (linkWeight == MetroComboBoxWeight.Light) return DefaultLight(12f); if (linkWeight == MetroComboBoxWeight.Regular) return Default(12f); if (linkWeight == MetroComboBoxWeight.Bold) return DefaultBold(12f); } else if (linkSize == MetroComboBoxSize.Medium) { if (linkWeight == MetroComboBoxWeight.Light) return DefaultLight(14f); if (linkWeight == MetroComboBoxWeight.Regular) return Default(14f); if (linkWeight == MetroComboBoxWeight.Bold) return DefaultBold(14f); } else if (linkSize == MetroComboBoxSize.Tall) { if (linkWeight == MetroComboBoxWeight.Light) return DefaultLight(18f); if (linkWeight == MetroComboBoxWeight.Regular) return Default(18f); if (linkWeight == MetroComboBoxWeight.Bold) return DefaultBold(18f); } return Default(12f); }
public static Font ComboBox(MetroComboBoxSize linkSize, MetroComboBoxWeight linkWeight) => MetroFontGeneral(linkSize, linkWeight, new float[] { 12f, 14f, 18f });