A Colorselector is a color selection widget.
It allows application to set a series of colors. It also allows to load/save colors from/to config with a unique identifier, by default, the colors are loaded/saved from/to config using “default” identifier. The colors can be picked by user from the color set by clicking on individual color item on the palette or by selecting it from selector.
This widget emits the following signals, besides the ones sent from LayoutClass:
"changed" - When the color value changes on selector
The event_info parameter of the callback will be the selected color item.
The event_info parameter of the callback will be the selected color item.
focused - When the colorselector has received focus. (since 1.8)
unfocused - When the colorselector has lost focus. (since 1.8)
Show palette
Show components
Show palette and components
Bases: efl.elementary.layout_class.LayoutClass
This is the class that actually implements the widget.
When the color value changes on selector
When user long presses on color item. The event_info parameter of the callback will be the selected color item.
When user clicks on color item. The event_info parameter of the callback will be the selected color item.
When the check has received focus.
New in version 1.8.
When the check has lost focus.
New in version 1.8.
The current color (r, g, b, a).
| Type : | (int r, int g, int b, int a) |
|---|
Colorselector’s mode.
Colorselector supports three modes palette only, selector only and both.
| Type : | Colorselector modes |
|---|
Clear the palette items.
Add a new color item to palette.
| Parameters: |
|
|---|---|
| Returns: | A new color palette Item. |
| Return type: |
The current palette’s name
When colorpalette name is set, colors will be loaded from and saved to config using the set name. If no name is set then colors will be loaded from or saved to “default” config.
| Type : | string |
|---|
Bases: efl.elementary.object_item.ObjectItem
An item for the Colorselector widget.
The palette items color.
| Type : | (int r, int g, int b, int a) |
|---|