Record Class ThemeScript.Result
java.lang.Object
java.lang.Record
wiiuu.ui.ThemeScript.Result
- Record Components:
colours- every property's colour (all ofThemeScript.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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.colours()Returns the value of thecoloursrecord component.consoles()Returns the value of theconsolesrecord component.booleandark()Returns the value of thedarkrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefollowsSystemrecord component.fonts()Returns the value of thefontsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
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 aResultrecord class.- Parameters:
name- the value for thenamerecord componentauthor- the value for theauthorrecord componentcolours- the value for thecoloursrecord componentconsoles- the value for theconsolesrecord componentfonts- the value for thefontsrecord componentdark- the value for thedarkrecord componentfollowsSystem- the value for thefollowsSystemrecord componentwarnings- the value for thewarningsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
colours
-
consoles
-
fonts
-
dark
-
followsSystem
public boolean followsSystem()Returns the value of thefollowsSystemrecord component.- Returns:
- the value of the
followsSystemrecord component
-
warnings
-