This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository engage.
View the commit online.
commit 2436bd73cb05b96dbe420b275d864c9e7cfe2a62
Author: Alastair Poole <[email protected]>
AuthorDate: Sun Nov 29 05:25:26 2026 +0000
dock: make it gorgeous
---
e_mod_main.c | 40 +++++++++-
e_mod_main.h | 4 +
engage_dock.c | 231 ++++++++++++++++++++++++++++++++++++++----------------
engage_settings.c | 36 ++++++++-
4 files changed, 239 insertions(+), 72 deletions(-)
diff --git a/e_mod_main.c b/e_mod_main.c
index bacdbe0..6309648 100644
--- a/e_mod_main.c
+++ b/e_mod_main.c
@@ -19,6 +19,8 @@ typedef struct
int dock_height;
int dock_location;
int dock_auto_hide;
+ int dock_animations_disabled;
+ int dock_previews_disabled;
const char *dock_style;
int dock_transparency;
} Engage_Config;
@@ -109,6 +111,36 @@ engage_config_dock_auto_hide_set(Eina_Bool enabled)
engage_docks_refresh();
}
+Eina_Bool
+engage_config_dock_animations_get(void)
+{
+ return !config->dock_animations_disabled;
+}
+
+void
+engage_config_dock_animations_set(Eina_Bool enabled)
+{
+ if (engage_config_dock_animations_get() == enabled) return;
+ config->dock_animations_disabled = !enabled;
+ e_config_save_queue();
+ engage_docks_refresh();
+}
+
+Eina_Bool
+engage_config_dock_previews_get(void)
+{
+ return !config->dock_previews_disabled;
+}
+
+void
+engage_config_dock_previews_set(Eina_Bool enabled)
+{
+ if (engage_config_dock_previews_get() == enabled) return;
+ config->dock_previews_disabled = !enabled;
+ e_config_save_queue();
+ engage_docks_refresh();
+}
+
int
engage_config_dock_width_get(void)
{
@@ -189,10 +221,16 @@ config_init(void)
E_CONFIG_VAL(config_descriptor, Engage_Config, dock_height, INT);
E_CONFIG_VAL(config_descriptor, Engage_Config, dock_location, INT);
E_CONFIG_VAL(config_descriptor, Engage_Config, dock_auto_hide, INT);
+ E_CONFIG_VAL(config_descriptor, Engage_Config, dock_animations_disabled, INT);
+ E_CONFIG_VAL(config_descriptor, Engage_Config, dock_previews_disabled, INT);
E_CONFIG_VAL(config_descriptor, Engage_Config, dock_style, STR);
E_CONFIG_VAL(config_descriptor, Engage_Config, dock_transparency, INT);
config = e_config_domain_load("module.engage", config_descriptor);
- if (!config) config = E_NEW(Engage_Config, 1);
+ if (!config)
+ {
+ config = E_NEW(Engage_Config, 1);
+ if (config) config->dock_transparency = 40;
+ }
if (config) return EINA_TRUE;
}
diff --git a/e_mod_main.h b/e_mod_main.h
index 0b27549..8558c9c 100644
--- a/e_mod_main.h
+++ b/e_mod_main.h
@@ -23,6 +23,10 @@ Engage_Dock_Location engage_config_dock_location_get(void);
void engage_config_dock_location_set(Engage_Dock_Location location);
Eina_Bool engage_config_dock_auto_hide_get(void);
+Eina_Bool engage_config_dock_animations_get(void);
+void engage_config_dock_animations_set(Eina_Bool enabled);
+Eina_Bool engage_config_dock_previews_get(void);
+void engage_config_dock_previews_set(Eina_Bool enabled);
void engage_config_dock_auto_hide_set(Eina_Bool enabled);
diff --git a/engage_dock.c b/engage_dock.c
index 538451f..4e65c6d 100644
--- a/engage_dock.c
+++ b/engage_dock.c
@@ -61,20 +61,21 @@ typedef struct
Engage_Dock *dock;
Evas_Object *visual;
Evas_Object *preview_content;
+ Evas_Object *live_preview_frame;
Evas_Object *indicator;
Evas_Object *badge;
Evas_Object *badge_text;
Evas_Object *tooltip_anchor;
Efreet_Desktop *app;
E_Client *client;
- Ecore_Animator *animation, *launch_animation;
+ Ecore_Animator *animation, *launch_animation, *indicator_animation;
Ecore_Job *hover_job;
Ecore_Timer *tooltip_timer;
double launch_pulse;
double start, scale, target;
- int units, slot;
+ int units, slot, indicator_slot;
int preview_frame_w, preview_frame_h;
- Eina_Rect preview_geometry;
+ Eina_Rect preview_geometry, indicator_geometry;
double position, cross_position;
Eina_Bool placed;
Eina_Bool preview_image;
@@ -309,6 +310,7 @@ tile_launch_animate(void *data, double position)
static void
tile_launch_pulse(Dock_Tile *tile)
{
+ if (!engage_config_dock_animations_get()) return;
if (tile->launch_animation) ecore_animator_del(tile->launch_animation);
tile->launch_pulse = 0.0;
tile->launch_animation = ecore_animator_timeline_add(0.28, tile_launch_animate, tile);
@@ -340,7 +342,14 @@ tile_hover(Dock_Tile *tile, double target)
if (tile->animation) ecore_animator_del(tile->animation);
tile->start = tile->scale;
tile->target = target;
- tile->animation = ecore_animator_timeline_add(0.16, tile_animate, tile);
+ tile->animation = NULL;
+ if (engage_config_dock_animations_get())
+ tile->animation = ecore_animator_timeline_add(0.16, tile_animate, tile);
+ if (!tile->animation)
+ {
+ tile->scale = target;
+ tile_scale(tile);
+ }
}
static void
@@ -386,6 +395,25 @@ tile_hover_schedule(void *data, Evas *evas EINA_UNUSED, Evas_Object *hit,
if (!tile->hover_job) tile->hover_job = ecore_job_add(tile_hover_update, hit);
}
+static void
+live_preview_frame_deleted(void *data, Evas *evas EINA_UNUSED,
+ Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
+{
+ Dock_Tile *tile = data;
+
+ tile->live_preview_frame = NULL;
+}
+
+static void
+live_preview_image_deleted(void *data, Evas *evas EINA_UNUSED,
+ Evas_Object *obj, void *event EINA_UNUSED)
+{
+ Dock_Tile *tile = data;
+
+ if (tile->preview_content == obj) tile->preview_content = NULL;
+ if (tile->visual == obj) tile->visual = NULL;
+}
+
static void
tile_free(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
void *event EINA_UNUSED)
@@ -400,6 +428,13 @@ tile_free(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
if (tile->tooltip_anchor) evas_object_del(tile->tooltip_anchor);
if (tile->preview_content) evas_object_del(tile->preview_content);
evas_object_del(tile->visual);
+ if (tile->live_preview_frame)
+ {
+ evas_object_event_callback_del_full(tile->live_preview_frame, EVAS_CALLBACK_DEL,
+ live_preview_frame_deleted, tile);
+ e_comp_object_iconic_preview_del(tile->live_preview_frame);
+ }
+ if (tile->indicator_animation) ecore_animator_del(tile->indicator_animation);
if (tile->indicator) evas_object_del(tile->indicator);
if (tile->badge) evas_object_del(tile->badge);
if (tile->badge_text) evas_object_del(tile->badge_text);
@@ -423,7 +458,8 @@ tile_position(Engage_Dock *dock, Dock_Tile *tile, double axis, double cross, Ein
double axis_delta;
double cross_delta;
- if (!tile->placed || !dock->motion || dock->resizing || follow)
+ if (!tile->placed || !dock->motion || dock->resizing || follow ||
+ !engage_config_dock_animations_get())
{
tile->placed = EINA_TRUE;
tile->position = axis;
@@ -483,20 +519,20 @@ dock_icon_gap(const Engage_Dock *dock)
return MAX(1, lround((dock->vertical ? 2 : 6) * e_scale));
}
-static int
-dock_indicator_thickness(int cross_space)
+static void
+indicator_geometry_apply(Dock_Tile *tile)
{
- return MIN(cross_space / 5, MAX(1, lround(4 * e_scale)));
+ Eina_Rect bounds = tile->indicator_geometry;
+ evas_object_move(tile->indicator, bounds.x, bounds.y);
+ evas_object_resize(tile->indicator, bounds.w, bounds.h);
}
static int
dock_icon_slot(const Engage_Dock *dock, int cross_space)
{
int inset = MAX(1, lround(2 * e_scale));
- int thickness = dock_indicator_thickness(cross_space);
- int indicator_space = thickness ? thickness + 1 : 0;
- return MAX(0, cross_space - 2 * inset - indicator_space) + dock_icon_gap(dock);
+ return MAX(0, cross_space - 2 * inset - lround(5 * e_scale)) + dock_icon_gap(dock);
}
static void
@@ -514,12 +550,13 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
Eina_Bool held;
int slots[SECTION_COUNT] = { 0 };
+ int indicator_slot = 0;
int x, y, w, h, total, offset, child;
int i, separator_start, length;
int start, end, span, hit_x, hit_y, position, visual_slot;
int axis, cross, tx, ty, tw, th, vx, vy, vw, vh;
int along_space, cross_space, along_gap;
- int thickness, indicator_gap, indicator_length, dx, dy;
+ int glow_size, glow_x, glow_y, glow_radius;
int frame_w, frame_h, iw, ih, visual_x, visual_y;
dock = data;
@@ -622,29 +659,8 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
along_space = dock->vertical ? th : tw;
cross_space = dock->vertical ? tw : th;
along_gap = dock_icon_gap(dock);
- thickness = dock_indicator_thickness(cross_space);
- indicator_gap = thickness ? thickness + 1 : 0;
- indicator_length = MIN(along_space, thickness * 3);
- dx = tx + (tw - indicator_length) / 2;
- dy = ty + (dock_at_start_edge(dock) ? MAX(0, th - thickness - 1) : 1);
vw = MAX(0, MIN(along_space - along_gap, dock_icon_slot(dock, cross_space) - along_gap));
vh = vw;
-
- if (dock->vertical)
- {
- dx = tx + (dock_at_start_edge(dock) ? MAX(0, tw - thickness - 1) : 1);
- dy = ty + (th - indicator_length) / 2;
- vx = dock_at_start_edge(dock) ? -indicator_gap / 2 : indicator_gap / 2;
- }
- else
- vy = dock_at_start_edge(dock) ? -indicator_gap / 2 : indicator_gap / 2;
-
- if (tile->indicator)
- {
- evas_object_move(tile->indicator, dx, dy);
- evas_object_resize(tile->indicator, dock->vertical ? thickness : indicator_length,
- dock->vertical ? indicator_length : thickness);
- }
}
if (tile->units == DIVIDER_UNITS)
@@ -661,7 +677,9 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
vw = MAX(0, tw * 9 / 10 - frame_w);
vh = MAX(0, th * 9 / 10 - frame_h);
image = tile->preview_content ? tile->preview_content : tile->visual;
- evas_object_image_size_get(image, &iw, &ih);
+ iw = ih = 0;
+ if (image && (tile->preview_content || !frame_w))
+ evas_object_image_size_get(image, &iw, &ih);
if (iw > 0 && ih > 0)
{
if ((int64_t)vw * ih > (int64_t)vh * iw)
@@ -688,6 +706,20 @@ dock_layout(Evas_Object *box, Evas_Object_Box_Data *layout, void *data)
}
visual_x = tx + (tw - vw) / 2 + vx;
visual_y = ty + (th - vh) / 2 + vy;
+ if (tile->indicator)
+ {
+ tile->indicator_slot = indicator_slot++;
+ glow_x = visual_x + vw / 2;
+ glow_y = visual_y + vh / 2;
+ glow_radius = MIN(MIN(glow_x - x, x + w - glow_x),
+ MIN(glow_y - y, y + h - glow_y));
+ glow_size = MIN(lround(vw * 1.32), MIN(tw, th) - 2);
+ glow_size = MAX(0, MIN(glow_size, 2 * glow_radius));
+ tile->indicator_geometry = EINA_RECT(glow_x - glow_size / 2,
+ glow_y - glow_size / 2,
+ glow_size, glow_size);
+ indicator_geometry_apply(tile);
+ }
if (tile->preview_image)
tile->preview_geometry = EINA_RECT(visual_x, visual_y, vw, vh);
else
@@ -779,7 +811,7 @@ tile_drag(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event)
dock->grab_offset = (dock->vertical ? dock->down_y - y : dock->down_x - x) -
tile->position;
evas_object_raise(tile->visual);
- if (tile->indicator) evas_object_raise(tile->indicator);
+ if (tile->indicator) evas_object_stack_below(tile->indicator, tile->visual);
if (tile->badge)
{
evas_object_raise(tile->badge);
@@ -1061,26 +1093,6 @@ theme_icon(Evas *evas, const char *name)
return icon;
}
-static void
-indicator_layer(Evas_Vg_Container *root, Eina_Bool vertical, int inset,
- int r, int g, int b, int alpha)
-{
- Evas_Vg_Shape *shape;
- int width;
- int height;
- double radius;
-
- shape = evas_vg_shape_add(root);
- if (!shape) return;
-
- width = (vertical ? 8 : 24) - 2 * inset;
- height = (vertical ? 24 : 8) - 2 * inset;
- radius = MIN(width, height) / 2.0;
- evas_vg_shape_append_rect(shape, inset, inset, width, height, radius, radius);
- evas_vg_node_color_set(shape, r * alpha / 255, g * alpha / 255,
- b * alpha / 255, alpha);
-}
-
static void
tile_badge_add(Dock_Tile *tile, Evas *evas, int count)
{
@@ -1115,8 +1127,31 @@ tile_badge_add(Dock_Tile *tile, Evas *evas, int count)
tile->badge_text = label;
}
+static Eina_Bool
+indicator_pulse(void *data)
+{
+ Dock_Tile *tile = data;
+ double phase, energy, brightness_curve;
+ int brightness;
+
+ if (!engage_config_dock_animations_get())
+ {
+ evas_object_color_set(tile->indicator, 255, 255, 255, 255);
+ tile->indicator_animation = NULL;
+ return ECORE_CALLBACK_CANCEL;
+ }
+
+ phase = fmod(ecore_loop_time_get() - tile->indicator_slot * 0.32, 2.8);
+ if (phase < 0.0) phase += 2.8;
+ energy = phase < 0.65 ? phase / 0.65 : (2.8 - phase) / 2.15;
+ brightness_curve = energy * energy * (3.0 - 2.0 * energy);
+ brightness = lround(255 * brightness_curve);
+ evas_object_color_set(tile->indicator, brightness, brightness, brightness, brightness);
+ return ECORE_CALLBACK_RENEW;
+}
+
static Evas_Object *
-running_indicator_add(Evas *evas, Eina_Bool vertical)
+running_indicator_add(Evas *evas)
{
int r;
int g;
@@ -1125,6 +1160,8 @@ running_indicator_add(Evas *evas, Eina_Bool vertical)
Evas_Object *theme;
Evas_Object *indicator;
Evas_Vg_Container *root;
+ Evas_Vg_Shape *shape;
+ Evas_Vg_Gradient_Radial *gradient;
theme = edje_object_add(evas);
if (!theme ||
@@ -1153,15 +1190,61 @@ running_indicator_add(Evas *evas, Eina_Bool vertical)
}
evas_object_vg_root_node_set(indicator, root);
- evas_object_vg_viewbox_set(indicator, EINA_RECT(0, 0, vertical ? 8 : 24,
- vertical ? 24 : 8));
+ shape = evas_vg_shape_add(root);
+ gradient = evas_vg_gradient_radial_add(root);
+ if (!shape || !gradient)
+ {
+ evas_object_del(indicator);
+ return NULL;
+ }
+
+ Evas_Vg_Gradient_Stop stops[] = {
+ { 0.00, (r + 3 * 255) / 4, (g + 3 * 255) / 4, (b + 3 * 255) / 4, a },
+ { 0.30, (r + 255) / 2, (g + 255) / 2, (b + 255) / 2, a * 9 / 10 },
+ { 0.52, (3 * r + 255) / 4, (3 * g + 255) / 4, (3 * b + 255) / 4, a * 7 / 10 },
+ { 0.68, r, g, b, a * 2 / 5 },
+ { 0.80, r, g, b, a / 5 },
+ { 0.91, r, g, b, a / 20 },
+ { 1.00, r, g, b, 0 }
+ };
+ evas_object_vg_viewbox_set(indicator, EINA_RECT(0, 0, 100, 100));
evas_object_vg_fill_mode_set(indicator, EVAS_OBJECT_VG_FILL_MODE_STRETCH);
- indicator_layer(root, vertical, 0, r, g, b, a / 4);
- indicator_layer(root, vertical, 1, r, g, b, a);
- indicator_layer(root, vertical, 2, 255, 255, 255, a / 4);
+ evas_vg_shape_append_rect(shape, 0, 0, 100, 100, 0, 0);
+ evas_vg_gradient_radial_center_set(gradient, 50, 50);
+ evas_vg_gradient_radial_focal_set(gradient, 50, 50);
+ evas_vg_gradient_radial_radius_set(gradient, 50);
+ evas_vg_gradient_stop_set(gradient, stops, EINA_C_ARRAY_LENGTH(stops));
+ evas_vg_shape_fill_set(shape, gradient);
return indicator;
}
+static Evas_Object *
+live_preview_add(Dock_Tile *tile, E_Client *client, Evas *evas)
+{
+ Evas_Object *frame = client->frame;
+ Evas_Object *image;
+
+ if (!frame || !client->pixmap || evas_object_evas_get(frame) != evas)
+ return NULL;
+
+ e_comp_object_iconic_preview_add(frame);
+ image = e_comp_object_util_mirror_add(frame);
+ if (!image ||
+ (!e_pixmap_is_x(client->pixmap) &&
+ !evas_object_image_native_surface_get(image) &&
+ !e_pixmap_image_exists(client->pixmap)))
+ {
+ if (image) evas_object_del(image);
+ e_comp_object_iconic_preview_del(frame);
+ return NULL;
+ }
+
+ tile->live_preview_frame = frame;
+ evas_object_event_callback_add(frame, EVAS_CALLBACK_DEL, live_preview_frame_deleted, tile);
+ evas_object_event_callback_add(image, EVAS_CALLBACK_DEL, live_preview_image_deleted, tile);
+ return image;
+}
+
static Evas_Object *
preview_visual_add(Dock_Tile *tile, E_Client *client, Evas *evas)
{
@@ -1174,7 +1257,8 @@ preview_visual_add(Dock_Tile *tile, E_Client *client, Evas *evas)
double scale;
const char *title;
- image = engage_window_preview_add(client, evas);
+ image = live_preview_add(tile, client, evas);
+ if (!image) image = engage_window_preview_add(client, evas);
if (!image) return NULL;
tile->preview_image = EINA_TRUE;
@@ -1332,7 +1416,7 @@ dock_add(Engage_Dock *dock, Efreet_Desktop *app, E_Client *client, Dock_Tile_Kin
else if (client)
{
e_object_ref(E_OBJECT(client));
- if (!temporary)
+ if (!temporary && engage_config_dock_previews_get())
{
tile->units = PREVIEW_UNITS;
tile->visual = preview_visual_add(tile, client, evas);
@@ -1356,12 +1440,15 @@ dock_add(Engage_Dock *dock, Efreet_Desktop *app, E_Client *client, Dock_Tile_Kin
evas_object_pass_events_set(tile->visual, EINA_TRUE);
if (temporary || (app && engage_launcher_has_window(app)))
{
- tile->indicator = running_indicator_add(evas, dock->vertical);
+ tile->indicator = running_indicator_add(evas);
if (tile->indicator)
{
evas_object_smart_member_add(tile->indicator, dock->box);
+ evas_object_stack_below(tile->indicator, tile->visual);
evas_object_pass_events_set(tile->indicator, EINA_TRUE);
evas_object_show(tile->indicator);
+ if (engage_config_dock_animations_get())
+ tile->indicator_animation = ecore_animator_add(indicator_pulse, tile);
}
}
int count = engage_badge_count(app);
@@ -1414,6 +1501,7 @@ dock_slide(void *data)
double step = (now - dock->slide_time) / 0.2;
dock->slide_time = now;
+ if (!engage_config_dock_animations_get()) step = 1.0;
if (dock->hide_target)
dock->hide_progress = MIN(1.0, dock->hide_progress + step);
else
@@ -1486,7 +1574,10 @@ dock_auto_hide_update(void *data)
if (!dock->slide && dock->hide_progress != (dock->hide_target ? 1.0 : 0.0))
{
dock->slide_time = now;
- dock->slide = ecore_animator_add(dock_slide, dock);
+ if (engage_config_dock_animations_get())
+ dock->slide = ecore_animator_add(dock_slide, dock);
+ else
+ dock_slide(dock);
}
return ECORE_CALLBACK_RENEW;
}
@@ -1717,6 +1808,7 @@ minimize_target(const Engage_Dock *dock, E_Client *client)
double scale;
int target_w;
int target_h;
+ int units = engage_config_dock_previews_get() ? PREVIEW_UNITS : ICON_UNITS;
bounds = dock->content_bounds;
width = bounds.w;
@@ -1735,9 +1827,9 @@ minimize_target(const Engage_Dock *dock, E_Client *client)
if (index < 0) index = count++;
axis = dock->vertical ? height : width;
- total = dock->preview_start_units + count * PREVIEW_UNITS;
- start = (int)((int64_t)axis * (dock->preview_start_units + index * PREVIEW_UNITS) / total);
- end = (int)((int64_t)axis * (dock->preview_start_units + (index + 1) * PREVIEW_UNITS) / total);
+ total = dock->preview_start_units + count * units;
+ start = (int)((int64_t)axis * (dock->preview_start_units + index * units) / total);
+ end = (int)((int64_t)axis * (dock->preview_start_units + (index + 1) * units) / total);
if (dock->vertical)
{
bounds.y += start;
@@ -1834,7 +1926,8 @@ dock_minimize(void *data, Evas_Object *frame, const char *signal)
target = minimize_target(dock, client);
if (!target.w || !target.h) return EINA_FALSE;
- engage_window_capture(client);
+ if (engage_config_dock_previews_get()) engage_window_capture(client);
+ if (!engage_config_dock_animations_get()) return EINA_FALSE;
if (!minimize_effect_stop(frame) ||
!e_comp_object_effect_set(frame, "iconify/ibox"))
return EINA_FALSE;
diff --git a/engage_settings.c b/engage_settings.c
index a6be54b..e636a1d 100644
--- a/engage_settings.c
+++ b/engage_settings.c
@@ -46,6 +46,20 @@ settings_auto_hide_changed(void *data EINA_UNUSED, Evas_Object *check,
engage_config_dock_auto_hide_set(elm_check_state_get(check));
}
+static void
+settings_animations_changed(void *data EINA_UNUSED, Evas_Object *check,
+ void *event EINA_UNUSED)
+{
+ engage_config_dock_animations_set(elm_check_state_get(check));
+}
+
+static void
+settings_previews_changed(void *data EINA_UNUSED, Evas_Object *check,
+ void *event EINA_UNUSED)
+{
+ engage_config_dock_previews_set(elm_check_state_get(check));
+}
+
static void
settings_location_add(Evas_Object *options)
{
@@ -141,7 +155,7 @@ engage_settings_open(void)
unsigned int i;
int margin;
- Evas_Object *options_frame, *options, *auto_hide, *selector, *slider, *close;
+ Evas_Object *options_frame, *options, *auto_hide, *animations, *previews, *selector, *slider, *close;
Eina_List *styles;
const char *style, *selected;
@@ -228,6 +242,24 @@ engage_settings_open(void)
elm_box_pack_end(options, auto_hide);
evas_object_show(auto_hide);
+ animations = elm_check_add(options);
+ elm_object_style_set(animations, "toggle");
+ elm_object_text_set(animations, "Dock animations");
+ elm_check_state_set(animations, engage_config_dock_animations_get());
+ evas_object_size_hint_align_set(animations, 0.0, 0.5);
+ evas_object_smart_callback_add(animations, "changed", settings_animations_changed, NULL);
+ elm_box_pack_end(options, animations);
+ evas_object_show(animations);
+
+ previews = elm_check_add(options);
+ elm_object_style_set(previews, "toggle");
+ elm_object_text_set(previews, "Live previews");
+ elm_check_state_set(previews, engage_config_dock_previews_get());
+ evas_object_size_hint_align_set(previews, 0.0, 0.5);
+ evas_object_smart_callback_add(previews, "changed", settings_previews_changed, NULL);
+ elm_box_pack_end(options, previews);
+ evas_object_show(previews);
+
selector = elm_hoversel_add(options);
elm_hoversel_hover_parent_set(selector, win);
selected = engage_config_dock_style_get();
@@ -265,7 +297,7 @@ engage_settings_open(void)
elm_box_pack_end(box, close);
evas_object_show(close);
- evas_object_resize(win, lround(380 * e_scale), lround(460 * e_scale));
+ evas_object_resize(win, lround(380 * e_scale), lround(520 * e_scale));
elm_win_center(win, EINA_TRUE, EINA_TRUE);
evas_object_show(win);
elm_object_focus_set(selector, EINA_TRUE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.