summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_data.c
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-02-05 07:55:46 +0100
committerCedric BAIL <cedric@osg.samsung.com>2016-02-05 07:55:49 +0100
commit800f5d81569caab9fca824b11fb8ea2259e2ae7d (patch)
tree791827adc2989e11c3167708605efe8adf61db83 /src/lib/edje/edje_data.c
parenta416f73790aa9cd851cc4748a881df169d480d9f (diff)
downloadefl-800f5d81569caab9fca824b11fb8ea2259e2ae7d.tar.gz
edje: introduce color_tree (color_class inheritance)
Summary: The "color_tree" block contains a list of one or more "node" blocks. A "node" block consists of its own color class name and the list of child color classes. At runtime, parent color class will be referred instead, if child color class is set to part but its color values are not defined. Reviewers: raster, Jaehyun_Cho, jpeg, cedric Reviewed By: cedric Subscribers: cedric, kimcinoo Differential Revision: https://phab.enlightenment.org/D3606 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje/edje_data.c')
-rw-r--r--src/lib/edje/edje_data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/edje/edje_data.c b/src/lib/edje/edje_data.c
index 18e014e7e6..4eaaec9592 100644
--- a/src/lib/edje/edje_data.c
+++ b/src/lib/edje/edje_data.c
@@ -6,6 +6,7 @@ EAPI Eet_Data_Descriptor * _edje_edd_edje_part_collection = NULL;
Eet_Data_Descriptor *_edje_edd_edje_string = NULL;
Eet_Data_Descriptor *_edje_edd_edje_style = NULL;
Eet_Data_Descriptor *_edje_edd_edje_style_tag = NULL;
+Eet_Data_Descriptor *_edje_edd_edje_color_tree_node = NULL;
Eet_Data_Descriptor *_edje_edd_edje_color_class = NULL;
Eet_Data_Descriptor *_edje_edd_edje_text_class = NULL;
Eet_Data_Descriptor *_edje_edd_edje_size_class = NULL;
@@ -521,6 +522,12 @@ _edje_edd_init(void)
EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_edje_style, Edje_Style, "name", name, EET_T_STRING);
EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_style, Edje_Style, "tags", tags, _edje_edd_edje_style_tag);
+ EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(&eddc, Edje_Color_Tree_Node);
+ _edje_edd_edje_color_tree_node =
+ eet_data_descriptor_file_new(&eddc);
+ EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_edje_color_tree_node, Edje_Color_Tree_Node, "name", name, EET_T_STRING);
+ EET_DATA_DESCRIPTOR_ADD_LIST_STRING(_edje_edd_edje_color_tree_node, Edje_Color_Tree_Node, "color_classes", color_classes);
+
EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(&eddc, Edje_Color_Class);
_edje_edd_edje_color_class =
eet_data_descriptor_file_new(&eddc);
@@ -579,6 +586,7 @@ _edje_edd_init(void)
EET_DATA_DESCRIPTOR_ADD_SUB(_edje_edd_edje_file, Edje_File, "vibration_dir", vibration_dir, _edje_edd_edje_vibration_directory);
EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_file, Edje_File, "styles", styles, _edje_edd_edje_style);
+ EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_file, Edje_File, "color_tree", color_tree, _edje_edd_edje_color_tree_node);
EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_file, Edje_File, "color_classes", color_classes, _edje_edd_edje_color_class);
EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_file, Edje_File, "text_classes", text_classes, _edje_edd_edje_text_class);
EET_DATA_DESCRIPTOR_ADD_LIST(_edje_edd_edje_file, Edje_File, "size_classes", size_classes, _edje_edd_edje_size_class);