diff options
author | Andrii Kroitor <an.kroitor@samsung.com> | 2017-10-30 09:59:19 +0200 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-11-07 18:30:08 +0900 |
commit | 946d5f2dd6c034884a86c15d1477a54ff3fcce9e (patch) | |
tree | 871ab7460f71ca298a1d2323b46df002fbb01701 | |
parent | 0c2cf93b6fe98b7a2d8702c2d27514396370b0de (diff) | |
download | efl-946d5f2dd6c034884a86c15d1477a54ff3fcce9e.tar.gz |
edje_cc: fix default color_class colors
If you have undefined color_class, edje will use solid white for its
colors. If you define color_class name without colors edje_cc now has
same defaults instead of 0 0 0 0.
@fix
-rw-r--r-- | src/bin/edje/edje_cc_handlers.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c index 748fd19a0a..fbc4864486 100644 --- a/src/bin/edje/edje_cc_handlers.c +++ b/src/bin/edje/edje_cc_handlers.c @@ -3082,18 +3082,18 @@ ob_color_class(void) cc = mem_alloc(SZ(Edje_Color_Class)); edje_file->color_classes = eina_list_append(edje_file->color_classes, cc); - cc->r = 0; - cc->g = 0; - cc->b = 0; - cc->a = 0; - cc->r2 = 0; - cc->g2 = 0; - cc->b2 = 0; - cc->a2 = 0; - cc->r3 = 0; - cc->g3 = 0; - cc->b3 = 0; - cc->a3 = 0; + cc->r = 255; + cc->g = 255; + cc->b = 255; + cc->a = 255; + cc->r2 = 255; + cc->g2 = 255; + cc->b2 = 255; + cc->a2 = 255; + cc->r3 = 255; + cc->g3 = 255; + cc->b3 = 255; + cc->a3 = 255; } static void @@ -3194,7 +3194,7 @@ parse_color(void *base) i.e "#F00F" or "#F00".\n In string format you can omit alpha channel and it will be set to FF. - Defaults: 0 0 0 0 + Defaults: 255 255 255 255 @endproperty */ static void @@ -3225,7 +3225,7 @@ st_color_class_color(void) i.e "#F00F" or "#F00".\n In string format you can omit alpha channel and it will be set to FF. - Defaults: 0 0 0 0 + Defaults: 255 255 255 255 @endproperty */ static void @@ -3256,7 +3256,7 @@ st_color_class_color2(void) i.e "#F00F" or "#F00".\n In string format you can omit alpha channel and it will be set to FF. - Defaults: 0 0 0 0 + Defaults: 255 255 255 255 @endproperty */ static void |