Record Class MarkdownPanel.Theme
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.gui.MarkdownPanel.Theme
- Enclosing class:
MarkdownPanel
public static record MarkdownPanel.Theme(Color background, Color foreground, Color codeBackground, Color inlineCodeBackground, Color border, Color link)
extends Record
Color palette for the rendered markdown.
codeBackground backs fenced/indented blocks —
a subtle fill that frames the block without competing with surrounding prose;
inlineCodeBackground backs inline `code` runs and is expected to be more saturated so
short spans pop against flowing text.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.border()Returns the value of theborderrecord component.Returns the value of thecodeBackgroundrecord component.static MarkdownPanel.Themedefaults()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforegroundrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinlineCodeBackgroundrecord component.link()Returns the value of thelinkrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Theme
public Theme(Color background, Color foreground, Color codeBackground, Color inlineCodeBackground, Color border, Color link) Creates an instance of aThemerecord class.- Parameters:
background- the value for thebackgroundrecord componentforeground- the value for theforegroundrecord componentcodeBackground- the value for thecodeBackgroundrecord componentinlineCodeBackground- the value for theinlineCodeBackgroundrecord componentborder- the value for theborderrecord componentlink- the value for thelinkrecord component
-
-
Method Details
-
defaults
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
foreground
Returns the value of theforegroundrecord component.- Returns:
- the value of the
foregroundrecord component
-
codeBackground
Returns the value of thecodeBackgroundrecord component.- Returns:
- the value of the
codeBackgroundrecord component
-
inlineCodeBackground
Returns the value of theinlineCodeBackgroundrecord component.- Returns:
- the value of the
inlineCodeBackgroundrecord component
-
border
Returns the value of theborderrecord component.- Returns:
- the value of the
borderrecord component
-
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-