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
- 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.
- Font font
Font of the ToolButton
‘s text.
- Color font_color
Default |
|
Default text Color of the ToolButton
.
- Color font_color_disabled
Default |
|
Text Color used when the ToolButton
is disabled.
- Color font_color_focus
Default |
|
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
Default |
|
Text Color used when the ToolButton
is being hovered.
- Color font_color_pressed
Default |
|
Text Color used when the ToolButton
is being pressed.
- StyleBox hover
StyleBox used when the ToolButton
is being hovered.
- int hseparation
Default |
|
The horizontal space between ToolButton
‘s icon and text.
- StyleBox normal
Default StyleBox for the ToolButton
.
- StyleBox pressed
StyleBox used when the ToolButton
is being pressed.