aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-04 10:11:33 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-04 10:11:33 +0200
commit5ad64d5de6a98859347c4053a63a41557a81b47d (patch)
treebf20460bad0ab5cf0e7372d940b36d43e586a082
parent955f6c78e2b8c1c90e1e4fac6f0d4ff0a6917830 (diff)
downloadsynthpod-5ad64d5de6a98859347c4053a63a41557a81b47d.tar.xz
prototype ui icon toggling in modlist item.
-rw-r--r--data/modlist.edc16
-rw-r--r--ui/synthpod_ui_mod.c4
-rw-r--r--ui/synthpod_ui_modlist.c7
3 files changed, 20 insertions, 7 deletions
diff --git a/data/modlist.edc b/data/modlist.edc
index f0861065..980af498 100644
--- a/data/modlist.edc
+++ b/data/modlist.edc
@@ -148,7 +148,7 @@ group {
description {
state: "default" 1.0;
inherit: "default" 0.0;
- color: 255 255 255 64;
+ color: 255 255 255 128;
}
}
part {
@@ -167,10 +167,15 @@ group {
color: 255 255 255 0;
}
description {
- state: "default" 1.0;
+ state: "default" 0.5;
inherit: "default" 0.0;
color: 255 255 255 64;
}
+ description {
+ state: "default" 1.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
}
}
@@ -246,11 +251,16 @@ group {
}
program {
- signal: "ui,show";
+ signal: "ui,on";
action: STATE_SET "default" 1.0;
target: "ui";
}
program {
+ signal: "ui,off";
+ action: STATE_SET "default" 0.5;
+ target: "ui";
+ }
+ program {
signal: "ui,hide";
action: STATE_SET "default" 0.0;
target: "ui";
diff --git a/ui/synthpod_ui_mod.c b/ui/synthpod_ui_mod.c
index e0aa2a00..0dccbb79 100644
--- a/ui/synthpod_ui_mod.c
+++ b/ui/synthpod_ui_mod.c
@@ -263,6 +263,10 @@ _mod_visible_set(mod_t *mod, int state, LV2_URID urid)
_sp_transmit_module_visible_fill(&ui->regs, &ui->forge, trans1, size, mod->uid, state, urid);
_sp_ui_to_app_advance(ui, size);
}
+
+ // refresh modlist item
+ if(mod->std.elmnt)
+ elm_genlist_item_update(mod->std.elmnt);
}
static inline void
diff --git a/ui/synthpod_ui_modlist.c b/ui/synthpod_ui_modlist.c
index 95c855ec..7492c759 100644
--- a/ui/synthpod_ui_modlist.c
+++ b/ui/synthpod_ui_modlist.c
@@ -325,8 +325,8 @@ _modlist_content_get(void *data, Evas_Object *obj, const char *part)
elm_layout_signal_callback_add(lay, "link,toggle", "", _mod_link_toggle, mod);
elm_layout_signal_emit(lay, mod->selected ? "link,on" : "link,off", "");
- // enable
- //FIXME elm_layout_signal_callback_add(lay, "enable,toggle", "", _mod_enable_toggle, mod);
+ // enable
+ //elm_layout_signal_callback_add(lay, "enable,toggle", "", _mod_enable_toggle, mod); //FIXME
elm_layout_signal_emit(lay, "enable,show", ""); //FIXME
// auto
@@ -346,11 +346,10 @@ _modlist_content_get(void *data, Evas_Object *obj, const char *part)
}
// window
- //if(mod->show.ui || mod->kx.ui || mod->eo.ui || mod->x11.ui) //TODO also check for descriptor
if(eina_list_count(mod->mod_uis) > 0)
{
elm_layout_signal_callback_add(lay, "ui,toggle", "", _mod_ui_toggle, mod);
- elm_layout_signal_emit(lay, "ui,show", "");
+ elm_layout_signal_emit(lay, mod->mod_ui ? "ui,on" : "ui,off", "");
}
else
{