EColorPickerPanel Color picker panel
Examples
Color picker panel
Standalone color panel
Properties
alpharealAlpha, HSV brightness or saturation from 0 to 1.
1brightnessrealAlpha, HSV brightness or saturation from 0 to 1.
1clearableboolShow a clear action; ratings may be cleared by clicking the current score again.
falsecolorFormatstringOutput format of the color value.
"hex" / "hex3""hex4" / "hex6""hex8" / "name""rgb" / "prgb""hsl" / "hsv"
"hex"commitOnConfirmboolCommit the color only when confirmed.
falseenabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighthuerealHSV hue from 0 to 360.
0predefinevarArray of preset colors.
[]saturationrealAlpha, HSV brightness or saturation from 0 to 1.
0showAlphaboolAllow editing alpha opacity.
falseshowButtonsboolShow confirm and clear buttons in the color panel.
falsevaluevarCurrent value; read or write through property bindings, with arrays for multiple or range selection.
Dynamic bindingvalueOnClearvarValue after clearing, or a function returning it; inherits configuration by default.
Inherited; default ""visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthSignals
cleared()Emitted after the contents are cleared with the clear action.
canceled()Emitted when the current operation is cancelled.
confirmed(var value)Emitted on confirmation; value, when present, is the confirmed value.
picked(string value)Emitted after choosing a value; value is the chosen value.
activeChanged(var value)Emitted as the active color changes while picking; value is the unconfirmed color.
Methods
confirm()Confirm and commit the current selection.
cancel()Cancel the current operation.
clear()Clear the current contents or selection.
begin(nextValue)Begin color editing, optionally using nextValue as the initial color.
selectColor(color)Set color as the active color and commit according to the confirmation mode.