//Background
priv->bg = edje_object_add(evas_object_evas_get(obj));
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->bg, obj);
+ /* END */
elm_widget_theme_object_set(obj, priv->bg, "ctxpopup", "bg", "default");
edje_object_signal_callback_add
(priv->bg, "elm,action,click", "*", _bg_clicked_cb, obj);
//Arrow
priv->arrow = edje_object_add(evas_object_evas_get(obj));
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->arrow, obj);
+ /* END */
elm_widget_theme_object_set
(obj, priv->arrow, "ctxpopup", "arrow", "default");
evas_object_smart_member_add(priv->arrow, obj);
sd->label = edje_object_add(evas_object_evas_get(obj));
if (!sd->label) return;
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->label, obj);
+ /* END */
elm_widget_theme_object_set
(obj, sd->label, "multibuttonentry", "label",
elm_widget_style_get(obj));
sd->entry = elm_entry_add(obj);
if (!sd->entry) return;
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->entry, obj);
+ /* END */
elm_entry_single_line_set(sd->entry, EINA_TRUE);
//TIZEN_ONLY(20160425): Entry property set for mobile UX.
elm_object_style_set(sd->entry, "multibuttonentry");
sd->end = edje_object_add(evas_object_evas_get(obj));
if (!sd->end) return;
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->end, obj);
+ /* END */
elm_widget_theme_object_set
//TIZEN_ONLY(20150429): "Closedbutton" name is only for upstream.
//(obj, sd->end, "multibuttonentry", "closedbutton",
const char *prev_title = prev_it->title_label;
prev_btn = _back_btn_new(obj, prev_title);
it->auto_pushed_btn = prev_btn;
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(it->auto_pushed_btn, VIEW(it));
+ /* END */
}
if (prev_btn)
//Scroller
sd->scr = elm_scroller_add(sd->tbl);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->scr, obj);
+ /* END */
/* TIZEN_ONLY(20160318): Support legacy group and swallow part names
if (!sd->scroll)
{
}
sd->text_content_obj = elm_label_add(sd->content_area);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->text_content_obj, obj);
+ /* END */
snprintf(style, sizeof(style), "popup/%s", elm_widget_style_get(obj));
/* TIZEN_ONLY(20160704): fix label theme problem
elm_object_style_set(sd->text_content_obj, style);
if (!sd->action_area)
{
sd->action_area = elm_layout_add(sd->main_layout);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->action_area, obj);
+ /* END */
evas_object_event_callback_add
(sd->action_area, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_size_hints_changed_cb, sd->main_layout);
snprintf(style, sizeof(style), "popup/%s", elm_widget_style_get(obj));
priv->notify = elm_notify_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->notify, obj);
+ /* END */
//TIZEN_ONLY(20160629): reorder notify align set
elm_notify_align_set(priv->notify,
evas_object_event_callback_add(priv->notify, EVAS_CALLBACK_RESIZE, _notify_resize_cb, obj);
priv->main_layout = elm_layout_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->main_layout, obj);
+ /* END */
if (!elm_layout_theme_set(priv->main_layout, "popup", "base",
elm_widget_style_get(obj)))
CRI("Failed to set layout!");
(priv->main_layout, "elm,state,action_area,hidden", "elm", _layout_change_cb, NULL);
priv->content_area = elm_layout_add(priv->main_layout);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->content_area, obj);
+ /* END */
/* TIZEN_ONLY(20160328): Support legacy groups
if (!elm_layout_theme_set(priv->content_area, "popup", "content", style))
CRI("Failed to set layout!");
if (!sd->dec_btn_month)
{
sd->dec_btn_month = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->dec_btn_year, obj);
+ /* END */
elm_button_autorepeat_set(sd->dec_btn_month, EINA_TRUE);
elm_button_autorepeat_initial_timeout_set(sd->dec_btn_month, 0.5);
elm_button_autorepeat_gap_timeout_set(sd->dec_btn_month, 0.2);
if (!sd->inc_btn_month)
{
sd->inc_btn_month = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->inc_btn_month, obj);
+ /* END */
elm_button_autorepeat_set(sd->inc_btn_month, EINA_TRUE);
elm_button_autorepeat_initial_timeout_set(sd->inc_btn_month, 0.5);
elm_button_autorepeat_gap_timeout_set(sd->inc_btn_month, 0.2);
if (!sd->dec_btn_year)
{
sd->dec_btn_year = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->dec_btn_year, obj);
+ /* END */
elm_button_autorepeat_set(sd->dec_btn_year, EINA_TRUE);
elm_button_autorepeat_initial_timeout_set(sd->dec_btn_year, 0.5);
elm_button_autorepeat_gap_timeout_set(sd->dec_btn_year, 0.2);
if (!sd->inc_btn_year)
{
sd->inc_btn_year = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->inc_btn_year, obj);
+ /* END */
elm_button_autorepeat_set(sd->inc_btn_year, EINA_TRUE);
elm_button_autorepeat_initial_timeout_set(sd->inc_btn_year, 0.5);
elm_button_autorepeat_gap_timeout_set(sd->inc_btn_year, 0.2);
{
field = priv->field_list + idx;
field->item_obj = dt_mod->field_create(priv->mod_data, idx);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(field->item_obj, obj);
+ /* END */
}
}
}
// XXX popup needs to adapt to theme etc.
sd->popup = edje_object_add(evas_object_evas_get(obj));
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->popup, obj);
+ /* END */
if (sd->horizontal)
_elm_theme_set(elm_widget_theme_get(obj), sd->popup, "slider", "horizontal/popup", elm_widget_style_get(obj));
else
if (!sd->ent)
{
sd->ent = elm_entry_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(sd->ent, obj);
+ /* END */
Eina_Strbuf *buf = eina_strbuf_new();
eina_strbuf_append_printf(buf, "spinner/%s", elm_widget_style_get(obj));
elm_widget_style_set(sd->ent, eina_strbuf_string_get(buf));
if (sd->button_layout)
{
priv->inc_button = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->inc_button, obj);
+ /* END */
elm_object_style_set(priv->inc_button, "spinner/increase/default");
eo_do(priv->inc_button,
elm_widget_sub_object_add(obj, priv->inc_button);
priv->text_button = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->text_button, obj);
+ /* END */
elm_object_style_set(priv->text_button, "spinner/default");
eo_do(priv->text_button, eo_event_callback_add
elm_widget_sub_object_add(obj, priv->text_button);
priv->dec_button = elm_button_add(obj);
+ /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
+ _elm_widget_color_class_parent_set(priv->dec_button, obj);
+ /* END */
elm_object_style_set(priv->dec_button, "spinner/decrease/default");
eo_do(priv->dec_button,