summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alarm-app/res/alert/edje/alert-layout.edc64
1 files changed, 44 insertions, 20 deletions
diff --git a/alarm-app/res/alert/edje/alert-layout.edc b/alarm-app/res/alert/edje/alert-layout.edc
index 31aa751..a1a33ed 100644
--- a/alarm-app/res/alert/edje/alert-layout.edc
+++ b/alarm-app/res/alert/edje/alert-layout.edc
@@ -52,7 +52,7 @@
#define ORIG_TIME_T 4
#define ORIG_TIME_H 37
-#define ARROW_PART(NAME, SIDE, ICON_PATH, POS_X, POS_Y, ALIGN_X) \
+#define ARROW_PART(NAME, SIDE, ICON_PATH, MIRRORED_ICON_PATH, POS_X, POS_Y, ALIGN_X) \
spacer { "spacer."NAME"."SIDE"_top"; scale; \
desc { "default"; \
fixed: 1 1; \
@@ -63,8 +63,11 @@
} \
} \
image { "image."NAME"_"SIDE; scale; \
- images.image: ICON_PATH COMP; \
- clip: "rect.arrows_"SIDE".clipper"; \
+ images { \
+ image: ICON_PATH COMP; \
+ image: MIRRORED_ICON_PATH COMP; \
+ } \
+ clip: "clipper."NAME"_"SIDE; \
desc { "default"; \
fixed: 1 1; \
min: ARROW_WH ARROW_WH; \
@@ -72,10 +75,19 @@
rel1 { relative: (1.0-ALIGN_X) 1.0; to: "spacer."NAME"."SIDE"_top"; } \
rel2 { relative: (1.0-ALIGN_X) 1.0; to: "spacer."NAME"."SIDE"_top"; } \
image.normal: ICON_PATH; \
+ } \
+ desc { "mirrored"; inherit; \
+ image.normal: MIRRORED_ICON_PATH; \
+ } \
+ } \
+ rect { "clipper."NAME"_"SIDE; \
+ clip: "clipper.arrows_"SIDE; \
+ desc { "default"; \
+ rel.to: "image."NAME"_"SIDE; \
color: 255 255 255 64; \
} \
desc { "active"; \
- inherit: "default"; \
+ rel.to: "image."NAME"_"SIDE; \
color: 255 255 255 255; \
} \
}
@@ -84,7 +96,7 @@
program { \
name: "activate_"ARROW_NAME; \
action: STATE_SET "active"; \
- targets: "image."ARROW_NAME"_left" "image."ARROW_NAME"_right"; \
+ targets: "clipper."ARROW_NAME"_left" "clipper."ARROW_NAME"_right"; \
transition: LINEAR DURATION_IN; \
after: "deactivate_"ARROW_NAME; \
after: "activate_"NEXT_ARROW_NAME; \
@@ -92,8 +104,20 @@
program { \
name: "deactivate_"ARROW_NAME; \
action: STATE_SET "default"; \
- targets: "image."ARROW_NAME"_left" "image."ARROW_NAME"_right"; \
+ targets: "clipper."ARROW_NAME"_left" "clipper."ARROW_NAME"_right"; \
transition: LINEAR DURATION_OUT; \
+ } \
+ program { \
+ signal: "edje,state,rtl"; \
+ source: "edje"; \
+ action: STATE_SET "mirrored"; \
+ targets: "image."ARROW_NAME"_left" "image."ARROW_NAME"_right"; \
+ } \
+ program { \
+ signal: "edje,state,ltr"; \
+ source: "edje"; \
+ action: STATE_SET "default"; \
+ targets: "image."ARROW_NAME"_left" "image."ARROW_NAME"_right"; \
}
styles {
@@ -112,17 +136,17 @@ collections {
group { LAYOUT_ALERT;
parts {
- ARROW_PART("arrow1", "left", PATH_ICON_ARROW1_L, ARROW1_LR, ARROW1_T, 0.0)
- ARROW_PART("arrow2", "left", PATH_ICON_ARROW2_L, ARROW2_LR, ARROW2_T, 0.0)
- ARROW_PART("arrow3", "left", PATH_ICON_ARROW3_L, ARROW3_LR, ARROW3_T, 0.0)
- ARROW_PART("arrow4", "left", PATH_ICON_ARROW4_L, ARROW4_LR, ARROW4_T, 0.0)
+ ARROW_PART("arrow1", "left", PATH_ICON_ARROW1_L, PATH_ICON_ARROW1_R, ARROW1_LR, ARROW1_T, 0.0)
+ ARROW_PART("arrow2", "left", PATH_ICON_ARROW2_L, PATH_ICON_ARROW2_R, ARROW2_LR, ARROW2_T, 0.0)
+ ARROW_PART("arrow3", "left", PATH_ICON_ARROW3_L, PATH_ICON_ARROW3_R, ARROW3_LR, ARROW3_T, 0.0)
+ ARROW_PART("arrow4", "left", PATH_ICON_ARROW4_L, PATH_ICON_ARROW4_R, ARROW4_LR, ARROW4_T, 0.0)
- ARROW_PART("arrow1", "right", PATH_ICON_ARROW1_R, ARROW1_LR, ARROW1_T, 1.0)
- ARROW_PART("arrow2", "right", PATH_ICON_ARROW2_R, ARROW2_LR, ARROW2_T, 1.0)
- ARROW_PART("arrow3", "right", PATH_ICON_ARROW3_R, ARROW3_LR, ARROW3_T, 1.0)
- ARROW_PART("arrow4", "right", PATH_ICON_ARROW4_R, ARROW4_LR, ARROW4_T, 1.0)
+ ARROW_PART("arrow1", "right", PATH_ICON_ARROW1_R, PATH_ICON_ARROW1_L, ARROW1_LR, ARROW1_T, 1.0)
+ ARROW_PART("arrow2", "right", PATH_ICON_ARROW2_R, PATH_ICON_ARROW2_L, ARROW2_LR, ARROW2_T, 1.0)
+ ARROW_PART("arrow3", "right", PATH_ICON_ARROW3_R, PATH_ICON_ARROW3_L, ARROW3_LR, ARROW3_T, 1.0)
+ ARROW_PART("arrow4", "right", PATH_ICON_ARROW4_R, PATH_ICON_ARROW4_L, ARROW4_LR, ARROW4_T, 1.0)
- rect { "rect.arrows_left.clipper";
+ rect { "clipper.arrows_left";
desc { "default";
rel1 { to_x: "image.arrow4_left"; to_y: "image.arrow1_left"; }
rel2 { to_x: "image.arrow1_left"; to_y: "image.arrow4_left"; }
@@ -133,7 +157,7 @@ collections {
color_class: "layout/"LAYOUT_ALERT"/"COLOR_CLASS_DISMISS_HIDDEN;
}
}
- rect { "rect.arrows_right.clipper";
+ rect { "clipper.arrows_right";
desc { "default";
rel1.to: "image.arrow1_right";
rel2.to: "image.arrow4_right";
@@ -288,28 +312,28 @@ collections {
signal: SIGNAL_DISMISS_SHOW;
source: "*";
action: STATE_SET "default";
- targets: "rect.arrows_left.clipper" "rect.arrows_right.clipper" "spacer.left";
+ targets: "clipper.arrows_left" "clipper.arrows_right" "spacer.left";
transition: TRANSITION_GLIDE(BTN_TIME);
}
program {
signal: SIGNAL_DISMISS_HIDE;
source: "*";
action: STATE_SET "hidden";
- targets: "rect.arrows_left.clipper" "rect.arrows_right.clipper" "spacer.left";
+ targets: "clipper.arrows_left" "clipper.arrows_right" "spacer.left";
transition: TRANSITION_GLIDE(BTN_TIME);
}
program {
signal: SIGNAL_SNOOZE_SHOW;
source: "*";
action: STATE_SET "default";
- targets: "rect.arrows_left.clipper" "rect.arrows_right.clipper" "spacer.right";
+ targets: "clipper.arrows_left" "clipper.arrows_right" "spacer.right";
transition: TRANSITION_GLIDE(BTN_TIME);
}
program {
signal: SIGNAL_SNOOZE_HIDE;
source: "*";
action: STATE_SET "hidden";
- targets: "rect.arrows_left.clipper" "rect.arrows_right.clipper" "spacer.right";
+ targets: "clipper.arrows_left" "clipper.arrows_right" "spacer.right";
transition: TRANSITION_GLIDE(BTN_TIME);
}
}