Eina_Bool rtl;
Eina_Bool tmp;
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
+ char* style;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, ELM_THEME_APPLY_FAILED);
{
edje_object_mirrored_set(VIEW(item), rtl);
+ style = (item->style ? item->style : elm_widget_style_get(obj));
+
if (item->label && item->icon)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else if (item->label)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
if (item->label)
ELM_CTXPOPUP_DATA_GET(WIDGET(ctxpopup_it), sd);
+ char *style = (ctxpopup_it->style ?
+ ctxpopup_it->style :
+ elm_widget_style_get(WIDGET(ctxpopup_it)));
+
if (ctxpopup_it->label && !label)
{
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
else if (!ctxpopup_it->label && label)
{
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
else
{
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_text_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_text_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
}
ELM_CTXPOPUP_DATA_GET(WIDGET(ctxpopup_it), sd);
+ char *style = (ctxpopup_it->style ?
+ ctxpopup_it->style :
+ elm_widget_style_get(WIDGET(ctxpopup_it)));
+
if (ctxpopup_it->icon)
evas_object_del(ctxpopup_it->icon);
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_text_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"icon_text_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
else if (ctxpopup_it->icon && !content)
{
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
}
ELM_CTXPOPUP_DATA_GET(WIDGET(ctxpopup_it), sd);
+ char *style = (ctxpopup_it->style ?
+ ctxpopup_it->style :
+ elm_widget_style_get(WIDGET(ctxpopup_it)));
+
edje_object_part_unswallow(VIEW(ctxpopup_it), ctxpopup_it->icon);
evas_object_hide(ctxpopup_it->icon);
if (!sd->horizontal)
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
else
_elm_theme_object_set(WIDGET(ctxpopup_it), VIEW(ctxpopup_it), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(WIDGET(ctxpopup_it)));
+ style);
}
content = ctxpopup_it->icon;
Eina_List *elist;
Elm_Ctxpopup_Item_Data *item;
int idx = 0;
+ char *style;
ELM_CTXPOPUP_DATA_GET(obj, sd);
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
EINA_LIST_FOREACH(sd->items, elist, item)
{
+ style = (item->style ? item->style : elm_widget_style_get(obj));
+
if (item->label && item->icon)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else if (item->label)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
if (idx++ == 0)
Eina_List *elist;
Elm_Ctxpopup_Item_Data *item;
int idx = 0;
+ char *style;
sd->horizontal = !!horizontal;
EINA_LIST_FOREACH(sd->items, elist, item)
{
+ style = (item->style ? item->style : elm_widget_style_get(obj));
+
if (item->label && item->icon)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else if (item->label)
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"text_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
else
{
if (!sd->horizontal)
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item",
- elm_widget_style_get(obj));
+ style);
else
_elm_theme_object_set(obj, VIEW(item), "ctxpopup",
"icon_style_item_horizontal",
- elm_widget_style_get(obj));
+ style);
}
if (idx++ == 0)
edje_object_signal_emit(VIEW(item), "elm,state,default", "elm");