_e_comp_object_shadow_setup(E_Comp_Object *cw)
{
int ok = 0;
- char buf[4096];
Eina_List *list = NULL, *l;
E_Input_Rect_Data *input_rect_data;
E_Input_Rect_Smart_Data *input_rect_sd;
focus = m->focus;
no_shadow = m->no_shadow;
- if (m->shadow_style)
- {
- /* fast effects are just themes with "/fast" appended and shorter effect times */
- if (fast)
- {
- snprintf(buf, sizeof(buf), "e/comp/frame/%s/fast", m->shadow_style);
- reshadow = ok = !e_util_strcmp(reshadow_group, buf);
- if (!ok)
- ok = e_theme_edje_object_set(cw->shobj, "base/theme/comp", buf);
- }
- /* default to non-fast style if fast not available */
- if (!ok)
- {
- snprintf(buf, sizeof(buf), "e/comp/frame/%s", m->shadow_style);
- reshadow = ok = !e_util_strcmp(reshadow_group, buf);
- if (!ok)
- ok = e_theme_edje_object_set(cw->shobj, "base/theme/comp", buf);
- }
- if (ok && m->visibility_effect)
- eina_stringshare_refplace(&cw->visibility_effect, m->visibility_effect);
- if (ok) break;
- }
}
}
while (!ok)
ok = e_theme_edje_object_set(cw->shobj, "base/theme/comp", "e/comp/frame/none");
}
if (ok) break;
- if (conf->shadow_style)
- {
- if (fast)
- {
- snprintf(buf, sizeof(buf), "e/comp/frame/%s/fast", conf->shadow_style);
- reshadow = ok = !e_util_strcmp(reshadow_group, buf);
- if (!ok)
- ok = e_theme_edje_object_set(cw->shobj, "base/theme/comp", buf);
- }
- if (!ok)
- {
- snprintf(buf, sizeof(buf), "e/comp/frame/%s", conf->shadow_style);
- reshadow = ok = !e_util_strcmp(reshadow_group, buf);
- if (!ok)
- ok = e_theme_edje_object_set(cw->shobj, "base/theme/comp", buf);
- }
- }
if (!ok)
{
if (fast)
{
Evas_Object *o;
const char *name;
- E_Comp_Config *conf = e_comp_config_get();
Eina_Bool skip = EINA_FALSE;
- char buf[1024];
int ok = 0;
int x, y, w, h;
Eina_Bool vis;
if (skip)
evas_object_data_set(o, "comp_object_skip", (void*)1);
- if (conf->shadow_style)
- {
- snprintf(buf, sizeof(buf), "e/comp/frame/%s", conf->shadow_style);
- ok = e_theme_edje_object_set(o, "base/theme/comp", buf);
- }
if (!ok)
e_theme_edje_object_set(o, "base/theme/comp", "e/comp/frame/default");
if (e_util_strcmp(evas_object_type_get(obj), "edje") || (!edje_object_data_get(obj, "noshadow")))
E_CONFIG_VAL(D, T, modal, CHAR);
E_CONFIG_VAL(D, T, focus, CHAR);
E_CONFIG_VAL(D, T, no_shadow, CHAR);
- E_CONFIG_VAL(D, T, shadow_style, STR);
E_CONFIG_VAL(D, T, visibility_effect, STR);
*conf_edd = E_CONFIG_DD_NEW("Comp_Config", E_Comp_Config);
#define T E_Comp_Config
#define D *conf_edd
E_CONFIG_VAL(D, T, version, INT);
- E_CONFIG_VAL(D, T, shadow_style, STR);
E_CONFIG_VAL(D, T, engine, INT);
E_CONFIG_VAL(D, T, effect_file, STR);
E_CONFIG_VAL(D, T, effect_style, STR);
cfg = E_NEW(E_Comp_Config, 1);
if (!cfg) goto error;
cfg->version = E_COMP_VERSION;
- cfg->shadow_style = eina_stringshare_add("default");
cfg->effect_file = NULL;
cfg->effect_style = "none";
cfg->depth_in_style = "none";
if (!mat) goto error;
cfg->match.popups = eina_list_append(cfg->match.popups, mat);
mat->name = eina_stringshare_add("shelf");
- mat->shadow_style = eina_stringshare_add("popup");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.popups = eina_list_append(cfg->match.popups, mat);
mat->name = eina_stringshare_add("_e_popup_desklock");
- mat->shadow_style = eina_stringshare_add("still");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.popups = eina_list_append(cfg->match.popups, mat);
mat->name = eina_stringshare_add("_e_popup_notification");
- mat->shadow_style = eina_stringshare_add("still");
mat->no_shadow = 1;
mat->focus = 1;
if (!mat) goto error;
cfg->match.popups = eina_list_append(cfg->match.popups, mat);
mat->name = eina_stringshare_add("E Drag");
- mat->shadow_style = eina_stringshare_add("still");
mat->no_shadow = 1;
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.popups = eina_list_append(cfg->match.popups, mat);
- mat->shadow_style = eina_stringshare_add("popup");
cfg->match.borders = NULL;
if (!mat) goto error;
cfg->match.borders = eina_list_append(cfg->match.borders, mat);
mat->fullscreen = 1;
- mat->shadow_style = eina_stringshare_add("fullscreen");
cfg->match.overrides = NULL;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->name = eina_stringshare_add("E");
mat->clas = eina_stringshare_add("everything");
- mat->shadow_style = eina_stringshare_add("everything");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_DROPDOWN_MENU;
- mat->shadow_style = eina_stringshare_add("menu");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_POPUP_MENU;
- mat->shadow_style = eina_stringshare_add("menu");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_COMBO;
- mat->shadow_style = eina_stringshare_add("menu");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_TOOLTIP;
- mat->shadow_style = eina_stringshare_add("menu");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_MENU;
- mat->shadow_style = eina_stringshare_add("menu");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_DND;
- mat->shadow_style = eina_stringshare_add("still");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
mat->primary_type = E_WINDOW_TYPE_DOCK;
- mat->shadow_style = eina_stringshare_add("none");
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.overrides = eina_list_append(cfg->match.overrides, mat);
- mat->shadow_style = eina_stringshare_add("popup");
cfg->match.menus = NULL;
mat = E_NEW(E_Comp_Match, 1);
if (!mat) goto error;
cfg->match.menus = eina_list_append(cfg->match.menus, mat);
- mat->shadow_style = eina_stringshare_add("menu");
cfg->dim_rect_effect = 0;
cfg->dim_rect_enable = 0;
eina_stringshare_del(m->name);
eina_stringshare_del(m->clas);
eina_stringshare_del(m->role);
- eina_stringshare_del(m->shadow_style);
eina_stringshare_del(m->visibility_effect);
free(m);
}
eina_stringshare_del(cfg->bg_effect_style);
eina_stringshare_del(cfg->kbd_effect_style);
eina_stringshare_del(cfg->effect_file);
- eina_stringshare_del(cfg->shadow_style);
eina_stringshare_del(cfg->launch_file);
E_FREE_LIST(cfg->match.popups, e_comp_cfdata_match_free);