Tizen Native API

Functions

Eina_Listelm_config_color_classes_list_get (void)
 Get Elementary's list of supported color classes.
void elm_config_color_classes_list_free (Eina_List *list)
 Free Elementary's list of supported color classes.
const Eina_Listelm_config_color_overlay_list_get (void)
 Get Elementary's list of color overlays, set with elm_config_color_overlay_set().
void elm_config_color_overlay_set (const char *color_class, int r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, int a3)
 Set a color overlay for a given Elementary color class.
void elm_config_color_overlay_unset (const char *color_class)
 Unset a color overlay for a given Elementary color class.
void elm_config_color_overlay_apply (void)
 Apply the changes made with elm_config_color_overlay_set() and elm_config_color_overlay_unset() on the current Elementary window.

Configuration for Elementary colors.


Function Documentation

Free Elementary's list of supported color classes.

Since :
2.3
Since (EFL) :
1.10
See also:
elm_config_color_classes_list_get().

Get Elementary's list of supported color classes.

Since :
2.3
Returns:
The color classes list, with Elm_Color_Class blobs as data.
Since (EFL) :
1.10
Remarks:
Release the list with elm_color_classes_list_free().

Apply the changes made with elm_config_color_overlay_set() and elm_config_color_overlay_unset() on the current Elementary window.

Since :
2.3
Since (EFL) :
1.10
Remarks:
This applies all color overlays set to all objects in the UI.

Get Elementary's list of color overlays, set with elm_config_color_overlay_set().

Since :
2.3
Returns:
The color overlays list, with Elm_Color_Overlay blobs as data.
Since (EFL) :
1.10
Remarks:
For each color class, one can set a color overlay for it, overriding the default color properties for that class coming from the theme in use. There is no need to free this list.
See also:
elm_config_color_overlay_set()
elm_config_color_overlay_unset().
void elm_config_color_overlay_set ( const char *  color_class,
int  r,
int  g,
int  b,
int  a,
int  r2,
int  g2,
int  b2,
int  a2,
int  r3,
int  g3,
int  b3,
int  a3 
)

Set a color overlay for a given Elementary color class.

Since :
2.3
Parameters:
[in]color_classColor class name
[in]rObject Red value
[in]gObject Green value
[in]bObject Blue value
[in]aObject Alpha value
[in]r2Text outline Red value
[in]g2Text outline Green value
[in]b2Text outline Blue value
[in]a2Text outline Alpha value
[in]r3Text shadow Red value
[in]g3Text shadow Green value
[in]b3Text shadow Blue value
[in]a3Text shadow Alpha value
Since (EFL) :
1.10

The first color is for the object itself, the second color is for the text outline, and the third color is for the text shadow.

Remarks:
The second two color are only for texts.

Setting color emits a signal "color_class,set" with source being the given color class in all edje objects.

See also:
elm_config_color_overlay_list_get()
elm_config_color_overlay_unset()
edje_color_class_set()
Remarks:
unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
void elm_config_color_overlay_unset ( const char *  color_class)

Unset a color overlay for a given Elementary color class.

Since :
2.3
Parameters:
[in]color_classColor class name
Since (EFL) :
1.10
Remarks:
This will bring back color elements belonging to color class color_class back to their default color settings.