rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=e68a60580b2dd0b473a400b59fe1393537e04314
commit e68a60580b2dd0b473a400b59fe1393537e04314 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Mon Feb 8 10:54:48 2016 +0200 style_manager: use icons for mark styles and tags Change-Id: I4927fa1250ca8f9812adf2d33116be432dd21b40 --- src/bin/ui/style_manager.c | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/bin/ui/style_manager.c b/src/bin/ui/style_manager.c index e06f2e8..3fc28ba 100644 --- a/src/bin/ui/style_manager.c +++ b/src/bin/ui/style_manager.c @@ -538,6 +538,36 @@ _item_style_label_get(void *data, return strdup(style_label); } +static Evas_Object * +_item_style_icon_get(void *data __UNUSED__, + Evas_Object *obj, + const char *part) +{ + Evas_Object *icon = NULL; + + if (!strcmp(part, "elm.swallow.icon")) + { + ICON_STANDARD_ADD(obj, icon, true, "text_style"); + } + + return icon; +} + +static Evas_Object * +_item_tags_icon_get(void *data __UNUSED__, + Evas_Object *obj, + const char *part) +{ + Evas_Object *icon = NULL; + + if (!strcmp(part, "elm.swallow.icon")) + { + ICON_STANDARD_ADD(obj, icon, true, "text_style_tag"); + } + + return icon; +} + static inline Evas_Object * _style_manager_search_field_create(Evas_Object *parent) { @@ -806,18 +836,18 @@ _form_right_side(Style_Editor *style_edit) if (!_itc_style) { _itc_style = elm_genlist_item_class_new(); - _itc_style->item_style = "default"; + _itc_style->item_style = "aligned"; _itc_style->func.text_get = _item_style_label_get; - _itc_style->func.content_get = NULL; + _itc_style->func.content_get = _item_style_icon_get; _itc_style->func.state_get = NULL; _itc_style->func.del = NULL; } if (!_itc_tags) { _itc_tags= elm_genlist_item_class_new(); - _itc_tags->item_style = "default"; + _itc_tags->item_style = "aligned"; _itc_tags->func.text_get = _item_tags_label_get; - _itc_tags->func.content_get = NULL; + _itc_tags->func.content_get = _item_tags_icon_get; _itc_tags->func.state_get = NULL; _itc_tags->func.del = NULL; } --