rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=a212f87ba05806f12aeacf38a62ee59c8c1a0ede
commit a212f87ba05806f12aeacf38a62ee59c8c1a0ede Author: Vitalii Vorobiov <vi.vorob...@samsung.com> Date: Mon Jul 11 16:51:54 2016 +0300 property_color: update resource --- src/bin/ui/property/property_color.c | 56 ++++++++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 12 deletions(-) diff --git a/src/bin/ui/property/property_color.c b/src/bin/ui/property/property_color.c index 23c8ad6..a0ca625 100644 --- a/src/bin/ui/property/property_color.c +++ b/src/bin/ui/property/property_color.c @@ -40,21 +40,53 @@ static Property_Color_Data color_data; static void _colorclass_update(ColorClassData *selected) { + Colorclass_Resource *res; + Resource request; + edje_object_color_class_set(selected->edje_preview, "colorclass_manager/text_example_colorclass", - selected->current_ccl->r1, selected->current_ccl->g1, - selected->current_ccl->b1, selected->current_ccl->a1, - selected->current_ccl->r2, selected->current_ccl->g2, - selected->current_ccl->b2, selected->current_ccl->a2, - selected->current_ccl->r3, selected->current_ccl->g3, - selected->current_ccl->b3, selected->current_ccl->a3); + selected->current_ccl->r1, + selected->current_ccl->g1, + selected->current_ccl->b1, + selected->current_ccl->a1, + selected->current_ccl->r2, + selected->current_ccl->g2, + selected->current_ccl->b2, + selected->current_ccl->a2, + selected->current_ccl->r3, + selected->current_ccl->g3, + selected->current_ccl->b3, + selected->current_ccl->a3); edje_edit_color_class_colors_set(ap.project->global_object, selected->current_ccl->name, - selected->current_ccl->r1, selected->current_ccl->g1, - selected->current_ccl->b1, selected->current_ccl->a1, - selected->current_ccl->r2, selected->current_ccl->g2, - selected->current_ccl->b2, selected->current_ccl->a2, - selected->current_ccl->r3, selected->current_ccl->g3, - selected->current_ccl->b3, selected->current_ccl->a3); + selected->current_ccl->r1, + selected->current_ccl->g1, + selected->current_ccl->b1, + selected->current_ccl->a1, + selected->current_ccl->r2, + selected->current_ccl->g2, + selected->current_ccl->b2, + selected->current_ccl->a2, + selected->current_ccl->r3, + selected->current_ccl->g3, + selected->current_ccl->b3, + selected->current_ccl->a3); + + TODO("Remove and fix that after REAL RESOURCE MANAGER will exist") + request.resource_type = RESOURCE_TYPE_COLORCLASS; + request.name = selected->current_ccl->name; + res = (Colorclass_Resource *)resource_get(ap.project->colorclasses, &request); + res->color1.r = selected->current_ccl->r1; + res->color1.g = selected->current_ccl->g1; + res->color1.b = selected->current_ccl->b1; + res->color1.a = selected->current_ccl->a1; + res->color2.r = selected->current_ccl->r2; + res->color2.g = selected->current_ccl->g2; + res->color2.b = selected->current_ccl->b2; + res->color2.a = selected->current_ccl->a2; + res->color3.r = selected->current_ccl->r3; + res->color3.g = selected->current_ccl->g3; + res->color3.b = selected->current_ccl->b3; + res->color3.a = selected->current_ccl->a3; CRIT_ON_FAIL(editor_save(ap.project->global_object)); ap.project->changed = true; --