ColorPickerButton
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
Button that pops out a ColorPicker.
Description
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.
Tutorials
Properties
| ||
| ||
toggle_mode |
|
Methods
get_picker ( ) | |
get_popup ( ) |
Theme Properties
bg | ||
disabled | ||
focus | ||
font | ||
font_color | Color( 1, 1, 1, 1 ) | |
font_color_disabled | Color( 0.9, 0.9, 0.9, 0.3 ) | |
font_color_hover | Color( 1, 1, 1, 1 ) | |
font_color_pressed | Color( 0.8, 0.8, 0.8, 1 ) | |
hover | ||
hseparation | 2 | |
normal | ||
pressed |
Signals
- color_changed ( Color color )
Emitted when the color changes.
- picker_created ( )
Emitted when the ColorPicker is created (the button is pressed for the first time).
- popup_closed ( )
Emitted when the ColorPicker is closed.
Property Descriptions
- Color color
Default |
|
Setter | set_pick_color(value) |
Getter | get_pick_color() |
The currently selected color.
- bool edit_alpha
Default |
|
Setter | set_edit_alpha(value) |
Getter | is_editing_alpha() |
If true
, the alpha channel in the displayed ColorPicker will be visible.
Method Descriptions
- ColorPicker get_picker ( )
Returns the ColorPicker that this node toggles.
- PopupPanel get_popup ( )
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.