aboutsummaryrefslogtreecommitdiffstats
path: root/src/static_libs/vg_common/vg_common_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/static_libs/vg_common/vg_common_json.c')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c
index 3d00bbb842..f289bd65b4 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -361,6 +361,11 @@ _update_vg_tree(Efl_Canvas_Vg_Container *root, const LOTLayerNode *layer, int de
for (int i = 0; i < depth; i++) printf(" ");
printf("%s (%p) matte:%d => %p\n", efl_class_name_get(efl_class_get(ctree)), ctree, matte_mode, ptree);
#endif
+
+ //Set Container's alpha color
+ if (clayer->mAlpha < 255)
+ efl_gfx_color_set(ctree, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha);
+
_update_vg_tree(ctree, clayer, depth+1);
if (matte_mode != 0)
@@ -438,6 +443,8 @@ vg_common_json_create_vg_node(Vg_File_Data *vfd)
efl_key_data_set(root, _get_key_val((void *) tree), tree);
vfd->root = root;
}
+ if (tree->mAlpha < 255)
+ efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, tree->mAlpha);
_update_vg_tree(root, tree, 1);
#else