#define ACTION_FAV_FOC_PNG "btn_menu_favorite_foc.png"
#define ACTION_FAV_SEL_PNG "btn_menu_favorite_sel.png"
#define ACTION_FAV_DIS_PNG "btn_menu_favorite_dis.png"
+#define ACTION_UNFAV_NOR_PNG "btn_menu_remote_favorite_nor.png"
+#define ACTION_UNFAV_FOC_PNG "btn_menu_remote_favorite_foc.png"
#define ACTION_UNINSTALL_NOR_PNG "btn_menu_del_nor.png"
#define ACTION_UNINSTALL_FOC_PNG "btn_menu_del_foc.png"
#define ACTION_UNINSTALL_SEL_PNG "btn_menu_del_sel.png"
}
images {
+ image, ACTION_UNFAV_NOR_PNG COMP;
+ image, ACTION_UNFAV_FOC_PNG COMP;
image, ACTION_FAV_NOR_PNG COMP;
image, ACTION_FAV_FOC_PNG COMP;
image, ACTION_FAV_SEL_PNG COMP;
scale, 1;
description {
state, "default" 0.0;
- image.normal, ACTION_FAV_NOR_PNG;
+ image.normal, ACTION_UNFAV_NOR_PNG;
rel1 {
to, "part.icon.bg";
relative, 0.5 0.5;
description {
state, "default.toggle" 0.0;
inherit, "default" 0.0;
- /* It will be fixed to another image later */
image.normal, ACTION_FAV_NOR_PNG;
}
description {
state, "focused" 0.0;
inherit, "default" 0.0;
- image.normal, ACTION_FAV_FOC_PNG;
+ image.normal, ACTION_UNFAV_FOC_PNG;
}
description {
state, "focused.toggle" 0.0;
inherit, "default" 0.0;
- /* It will be fixed to another image later */
image.normal, ACTION_FAV_FOC_PNG;
}
description {
}
program {
+ name, SIG_SELECTED;
+ signal, SIG_SELECTED;
+ source, SRC_ACTION_BTN;
+ script {
+ new state;
+ state = get_int(cur_state);
+ if (state == STATE_NORMAL) {
+ set_int(cur_state, STATE_TOGGLE);
+ set_state(PART:"part.icon", "focused.toggle", 0.0);
+ } else if (state == STATE_TOGGLE) {
+ set_int(cur_state, STATE_NORMAL);
+ set_state(PART:"part.icon", "focused", 0.0);
+ }
+ }
+ }
+
+ program {
name, SIG_DISABLE;
signal, SIG_DISABLE;
source, "elm";