Package com.io7m.idstore.server.api
Record Class IdServerColorScheme
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerColorScheme
- Record Components:
- The color of buttons
errorBorderColor
- The border color for error messagesheaderBackgroundColor
- The background color of the page headerheaderLinkColor
- The color of links in the page headerheaderTextColor
- The color of text in the page headermainBackgroundColor
- The background color of the main pagemainLinkColor
- The color of links on the main pagemainMessageBorderColor
- The border color of page messagesmainTableBorderColor
- The border color of tablesmainTextColor
- The main text color
public record IdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor)
extends Record
A server color scheme.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIdServerColorScheme
(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor) A server color scheme. -
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.cxbutton.core.CxButtonColors
Returns the value of thebuttonColors
record component.static IdServerColorScheme
defaults()
final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorBorderColor
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theheaderBackgroundColor
record component.Returns the value of theheaderLinkColor
record component.Returns the value of theheaderTextColor
record component.Returns the value of themainBackgroundColor
record component.Returns the value of themainLinkColor
record component.Returns the value of themainMessageBorderColor
record component.Returns the value of themainTableBorderColor
record component.Returns the value of themainTextColor
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
OCEAN_BLUE
An ocean blue colour.
-
-
Constructor Details
-
IdServerColorScheme
public IdServerColorScheme(com.io7m.cxbutton.core.CxButtonColors buttonColors, IdColor errorBorderColor, IdColor headerBackgroundColor, IdColor headerLinkColor, IdColor headerTextColor, IdColor mainBackgroundColor, IdColor mainLinkColor, IdColor mainMessageBorderColor, IdColor mainTableBorderColor, IdColor mainTextColor) A server color scheme.- Parameters:
buttonColors
- The color of buttonserrorBorderColor
- The border color for error messagesheaderBackgroundColor
- The background color of the page headerheaderLinkColor
- The color of links in the page headerheaderTextColor
- The color of text in the page headermainBackgroundColor
- The background color of the main pagemainLinkColor
- The color of links on the main pagemainMessageBorderColor
- The border color of page messagesmainTableBorderColor
- The border color of tablesmainTextColor
- The main text color
-
-
Method Details
-
defaults
- Returns:
- The default color scheme
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
buttonColors
public com.io7m.cxbutton.core.CxButtonColors buttonColors()Returns the value of thebuttonColors
record component.- Returns:
- the value of the
buttonColors
record component
-
errorBorderColor
Returns the value of theerrorBorderColor
record component.- Returns:
- the value of the
errorBorderColor
record component
-
headerBackgroundColor
Returns the value of theheaderBackgroundColor
record component.- Returns:
- the value of the
headerBackgroundColor
record component
-
headerLinkColor
Returns the value of theheaderLinkColor
record component.- Returns:
- the value of the
headerLinkColor
record component
-
headerTextColor
Returns the value of theheaderTextColor
record component.- Returns:
- the value of the
headerTextColor
record component
-
mainBackgroundColor
Returns the value of themainBackgroundColor
record component.- Returns:
- the value of the
mainBackgroundColor
record component
-
mainLinkColor
Returns the value of themainLinkColor
record component.- Returns:
- the value of the
mainLinkColor
record component
-
mainMessageBorderColor
Returns the value of themainMessageBorderColor
record component.- Returns:
- the value of the
mainMessageBorderColor
record component
-
mainTableBorderColor
Returns the value of themainTableBorderColor
record component.- Returns:
- the value of the
mainTableBorderColor
record component
-
mainTextColor
Returns the value of themainTextColor
record component.- Returns:
- the value of the
mainTextColor
record component
-