summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-17 20:56:03 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2022-01-17 20:56:03 +0000
commitf615a2120da7cc8078591ef6e4deed1288c3b29d (patch)
tree94b8b94e7844b5f096887bc660e02c93212291a1
parent6ad07d07c2713eda9e8919d89e3a25ef92157327 (diff)
downloadenlightenment-f615a2120da7cc8078591ef6e4deed1288c3b29d.tar.gz
theme - ibar/ibox label overlay - properly align with text min size
@fix
-rw-r--r--src/bin/system/e_system_backlight.c2
-rw-r--r--src/modules/ibar/e_mod_main.c16
2 files changed, 15 insertions, 3 deletions
diff --git a/src/bin/system/e_system_backlight.c b/src/bin/system/e_system_backlight.c
index 0d89a73f47..f4457b32b9 100644
--- a/src/bin/system/e_system_backlight.c
+++ b/src/bin/system/e_system_backlight.c
@@ -153,7 +153,7 @@ _cb_worker_message(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED, void *m
if (lig->max > 0)
{
- val = ((1000 * lig->val) + 500) / lig->max;
+ val = (1000 * lig->val) / lig->max;
if (val < 0) val = 0;
else if (val > 1000) val = 1000;
}
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 88d6dae246..2efde053d2 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1948,10 +1948,22 @@ _ibar_cb_icon_move(void *data, Evas *e, Evas_Object *obj, void *event_info EINA_
if (!zone)
zone = eina_list_data_get(e_comp->zones);
}
- if (chx - (len / 2) < zone->x)
+ if ((ic->ibar->inst->orient == E_GADCON_ORIENT_LEFT) ||
+ (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_LT) ||
+ (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_LB))
sig = "e,origin,left";
- else if ((chx + (len / 2) > cw) || ((chx + (len / 2) > zone->x + zone->w)))
+ else if ((ic->ibar->inst->orient == E_GADCON_ORIENT_RIGHT) ||
+ (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_RT) ||
+ (ic->ibar->inst->orient == E_GADCON_ORIENT_CORNER_RB))
sig = "e,origin,right";
+ else
+ {
+ if (chx - (len / 2) < zone->x)
+ sig = "e,origin,left";
+ else if ((chx + (len / 2) > cw) || ((chx + (len / 2) > zone->x + zone->w)))
+ sig = "e,origin,right";
+ }
+ printf("EMIT: %p %s\n", ic, sig);
_ibar_icon_signal_emit(ic, sig, "e");
}