Record Class ThemeScript.Result

java.lang.Object
java.lang.Record
wiiuu.ui.ThemeScript.Result
Record Components:
colours - every property's colour (all of ThemeScript.PROPERTIES)
consoles - tile colours by console id (only the ones the theme changes)
fonts - font families to try, in order (empty: WII-UU's own choice)
dark - whether it is a dark theme (from base, or from how dark the background is)
followsSystem - whether it depends on the computer being in dark mode (base auto)
Enclosing class:
ThemeScript

public static record ThemeScript.Result(String name, String author, Map<String,Color> colours, Map<String,Color> consoles, List<String> fonts, boolean dark, boolean followsSystem, List<String> warnings) extends Record
A theme, worked out.
  • Constructor Details

    • Result

      public Result(String name, String author, Map<String,Color> colours, Map<String,Color> consoles, List<String> fonts, boolean dark, boolean followsSystem, List<String> warnings)
      Creates an instance of a Result record class.
      Parameters:
      name - the value for the name record component
      author - the value for the author record component
      colours - the value for the colours record component
      consoles - the value for the consoles record component
      fonts - the value for the fonts record component
      dark - the value for the dark record component
      followsSystem - the value for the followsSystem record component
      warnings - the value for the warnings record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • colours

      public Map<String,Color> colours()
      Returns the value of the colours record component.
      Returns:
      the value of the colours record component
    • consoles

      public Map<String,Color> consoles()
      Returns the value of the consoles record component.
      Returns:
      the value of the consoles record component
    • fonts

      public List<String> fonts()
      Returns the value of the fonts record component.
      Returns:
      the value of the fonts record component
    • dark

      public boolean dark()
      Returns the value of the dark record component.
      Returns:
      the value of the dark record component
    • followsSystem

      public boolean followsSystem()
      Returns the value of the followsSystem record component.
      Returns:
      the value of the followsSystem record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component