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 it
windowText - text, and the edge of every control
link - a link, and a hot item
disabledText - anything disabled
highlight - a selection's fill
highlightText - text on a selection
buttonFace - a button's face
buttonText - 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 Details

    • ContrastColors

      public ContrastColors(Color window, Color windowText, Color link, Color disabledText, Color highlight, Color highlightText, Color buttonFace, Color buttonText)
      Creates an instance of a ContrastColors record class.
      Parameters:
      window - the value for the window record component
      windowText - the value for the windowText record component
      link - the value for the link record component
      disabledText - the value for the disabledText record component
      highlight - the value for the highlight record component
      highlightText - the value for the highlightText record component
      buttonFace - the value for the buttonFace record component
      buttonText - the value for the buttonText 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • window

      public Color window()
      Returns the value of the window record component.
      Returns:
      the value of the window record component
    • windowText

      public Color windowText()
      Returns the value of the windowText record component.
      Returns:
      the value of the windowText record component
    • link

      public Color link()
      Returns the value of the link record component.
      Returns:
      the value of the link record component
    • disabledText

      public Color disabledText()
      Returns the value of the disabledText record component.
      Returns:
      the value of the disabledText record component
    • highlight

      public Color highlight()
      Returns the value of the highlight record component.
      Returns:
      the value of the highlight record component
    • highlightText

      public Color highlightText()
      Returns the value of the highlightText record component.
      Returns:
      the value of the highlightText record component
    • buttonFace

      public Color buttonFace()
      Returns the value of the buttonFace record component.
      Returns:
      the value of the buttonFace record component
    • buttonText

      public Color buttonText()
      Returns the value of the buttonText record component.
      Returns:
      the value of the buttonText record component