Package limn.scene
Record Class SystemPreferences.ContrastColors
java.lang.Object
java.lang.Record
limn.scene.SystemPreferences.ContrastColors
- Record Components:
window- the canvas of a window and of every surface on itwindowText- text, and the edge of every controllink- a link, and a hot itemdisabledText- anything disabledhighlight- a selection's fillhighlightText- text on a selection- a button's face- a button's text
- Enclosing class:
SystemPreferences
public static record SystemPreferences.ContrastColors(Color window, Color windowText, Color link, Color disabledText, Color highlight, Color highlightText, Color buttonFace, Color buttonText)
extends Record
The palette a user chose when the platform's request for more contrast is a palette of its
own: a Windows contrast theme, whose eight system colours every native application draws
with. Each pair a control draws from them is the user's to read; nothing here adjusts them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonFacerecord component.Returns the value of thebuttonTextrecord component.Returns the value of thedisabledTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehighlightrecord component.Returns the value of thehighlightTextrecord component.link()Returns the value of thelinkrecord component.final StringtoString()Returns a string representation of this record class.window()Returns the value of thewindowrecord component.Returns the value of thewindowTextrecord component.
-
Constructor Details
-
ContrastColors
public ContrastColors(Color window, Color windowText, Color link, Color disabledText, Color highlight, Color highlightText, Color buttonFace, Color buttonText) Creates an instance of aContrastColorsrecord class.- Parameters:
window- the value for thewindowrecord componentwindowText- the value for thewindowTextrecord componentlink- the value for thelinkrecord componentdisabledText- the value for thedisabledTextrecord componenthighlight- the value for thehighlightrecord componenthighlightText- the value for thehighlightTextrecord componentbuttonFace- the value for thebuttonFacerecord componentbuttonText- the value for thebuttonTextrecord component
-
-
Method Details
-
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). -
window
Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-
windowText
Returns the value of thewindowTextrecord component.- Returns:
- the value of the
windowTextrecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
disabledText
Returns the value of thedisabledTextrecord component.- Returns:
- the value of the
disabledTextrecord component
-
highlight
Returns the value of thehighlightrecord component.- Returns:
- the value of the
highlightrecord component
-
highlightText
Returns the value of thehighlightTextrecord component.- Returns:
- the value of the
highlightTextrecord component
-
buttonFace
Returns the value of thebuttonFacerecord component.- Returns:
- the value of the
buttonFacerecord component
-
buttonText
Returns the value of thebuttonTextrecord component.- Returns:
- the value of the
buttonTextrecord component
-