/* Main creation function */ EAPI void eco_config_ring(void *data) { ECO_PAGE_BEGIN("ring"); ECO_PAGE_TABLE("Options"); ECO_CREATE_SLIDER_DOUBLE(0, speed, "Ring speed", 0.1, 5.0, "%1.1f", 0, 0); ECO_CREATE_SLIDER_DOUBLE(0, timestep, "Timestep", 0.1, 5.0, "%1.1f", 0, 1); ECO_CREATE_SLIDER_INT(0, inactive_opacity, "Inactive window opacity", 1, 100, "%1.0f %%", 0, 2); ECO_CREATE_ENTRY(0, window_match, "Showed windows", 0, 3); ECO_CREATE_CHECKBOX(0, overlay_icon, "Show emblem icons", 0, 4); ECO_CREATE_CHECKBOX(0, darken_back, "Darken background", 0, 5); ECO_CREATE_CHECKBOX(0, minimized, "Show minimized", 0, 6); ECO_CREATE_CHECKBOX(0, rotate_clockwise, "Rotate clockwise on next", 0, 7); ECO_CREATE_CHECKBOX(0, window_title, "Show Window Title", 0, 8); ECO_CREATE_CHECKBOX(0, title_font_bold, "Bold Font", 0, 9); ECO_CREATE_SLIDER_INT(0, title_font_size, "Font Size", 6, 40, "%1.0f", 0, 10); ECO_CREATE_SLIDER_INT(0, ring_width, "Ring Width", 1, 100, "%1.0f %%", 0, 11); ECO_CREATE_SLIDER_INT(0, ring_height, "Ring Height", 1, 100, "%1.0f %%", 0, 12); ECO_CREATE_SLIDER_INT(0, thumb_width, "Thumb Width", 10, 400, "%1.0f", 0, 13); ECO_CREATE_SLIDER_INT(0, thumb_height, "Thumb Height", 10, 400, "%1.0f", 0, 14); ECO_CREATE_SLIDER_DOUBLE(0, min_scale, "Minimum Scale Factor", 0.1, 1.0, "%1.1f", 0, 15); ECO_CREATE_SLIDER_DOUBLE(0, min_brightness, "Minimum Brightness Factor", 0.1, 1.0, "%1.1f", 0, 16); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_water(void *data) { ECO_PAGE_BEGIN("water"); ECO_PAGE_TABLE("Options"); ECO_CREATE_SLIDER_DOUBLE(-1, offset_scale, "Offset scale", 0.0, 10.0, "%1.1f", 0, 1); ECO_CREATE_SLIDER_INT(-1, rain_delay, "Rain delay", 1, 3000, "%1.0f milliseconds", 0, 2); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_rotate(void *data) { ECO_PAGE_BEGIN("rotate"); ECO_PAGE_TABLE("Options"); ECO_CREATE_SLIDER_DOUBLE(0, speed, "Rotation speed", 0.1, 50.0, "%1.1f", 0, 0); ECO_CREATE_SLIDER_DOUBLE(0, acceleration, "Rotation acceleration", 1.0, 20.0, "%1.1f", 0, 1); ECO_CREATE_SLIDER_DOUBLE(0, timestep, "Rotation timestep", 0.1, 50.0, "%1.1f", 0, 2); ECO_CREATE_SLIDER_DOUBLE(0, zoom, "Rotation zoom", 0.0, 2.0, "%1.1f", 0, 3); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_shift(void *data) { ECO_PAGE_BEGIN("shift"); ECO_PAGE_TABLE(_("Options")); ECO_CREATE_SLIDER_DOUBLE(0, speed, _("Fade animation speed"), 0.1, 10.0, "%1.1f", 0, 0); ECO_CREATE_SLIDER_DOUBLE(0, shift_speed, _("Shift animation speed"), 0.1, 5.0, "%1.1f", 0, 1); /* this seems to have no effect here */ /* ECO_CREATE_SLIDER_DOUBLE(0, timestep, _("Timestep"), * 0.1, 5.0, "%1.1f", 0, 2); */ ECO_CREATE_ENTRY(0, window_match, _("Showed windows"), 0, 2); ECO_CREATE_CHECKBOX(0, minimized, _("Show minimized"), 0, 3); ECO_CREATE_CHECKBOX(0, mipmaps, _("Use Mipmaps (better quality)"), 0, 4); ECO_PAGE_TABLE_END; ECO_PAGE_TABLE("Appearance"); ECO_CREATE_CHECKBOX(0, reflection, _("Enable reflection"), 0, 0); ECO_CREATE_SLIDER_INT(0, size, _("Maximum window size"), 1, 100, "%1.0f %%", 0, 1); ECO_CREATE_SLIDER_DOUBLE(0, background_intensity, _("Background intensity"), 0.0, 1.0, "%1.2f", 0, 2); ECO_CREATE_CHECKBOX(0, overlay_icon, _("Show emblem icons"), 0, 3); ECO_CREATE_CHECKBOX(0, hide_all, _("Hide dock windows"), 0, 4); ECO_CREATE_RADIO_GROUP(0, mode, _("Switcher Mode"), modes, NUM_MODES, 0, 5); ECO_CREATE_SLIDER_INT(0, flip_rotation, _("Flip Rotation Angle"), 1, 100, "%1.0f %%", 0, 6); ECO_CREATE_SLIDER_DOUBLE(0, cover_offset, _("Cover movement offset"), -0.4, 0.2, "%1.1f", 0, 7); ECO_PAGE_TABLE_END; ECO_PAGE_TABLE(_("Window title")); ECO_CREATE_CHECKBOX(0, window_title, _("Show window title"), 0, 0); ECO_CREATE_CHECKBOX(0, title_font_bold, _("Use Bold font"), 0, 1); ECO_CREATE_SLIDER_INT(0, title_font_size, _("Font size"), 6, 96, "%1.0f", 0, 2); ECO_CREATE_RADIO_GROUP(0, title_text_placement, _("Title placement"), placement, NUM_PLACEMENT, 0, 3); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_blur(void *data) { ECO_PAGE_BEGIN("blur"); ECO_PAGE_TABLE("Options"); ECO_CREATE_SLIDER_DOUBLE(0, blur_speed, "Blur speed", 0.1, 10.0, "%1.1f", 0, 0); ECO_CREATE_CHECKBOX(0, focus_blur, "Focus blurring", 0, 1); ECO_CREATE_ENTRY(0, focus_blur_match, "Focus blur matching", 0, 2); ECO_CREATE_CHECKBOX(0, alpha_blur, "Transparency blurring", 0, 3); ECO_CREATE_ENTRY(0, alpha_blur_match, "Transparency blur matching", 0, 4); ECO_CREATE_RADIO_GROUP(0, filter, "Filter", filters, NUM_FILTER, 0, 5); ECO_CREATE_SLIDER_INT(0, gaussian_radius, "Gausian radius", 1, 15, "%1.1f", 0, 9); ECO_CREATE_SLIDER_DOUBLE(0, gaussian_strength, "Gausian strength", 0.0, 1, "%1.1f", 0, 10); ECO_CREATE_SLIDER_DOUBLE(0, mipmap_lod, "Mipmap LOD", 0.1, 5, "%1.1f", 0, 11); ECO_CREATE_SLIDER_INT(0, saturation, "Saturation", 0, 100, "%1.1f", 0, 12); ECO_CREATE_CHECKBOX(0, occlusion, "occlusion", 0, 13); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_opacity(void *data) { ECO_PAGE_BEGIN("core"); ECO_PAGE_TABLE(_("Options")); ECO_CREATE_SLIDER_INT(0, opacity_step, "Opacity change step", 1, 50, "%1.0f", 0, 0); ECO_PAGE_TABLE_END; ECO_PAGE_TABLE(_("Window Match")); ECO_CREATE_LIST_MATCH(0, "opacity_matches", 0, 0); ECO_PAGE_TABLE_END; ECO_PAGE_TABLE( _("Opacity for selected match")); ECO_CREATE_SLIDER_LIST_INT(0, opacity, "Opacity", 0, 100, "%1.0f %%", 0, 0); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Main creation function */ EAPI void eco_config_decoration(void *data) { ECO_PAGE_BEGIN("decoration"); ECO_PAGE_TABLE("Normal Shadow"); ECO_CREATE_SLIDER_DOUBLE(-1, shadow_radius, "Radius", 0.0, 48.0, "%1.1f", 0, 0); ECO_CREATE_SLIDER_DOUBLE(-1, shadow_opacity, "Opacity", 0.0, 1.0, "%1.2f", 0, 1); ECO_CREATE_SLIDER_INT(-1, shadow_x_offset, "Offset X", -16, 16, "%1.0f", 0, 2); ECO_CREATE_SLIDER_INT(-1, shadow_y_offset, "Offset Y", -16, 16, "%1.0f", 0, 3); ECO_CREATE_ENTRY(-1, shadow_match, "Match Windows", 0, 4); ECO_PAGE_TABLE_END; ECO_PAGE_TABLE("Second Shadow (e.g. Menus))"); ECO_CREATE_SLIDER_DOUBLE(-1, menu_shadow_radius, "Radius", 0.0, 48.0, "%1.1f", 0, 0); ECO_CREATE_SLIDER_DOUBLE(-1, menu_shadow_opacity, "Opacity", 0.0, 1.0, "%1.2f", 0, 1); ECO_CREATE_SLIDER_INT(-1, menu_shadow_x_offset, "Offset X", -16, 16, "%1.0f", 0, 2); ECO_CREATE_SLIDER_INT(-1, menu_shadow_y_offset, "Offset Y", -16, 16, "%1.0f", 0, 3); ECO_CREATE_ENTRY(-1, menu_shadow_match, "Match Windows", 0, 4); ECO_PAGE_TABLE_END; ECO_PAGE_END; }
/* Page creation functions */ static void eco_config_animation_page(void *data) { int val = 0; int max = 6; selected = -1; ECO_PAGE_BEGIN("animation"); ECO_PAGE_TABLE(_("Window Match")); ECO_CREATE_LIST_MATCH(0, str_matches, 0, 0); /* to remember previously selected item */ if (e_widget_ilist_count(o_matches) > 0) selected = 0; ECO_PAGE_TABLE_END; ECO_PAGE_TABLE(_("Animation duration")); o = e_widget_label_add(cfdata->evas, _("Duration")); e_widget_frametable_object_append(ta, o, 0, 0, 1, 1, 1, 0, 0, 0); o_duration = e_widget_slider_add(cfdata->evas, 1, 0, "%1.0f ms", 50, 2000, 1.0, 0, NULL, &duration, 0); e_widget_disabled_set(o_duration, 1); \ e_widget_frametable_object_append(ta, o_duration, 1, 0, 1, 1, 1, 0, 1, 0); opt = eco_config_option_list_nth(cfg_screen, str_durations, 0); if (opt) { e_widget_slider_value_int_set(o_duration, opt->intValue); e_widget_disabled_set(o_duration, 0); } ECO_PAGE_TABLE_END; ECO_PAGE_TABLE( _("Animation for selected match")); opt = eco_config_option_list_nth(cfg_screen, str_effects, 0); if (opt) effect = opt->intValue; group = e_widget_radio_group_new(&effect); for (i = 0; i < effect_cnt; i++) { o_effect[i] = e_widget_radio_add(cfdata->evas, effect_names[i], i, group); e_widget_frametable_object_append(ta, o_effect[i], (i/max), (i%max), 1, 1, 1, 0, 1, 0); if (effect == i) e_widget_radio_toggle_set(o_effect[i], 1); } ECO_PAGE_TABLE_END; ECO_PAGE_TABLE( _("Animation random pool")); opt = eco_config_option_get(cfg_screen, str_randoms); for (i = 0; i < effect_cnt; i++) random_effect[i] = 0; for (l = opt->listValue; l; l = l->next) { item = l->data; random_effect[item->intValue] = 1; } for (i = 0; i < effect_cnt; i++) { o = e_widget_check_add(cfdata->evas, effect_names[i], &random_effect[i]); e_widget_frametable_object_append(ta, o, (i/max), (i%max), 1, 1, 1, 0, 1, 0); } ECO_PAGE_TABLE_END; ECO_PAGE_END; }