#define STYLE_CHECK_ALARM_ON_OFF "alarm_on_off"
#define PART_NO_ALARM_TEXT "text.no_alarm"
-#define PART_AM_PM "text.am_pm"
#define PART_TIME "text.time"
#define PART_REPEAT "text.repeat"
#define PART_ON_OFF "swallow.on_off"
+#define SIGNAL_ALARM_ENABLE "state,alarm,enabled"
+#define SIGNAL_ALARM_DISABLE "state,alarm,disabled"
#endif /* WIDGET_LAYOUT_H */
#define TEXT_NO_ALARM_H 42
#define TEXT_NO_ALARM_T 16
-#define AM_PM_L 60
-#define AM_PM_T 96
-#define AM_PM_W 56
-#define AM_PM_H 52
-
-#define TIME_L 4
+#define TIME_L 62
#define TIME_T 59
-#define TIME_W 180
+#define TIME_W 244
#define TIME_H 95
-#define REPEAT_T 6
+#define REPEAT_T 8
#define REPEAT_L 90
#define REPEAT_W 180
#define REPEAT_H 41
name: "no_alarm_pressed_style";
base: "font=Tizen:style=Regular font_size=32 align=center color=#ffffff66 ellipsis=-1.0";
}
- style {
- name: "am_pm_style";
- base: "font=Tizen:style=Regular font_size=40 align=center color=#ffffff ellipsis=-1.0";
- }
- style {
- name: "am_pm_disabled_style";
- base: "font=Tizen:style=Regular font_size=40 align=center color=#ffffff4C ellipsis=-1.0";
- }
style {
name: "time_style";
base: "font=Tizen:style=Thin font_size=79 align=center color=#ffffff ellipsis=-1.0";
+ tag: "match" "+font_size=40 font=Tizen:style=Regular";
}
style {
name: "time_disabled_style";
base: "font=Tizen:style=Thin font_size=79 align=center color=#ffffff4C ellipsis=-1.0";
+ tag: "match" "+font_size=40 font=Tizen:style=Regular";
}
style {
name: "repeat_style";
}
style {
name: "repeat_disabled_style";
- base: "font=Tizen:style=Light font_size=28 align=center color=#9e9e9e ellipsis=-1.0";
- tag: "match" "+color=#4dcfff"; /* FIXME: add color */
+ base: "font=Tizen:style=Light font_size=28 align=center color=#6B6B6B ellipsis=-1.0";
+ tag: "match" "+color=#4dcfff66";
}
}
group { LAYOUT_ALARM;
parts {
- spacer { "spacer.am_pm.left_top"; scale;
- desc { "default";
- fixed: 1 1;
- min: AM_PM_L AM_PM_T;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- }
- }
- textblock { PART_AM_PM; scale;
- desc { "default";
- fixed: 1 1;
- min: AM_PM_W AM_PM_H;
- align: 0.0 0.0;
- rel1 { relative: 1.0 1.0; to: "spacer.am_pm.left_top"; }
- rel2 { relative: 1.0 1.0; to: "spacer.am_pm.left_top"; }
- text.style: "am_pm_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "am_pm_disabled_style";
- }
- }
spacer { "spacer.time.left_top"; scale;
desc { "default";
fixed: 1 1;
min: TIME_L TIME_T;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to_x: PART_AM_PM; }
- rel2 { relative: 1.0 0.0; to_x: PART_AM_PM; }
+ rel2.relative: 0.0 0.0;
}
}
textblock { PART_TIME; scale;
desc { "default";
fixed: 1 1;
min: REPEAT_L REPEAT_T;
- align: 0.0 0.0;
- rel1 { relative: 0.0 1.0; to_y: PART_AM_PM; }
- rel2 { relative: 0.0 1.0; to_y: PART_AM_PM; }
+ align: 0.0 1.0;
+ rel1 { relative: 0.0 1.0; to_y: PART_TIME; }
+ rel2 { relative: 0.0 1.0; to_y: PART_TIME; }
}
}
textblock { PART_REPEAT; scale;
fixed: 1 1;
min: REPEAT_W REPEAT_H;
align: 0.0 0.0;
- rel1 { relative: 1.0 1.0; to: "spacer.repeat.left_top"; }
- rel2 { relative: 1.0 1.0; to: "spacer.repeat.left_top"; }
+ rel1 { relative: 1.0 0.0; to: "spacer.repeat.left_top"; }
+ rel2 { relative: 1.0 0.0; to: "spacer.repeat.left_top"; }
text.style: "repeat_style";
}
desc { "disabled";
}
}
}
+ programs {
+ program {
+ signal: SIGNAL_ALARM_ENABLE;
+ source: "*";
+ action: STATE_SET "default";
+ target: PART_TIME;
+ target: PART_REPEAT;
+ }
+ program {
+ signal: SIGNAL_ALARM_DISABLE;
+ source: "*";
+ action: STATE_SET "disabled";
+ target: PART_TIME;
+ target: PART_REPEAT;
+ }
+ }
}
}