summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_label.c
diff options
context:
space:
mode:
authorali <ali198724@gmail.com>2019-08-01 23:00:07 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-08-19 11:33:23 -0700
commita821eb456a8c89943f306286669093e2a43aa1f1 (patch)
treea01947b8912495ca731861833ed6e270acedd487 /src/bin/elementary/test_label.c
parent1d76452aa964c93cd7b8ea343f918866bf9cacb8 (diff)
evas_common: parse color in rgb()/rgba() format
evas_common_format_color_parse: support rgb()/rgba() format efl user can now specify colors in text formats and styles as rgb(0-255,0-255,0-255) & rgba(0-255,0-255,0-255,0-255) format. This is related to task: T8068 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9309
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_label.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/elementary/test_label.c b/src/bin/elementary/test_label.c
index c00ae79..233ce01 100644
--- a/src/bin/elementary/test_label.c
+++ b/src/bin/elementary/test_label.c
@@ -393,6 +393,8 @@ test_label_colors(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
393 elm_object_text_set(lb, 393 elm_object_text_set(lb,
394 "<color=red>this is red color line(color = red)<color><br>" 394 "<color=red>this is red color line(color = red)<color><br>"
395 "<color=#0000FF>this is blue color line (color = #0000FF)<color><br>" 395 "<color=#0000FF>this is blue color line (color = #0000FF)<color><br>"
396 "<color=rgb(0,255,0)>this is green color line (color = rgb(0,255,0))<color><br>"
397 "<color=rgba(0,255,0,255)>this is blue color line (color = rgba(0,255,0,255))<color><br>"
396 ); 398 );
397 evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 399 evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
398 elm_win_resize_object_add(win, lb); 400 elm_win_resize_object_add(win, lb);