FUITheme
in package
Table of Contents
Properties
- $borderRadius : float
- General border radius used for elements
- $buttonGroup : FUIButtonGroupStyle
- $cardBackgroundColor : VGColor
- The background color used for cards
- $cardBorderColor : VGColor|null
- The color of the border around the card (if null, no border is drawn)
- $cardBorderRadius : float
- The corner / border radius used for cards
- $cardBorderWidth : float
- The width of the border around the card
- $cardPadding : Vec4
- The padding (inset space) used for cards
- $cardSpacing : float
- Vertical spacing between card elements
- $checkboxActiveBackgroundColor : VGColor
- $checkboxBackgroundColor : VGColor
- ------------------------------ Checkboxes ------------------------------
- $checkboxHoverBackgroundColor : VGColor
- $fontSize : float
- General font size used for text
- $labelFontSize : float
- Label font size
- $labelHeight : float
- Label height
- $labelTextColor : VGColor
- Label text color
- $largeFontSize : float
- (large) font size used for text
- $monospaceFont : string
- Monospace font.
- $mutedTextColor : VGColor
- Muted text color
- $padding : float
- The general padding used to space elements
- $primaryButton : FUIButtonStyle
- $regularFont : string
- Default font used for text, buttons, etc.
- $secondaryButton : FUIButtonStyle
- $sectionBottomSpace : float
- Space after a section
- $sectionHeaderFontSize : float
- Section header font size
- $sectionHeaderTextColor : VGColor
- Section header text color
- $sectionSpacing : float
- Section spacing between title and content
- $semiBoldFont : string
- Default "semi bold" font.
- $smallFontSize : float
- (small) font size used for text
- $spacing : float
- Spacing between elements
- $textColor : VGColor
- Base text color
- $windowPadding : Vec4
- The padding (inset space) used for windows
Methods
- __construct() : mixed
- Constructs a new theme
- applyGenerals() : void
- Applies the general theme settings to all elements This will override any custom settings you have set except the general settings
Properties
$borderRadius
General border radius used for elements
public
float
$borderRadius
= 5.0
$buttonGroup
public
FUIButtonGroupStyle
$buttonGroup
$cardBackgroundColor
The background color used for cards
public
VGColor
$cardBackgroundColor
$cardBorderColor
The color of the border around the card (if null, no border is drawn)
public
VGColor|null
$cardBorderColor
= null
$cardBorderRadius
The corner / border radius used for cards
public
float
$cardBorderRadius
$cardBorderWidth
The width of the border around the card
public
float
$cardBorderWidth
= 1.0
$cardPadding
The padding (inset space) used for cards
public
Vec4
$cardPadding
$cardSpacing
Vertical spacing between card elements
public
float
$cardSpacing
= 5.0
$checkboxActiveBackgroundColor
public
VGColor
$checkboxActiveBackgroundColor
$checkboxBackgroundColor
------------------------------ Checkboxes ------------------------------
public
VGColor
$checkboxBackgroundColor
$checkboxHoverBackgroundColor
public
VGColor
$checkboxHoverBackgroundColor
$fontSize
General font size used for text
public
float
$fontSize
= 13.0
$labelFontSize
Label font size
public
float
$labelFontSize
$labelHeight
Label height
public
float
$labelHeight
= 24.0
$labelTextColor
Label text color
public
VGColor
$labelTextColor
$largeFontSize
(large) font size used for text
public
float
$largeFontSize
= 16.0
$monospaceFont
Monospace font.
public
string
$monospaceFont
= 'inconsolata-regular'
$mutedTextColor
Muted text color
public
VGColor
$mutedTextColor
$padding
The general padding used to space elements
public
float
$padding
= 10.0
$primaryButton
public
FUIButtonStyle
$primaryButton
$regularFont
Default font used for text, buttons, etc.
public
string
$regularFont
= 'inter-regular'
FlyUI loads the inter font automatically, if you want to use a different font you
are responsible for loading it yourself.
$secondaryButton
public
FUIButtonStyle
$secondaryButton
$sectionBottomSpace
Space after a section
public
float
$sectionBottomSpace
$sectionHeaderFontSize
Section header font size
public
float
$sectionHeaderFontSize
$sectionHeaderTextColor
Section header text color
public
VGColor
$sectionHeaderTextColor
$sectionSpacing
Section spacing between title and content
public
float
$sectionSpacing
$semiBoldFont
Default "semi bold" font.
public
string
$semiBoldFont
= 'inter-semibold'
FlyUI loads the inter font automatically, if you want to use a different font you
are responsible for loading it yourself.
$smallFontSize
(small) font size used for text
public
float
$smallFontSize
= 10.0
$spacing
Spacing between elements
public
float
$spacing
= 5.0
$textColor
Base text color
public
VGColor
$textColor
$windowPadding
The padding (inset space) used for windows
public
Vec4
$windowPadding
Methods
__construct()
Constructs a new theme
public
__construct() : mixed
applyGenerals()
Applies the general theme settings to all elements This will override any custom settings you have set except the general settings
public
applyGenerals() : void