Skip to content

Package io.github.qishr.cascara.ui.window

Record TitleBarTheme

java.lang.Object
        java.lang.Record
                io.github.qishr.cascara.ui.window.TitleBarTheme


public final record TitleBarTheme
extends Record

Defines the structural configuration of a custom title bar.The visual "look" is handled via the styleClass in CSS.

Constructor Summary

Constructor Description
TitleBarTheme(String id, String styleClass, double height, Pos titleAlignment, List<TitleButtonType> leftButtons, List<TitleButtonType> rightButtons, boolean useStretchingLines, ShadowProfile activeProfile, ShadowProfile inactiveProfile)

Method Summary

Modifier and Type Method Description
public static TitleBarTheme macSystem8() Returns the value of the macSystem8 record component.
public static TitleBarTheme modern() Returns the value of the modern record component.
public static TitleBarTheme windows7() Returns the value of the windows7 record component.
public static TitleBarTheme windows10() Returns the value of the windows10 record component.
public final String toString() Returns a string representation of this record class.
public final int hashCode() Returns a hash code value for this object.
public final boolean equals(Object o) Indicates whether some other object is "equal to" this one.
public String id() Returns the value of the id record component.
public String styleClass() Returns the value of the styleClass record component.
public double height() Returns the value of the height record component.
public Pos titleAlignment() Returns the value of the titleAlignment record component.
public List<TitleButtonType> leftButtons() Returns the value of the leftButtons record component.
public List<TitleButtonType> rightButtons() Returns the value of the rightButtons record component.
public boolean useStretchingLines() Returns the value of the useStretchingLines record component.
public ShadowProfile activeProfile() Returns the value of the activeProfile record component.
public ShadowProfile inactiveProfile() Returns the value of the inactiveProfile record component.

Method Details

macSystem8

public static TitleBarTheme macSystem8()

Returns the value of the macSystem8 record component.


modern

public static TitleBarTheme modern()

Returns the value of the modern record component.


windows7

public static TitleBarTheme windows7()

Returns the value of the windows7 record component.


windows10

public static TitleBarTheme windows10()

Returns the value of the windows10 record component.


toString

public final String toString()

Returns a string representation of this record class.


hashCode

public final int hashCode()

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.


id

public String id()

Returns the value of the id record component.


styleClass

public String styleClass()

Returns the value of the styleClass record component.


height

public double height()

Returns the value of the height record component.


titleAlignment

public Pos titleAlignment()

Returns the value of the titleAlignment record component.


leftButtons

public List<TitleButtonType> leftButtons()

Returns the value of the leftButtons record component.


rightButtons

public List<TitleButtonType> rightButtons()

Returns the value of the rightButtons record component.


useStretchingLines

public boolean useStretchingLines()

Returns the value of the useStretchingLines record component.


activeProfile

public ShadowProfile activeProfile()

Returns the value of the activeProfile record component.


inactiveProfile

public ShadowProfile inactiveProfile()

Returns the value of the inactiveProfile record component.