Button that pops out a [ColorPicker].
Encapsulates a [ColorPicker] making it accessible by pressing a button. Pressing the button will toggle the [ColorPicker] visibility.
See also [BaseButton] which contains common properties and methods associated with this node.
[b]Note:[/b] By default, the button may not be wide enough for the color preview swatch to be visible. Make sure to set [member Control.minimum_size] to a big enough value to give the button enough space.
https://godotengine.org/asset-library/asset/133
https://godotengine.org/asset-library/asset/517
Returns the [ColorPicker] that this node toggles.
[b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property.
Returns the control's [PopupPanel] which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden.
[b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member Window.visible] property.
The currently selected color.
If [code]true[/code], the alpha channel in the displayed [ColorPicker] will be visible.
Emitted when the color changes.
Emitted when the [ColorPicker] is created (the button is pressed for the first time).
Emitted when the [ColorPicker] is closed.
Default text [Color] of the [ColorPickerButton].
Text [Color] used when the [ColorPickerButton] is disabled.
Text [Color] used when the [ColorPickerButton] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.
Text [Color] used when the [ColorPickerButton] is being hovered.
The tint of text outline of the [ColorPickerButton].
Text [Color] used when the [ColorPickerButton] is being pressed.
The horizontal space between [ColorPickerButton]'s icon and text.
The size of the text outline.
[Font] of the [ColorPickerButton]'s text.
Font size of the [ColorPickerButton]'s text.
The background of the color preview rect on the button.
[StyleBox] used when the [ColorPickerButton] is disabled.
[StyleBox] used when the [ColorPickerButton] is focused. The [code]focus[/code] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
[StyleBox] used when the [ColorPickerButton] is being hovered.
Default [StyleBox] for the [ColorPickerButton].
[StyleBox] used when the [ColorPickerButton] is being pressed.