e-modules/engage: cleanup

SVN revision: 62450
This commit is contained in:
Hannes Janetzek 2011-08-14 17:27:28 +00:00
parent bed43ebf1a
commit 5a45bf607e
2 changed files with 23 additions and 48 deletions

View File

@ -28,7 +28,7 @@ collections{
item: "icon_spacing" "3"; item: "icon_spacing" "3";
/* space between boxes */ /* space between boxes */
item: "separator_width" "12"; item: "separator_width" "24";
/* space between screen edge and icons */ /* space between screen edge and icons */
item: "edge_offset" "5"; item: "edge_offset" "5";
@ -84,52 +84,30 @@ collections{
/* the vertical and horizontal separator image. it can be a rectangle /* the vertical and horizontal separator image. it can be a rectangle
* as it is in this example. * as it is in this example.
*/ */
#define SEPARATOR(NAME, MAX, ALIGN, OFF1, OFF2) \
group { group { \
name: "e/modules/engage/separator_bottom"; name: NAME; \
alias: "e/modules/engage/separator_top"; parts { \
part { \
parts { name: "separator"; \
part { type: RECT; \
name: "separator"; mouse_events: 0; \
type: RECT; description { \
mouse_events: 0; state: "default" 0.0; \
color: 255 255 255 200; \
description { max: MAX; \
state: "default" 0.0; align: ALIGN; \
color: 182 182 182 200; rel1.offset: OFF1; \
max: 2 999; rel2.offset: OFF2; \
align: 0.5 0.0; } \
} \
rel1.offset: 0 -8; } \
rel2.offset: 0 7;
}
}
}
} }
group { SEPARATOR("e/modules/engage/separator_bottom", 2 999, 0.5 0.0, 0 -8, -1 -1);
name: "e/modules/engage/separator_left"; SEPARATOR("e/modules/engage/separator_top", 2 999, 0.5 0.0, 0 0, -1 7);
alias: "e/modules/engage/separator_right"; SEPARATOR("e/modules/engage/separator_left", 999 2, 0.0 0.5, 0 0, 7 -1);
SEPARATOR("e/modules/engage/separator_right", 999 2, 0.0 0.5, -8 0, -1 -1);
parts {
part {
name: "separator";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
color: 182 182 182 255;
max: 999 2;
align: 0.0 0.5;
rel1.offset: -8 0;
rel2.offset: 7 0;
}
}
}
}
group { group {
name: "e/modules/engage/label_bottom"; name: "e/modules/engage/label_bottom";

View File

@ -124,9 +124,6 @@ ngi_new(Config_Item *cfg)
data = edje_object_data_get(ng->o_frame, "bg_offset"); data = edje_object_data_get(ng->o_frame, "bg_offset");
if (data) ng->opt.bg_offset = atoi(data); if (data) ng->opt.bg_offset = atoi(data);
data = edje_object_data_get(ng->o_frame, "reflection_offset");
if (data) ng->opt.reflection_offset = atoi(data);
data = edje_object_data_get(ng->o_frame, "keep_overlay_pos"); data = edje_object_data_get(ng->o_frame, "keep_overlay_pos");
if (data) ng->opt.keep_overlay_pos = atof(data); if (data) ng->opt.keep_overlay_pos = atof(data);