ToolButton¶
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
Flat button helper class.
Description¶
This is a helper class to generate a flat Button (see Button.flat), creating a ToolButton is equivalent to:
var btn = Button.new()
btn.flat = true
Properties¶
flat |
|
Theme Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
Theme Property Descriptions¶
Color font_color = Color( 0.88, 0.88, 0.88, 1 )
Default text Color of the ToolButton.
Color font_color_disabled = Color( 0.9, 0.95, 1, 0.3 )
Text Color used when the ToolButton is disabled.
Color font_color_focus = Color( 0.94, 0.94, 0.94, 1 )
Text Color used when the ToolButton is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.
Color font_color_hover = Color( 0.94, 0.94, 0.94, 1 )
Text Color used when the ToolButton is being hovered.
Color font_color_pressed = Color( 1, 1, 1, 1 )
Text Color used when the ToolButton is being pressed.
int hseparation = 3
The horizontal space between ToolButton's icon and text.
Font font
Font of the ToolButton's text.
StyleBox disabled
StyleBox used when the ToolButton is disabled.
StyleBox focus
StyleBox used when the ToolButton is focused. It is displayed over the current StyleBox, so using StyleBoxEmpty will just disable the focus visual effect.
StyleBox hover
StyleBox used when the ToolButton is being hovered.
StyleBox normal
Default StyleBox for the ToolButton.
StyleBox pressed
StyleBox used when the ToolButton is being pressed.