VISU - PHP Game Framework

FUIButtonStyle
in package

Table of Contents

Properties

$backgroundColor  : VGColor
The background color for primary buttons
$cornerRadius  : float
The corner radius for buttons
$disabledBackgroundColor  : VGColor
The disabled button background color
$disabledTextColor  : VGColor
The disabled button text color
$fontSize  : float
The font size for buttons
$hoverBackgroundColor  : VGColor
The background color for buttons when hovered
$hoverTextColor  : VGColor
the text color for the button in hover state
$padding  : Vec4
Padding for buttons
$textColor  : VGColor
The text color for buttons

Methods

primary()  : self
Returns the primary button style (This is just an alias for FlyUI::$instance->theme->primaryButton)
secondary()  : self

Properties

$backgroundColor

The background color for primary buttons

public VGColor $backgroundColor

$cornerRadius

The corner radius for buttons

public float $cornerRadius

$disabledBackgroundColor

The disabled button background color

public VGColor $disabledBackgroundColor

$disabledTextColor

The disabled button text color

public VGColor $disabledTextColor

$hoverBackgroundColor

The background color for buttons when hovered

public VGColor $hoverBackgroundColor

$hoverTextColor

the text color for the button in hover state

public VGColor $hoverTextColor

Methods

primary()

Returns the primary button style (This is just an alias for FlyUI::$instance->theme->primaryButton)

public static primary() : self
Return values
self

        
On this page

Search results