Enum IosThemeGeneration

java.lang.Object
java.lang.Enum<IosThemeGeneration>
com.codename1.annotations.buildhints.IosThemeGeneration
All Implemented Interfaces:
Comparable<IosThemeGeneration>

public enum IosThemeGeneration extends Enum<IosThemeGeneration>

Which iOS design generation the modern theme targets.

Separate from ThemeMode rather than more constants on it, because the two answer different questions and compose: themeMode picks the LOOK -- modern, iOS 7, pre-flat -- and this picks which generation of the modern look. Folding modern27 into ThemeMode would have made every combination a new constant, on an enum already shared with Android and the desktop.

Consulted only when the theme resolves to modern/liquid. Every other themeMode ignores it, because there is only one iOS 7 and one pre-flat look.

  • Enum Constant Details

    • DEFAULT

      public static final IosThemeGeneration DEFAULT
      Say nothing, and let the build server apply its own default, which is IOS26. An application that never sets this keeps the theme it has.
    • IOS26

      public static final IosThemeGeneration IOS26
      The iOS 26 Liquid Glass look, shipped as iOSModernTheme.res.
    • IOS27

      public static final IosThemeGeneration IOS27

      The iOS 27 look, shipped as iOSModern27Theme.res.

      It is a real design change rather than a version bump: 31 of the 68 native reference tiles differ from iOS 26, concentrated in the Liquid Glass surfaces and the bar and button chrome built on them.

  • Method Details

    • values

      public static IosThemeGeneration[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IosThemeGeneration valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null