Tizen Native API

Configuration for Elementary colors.

Functions

Eina_Listelm_config_color_classes_list_get (void)
 Gets Elementary's list of supported color classes.
void elm_config_color_classes_list_free (Eina_List *list)
 Frees Elementary's list of supported color classes.
const Eina_Listelm_config_color_overlay_list_get (void)
 Gets 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)
 Sets a color overlay for a given Elementary color class.
void elm_config_color_overlay_unset (const char *color_class)
 Unsets a color overlay for a given Elementary color class.
void elm_config_color_overlay_apply (void)
 Applies the changes made with elm_config_color_overlay_set() and elm_config_color_overlay_unset() on the current Elementary window.

Function Documentation

Frees Elementary's list of supported color classes.

Since (EFL) :
1.10
Since :
2.3.1
Parameters:
[in]listThe color classes list
See also:
elm_config_color_classes_list_get().

Gets Elementary's list of supported color classes.

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

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

This applies to all color overlays set to all objects in the UI.

Since (EFL) :
1.10
Since :
2.3.1

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

Since (EFL) :
1.10
Since :
2.3.1
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.
Returns:
The color overlays list with Elm_Color_Overlay blobs as data
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 
)

Sets a color overlay for a given Elementary color class.

Since (EFL) :
1.10
Since :
2.3.1
Remarks:
The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts).
Setting color emits a signal "color_class,set" with source being the given color class in all edje objects.
Unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
Parameters:
[in]color_classThe color class name
[in]rThe object red value
[in]gThe object green value
[in]bThe object blue value
[in]aThe object alpha value
[in]r2The outline red value
[in]g2The outline green value
[in]b2The outline blue value
[in]a2The outline alpha value
[in]r3The shadow red value
[in]g3The shadow green value
[in]b3The shadow blue value
[in]a3The shadow alpha value
See also:
elm_config_color_overlay_list_get()
elm_config_color_overlay_unset()
edje_color_class_set()
void elm_config_color_overlay_unset ( const char *  color_class)

Unsets a color overlay for a given Elementary color class.

Since (EFL) :
1.10
Since :
2.3.1
Remarks:
This brings back color elements belonging to the color class color_class back to their default color settings.
Parameters:
[in]color_classThe color class name