--- /dev/null
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define CU_BTN_PADDING_LR 13
+#define CU_BTN_WH 54
+#define CU_BTN_FULL_WH 480
+
+#define CU_BTN_HIDE_ANIM_TIME 0.2
+
+group { "elm/layout/callui/accept_reject";
+ parts {
+ spacer { "spacer.left";
+ scale;
+ desc { "default";
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel2.relative: 0.0 1.0;
+ }
+ desc { "hidden";
+ inherit: "default";
+ min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
+ }
+ }
+ spacer { "spacer.right";
+ scale;
+ desc { "default";
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1.relative: 1.0 0.0;
+ }
+ desc { "hidden";
+ inherit: "default";
+ min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
+ }
+ }
+ spacer { "spacer.reject.left";
+ scale;
+ desc { "default";
+ fixed: 1 0;
+ min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to_x: "spacer.left"; }
+ rel2 { relative: 0.0 1.0; to_x: "spacer.left"; }
+ }
+ }
+ swallow { "swl.button_accept";
+ scale;
+ desc { "default";
+ fixed: 1 1;
+ min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
+ rel1 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
+ rel2 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
+ }
+ }
+ spacer { "spacer.accept.right";
+ scale;
+ desc { "default";
+ fixed: 1 0;
+ min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
+ align: 1.0 0.5;
+ rel1 { relative: 1.0 0.0; to_x: "spacer.right"; }
+ rel2 { relative: 1.0 1.0; to_x: "spacer.right"; }
+ }
+ }
+ swallow { "swl.button_reject";
+ scale;
+ desc { "default";
+ fixed: 1 1;
+ min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
+ rel1 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
+ rel2 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
+ }
+ }
+ }
+ programs {
+ program {
+ signal: "accept,show";
+ source: "*";
+ action: STATE_SET "default";
+ target: "spacer.left";
+ transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+ }
+ program {
+ signal: "accept,hide";
+ source: "*";
+ action: STATE_SET "hidden";
+ target: "spacer.left";
+ transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+ }
+ program {
+ signal: "reject,show";
+ source: "*";
+ action: STATE_SET "default";
+ target: "spacer.right";
+ transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+ }
+ program {
+ signal: "reject,hide";
+ source: "*";
+ action: STATE_SET "hidden";
+ target: "spacer.right";
+ transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
+ }
+ program {
+ signal: "reset";
+ source: "*";
+ action: STATE_SET "default";
+ targets: "spacer.right" "spacer.left";
+ }
+ }
+}
\ No newline at end of file
#define CU_RSSI_IMAGE_DIR CU_INDI_ICONS_DIR"/4level"
#define CU_BATT_IMAGE_DIR CU_INDI_ICONS_DIR"/Battery"
+#define CU_BATT_ICON_H 32
+#define CU_BATT_ICON_W 22
+
+#define CU_INDI_ICON_H 26
+#define CU_INDI_ICON_W 24
+
+#define CU_SWL_CONN_COORD_X 104
+#define CU_SWL_CONN_COORD_Y 31
+
+#define CU_SWL_RSSI_COORD_X 135
+#define CU_SWL_RSSI_COORD_Y 20
+
+#define CU_SWL_BATT_COORD_X 169
+#define CU_SWL_BATT_COORD_Y 14
+
+#define CU_SWL_SIM_COORD_X 201
+#define CU_SWL_SIM_COORD_Y 20
+
+#define CU_SWL_HD_CALL_COORD_X 232
+#define CU_SWL_HD_CALL_COORD_Y 31
+
+#define CU_SWL_CONN_REL1 CU_REL_W(CU_SWL_CONN_COORD_X) CU_REL_H(CU_SWL_CONN_COORD_Y)
+#define CU_SWL_CONN_REL2 CU_REL_W((CU_SWL_CONN_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_CONN_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_RSSI_REL1 CU_REL_W(CU_SWL_RSSI_COORD_X) CU_REL_H(CU_SWL_RSSI_COORD_Y)
+#define CU_SWL_RSSI_REL2 CU_REL_W((CU_SWL_RSSI_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_RSSI_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_BATTERY_REL1 CU_REL_W(CU_SWL_BATT_COORD_X) CU_REL_H(CU_SWL_BATT_COORD_Y)
+#define CU_SWL_BATTERY_REL2 CU_REL_W((CU_SWL_BATT_COORD_X+CU_BATT_ICON_W)) CU_REL_H((CU_SWL_BATT_COORD_Y+CU_BATT_ICON_H))
+
+#define CU_SWL_SIM_REL1 CU_REL_W(CU_SWL_SIM_COORD_X) CU_REL_H(CU_SWL_SIM_COORD_Y)
+#define CU_SWL_SIM_REL2 CU_REL_W((CU_SWL_SIM_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_SIM_COORD_Y+CU_INDI_ICON_H))
+
+#define CU_SWL_HD_CALL_REL1 CU_REL_W(CU_SWL_HD_CALL_COORD_X) CU_REL_H(CU_SWL_HD_CALL_COORD_Y)
+#define CU_SWL_HD_CALL_REL2 CU_REL_W((CU_SWL_HD_CALL_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_HD_CALL_COORD_Y+CU_INDI_ICON_H))
+
+// Indicator main layout
+
+group { "elm/layout/callui/indicator";
+ parts {
+ spacer { "bg";
+ scale;
+ desc { "default";
+ }
+ }
+ swallow { "swl.connection";
+ scale;
+ desc { "default";
+ rel1 { relative: CU_SWL_CONN_REL1; to: "bg"; }
+ rel2 { relative: CU_SWL_CONN_REL2; to: "bg"; }
+ }
+ }
+ swallow { "swl.rssi";
+ scale;
+ desc { "default";
+ rel1 { relative: CU_SWL_RSSI_REL1; to: "bg"; }
+ rel2 { relative: CU_SWL_RSSI_REL2; to: "bg"; }
+ }
+ }
+ swallow { "swl.battery";
+ scale;
+ desc { "default";
+ rel1 { relative: CU_SWL_BATTERY_REL1; to: "bg"; }
+ rel2 { relative: CU_SWL_BATTERY_REL2; to: "bg"; }
+ }
+ }
+ swallow { "swl.sim";
+ scale;
+ desc { "default";
+ rel1 { relative: CU_SWL_SIM_REL1; to: "bg"; }
+ rel2 { relative: CU_SWL_SIM_REL2; to: "bg"; }
+ }
+ }
+ swallow { "swl.hd_voice";
+ scale;
+ desc { "default";
+ rel1 { relative: CU_SWL_HD_CALL_REL1; to: "bg"; }
+ rel2 { relative: CU_SWL_HD_CALL_REL2; to: "bg"; }
+ }
+ }
+ }
+}
+
// Connection
#define CU_DESC_CONN_IMAGE(_value) \
+++ /dev/null
-/*
- * Copyright 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define CU_BTN_PADDING_LR 13
-#define CU_BTN_WH 54
-#define CU_BTN_FULL_WH 480
-
-#define CU_BTN_HIDE_ANIM_TIME 0.2
-
-#define CU_SWL_CONN_COORD_X 104
-#define CU_SWL_CONN_COORD_Y 31
-
-#define CU_SWL_RSSI_COORD_X 135
-#define CU_SWL_RSSI_COORD_Y 20
-
-#define CU_SWL_BATT_COORD_X 169
-#define CU_SWL_BATT_COORD_Y 14
-
-#define CU_SWL_SIM_COORD_X 201
-#define CU_SWL_SIM_COORD_Y 20
-
-#define CU_SWL_HD_CALL_COORD_X 232
-#define CU_SWL_HD_CALL_COORD_Y 31
-
-#define CU_SWL_CONN_REL1 CU_REL_W(CU_SWL_CONN_COORD_X) CU_REL_H(CU_SWL_CONN_COORD_Y)
-#define CU_SWL_CONN_REL2 CU_REL_W((CU_SWL_CONN_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_CONN_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_RSSI_REL1 CU_REL_W(CU_SWL_RSSI_COORD_X) CU_REL_H(CU_SWL_RSSI_COORD_Y)
-#define CU_SWL_RSSI_REL2 CU_REL_W((CU_SWL_RSSI_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_RSSI_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_BATTERY_REL1 CU_REL_W(CU_SWL_BATT_COORD_X) CU_REL_H(CU_SWL_BATT_COORD_Y)
-#define CU_SWL_BATTERY_REL2 CU_REL_W((CU_SWL_BATT_COORD_X+CU_BATT_ICON_W)) CU_REL_H((CU_SWL_BATT_COORD_Y+CU_BATT_ICON_H))
-
-#define CU_SWL_SIM_REL1 CU_REL_W(CU_SWL_SIM_COORD_X) CU_REL_H(CU_SWL_SIM_COORD_Y)
-#define CU_SWL_SIM_REL2 CU_REL_W((CU_SWL_SIM_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_SIM_COORD_Y+CU_INDI_ICON_H))
-
-#define CU_SWL_HD_CALL_REL1 CU_REL_W(CU_SWL_HD_CALL_COORD_X) CU_REL_H(CU_SWL_HD_CALL_COORD_Y)
-#define CU_SWL_HD_CALL_REL2 CU_REL_W((CU_SWL_HD_CALL_COORD_X+CU_INDI_ICON_W)) CU_REL_H((CU_SWL_HD_CALL_COORD_Y+CU_INDI_ICON_H))
-
-
-group { "elm/layout/callui/main";
- parts {
- swallow { "swl.call_info";
- scale;
- desc { "default";
- }
- }
- swallow { "swl.indicator";
- scale;
- desc { "default";
- }
- }
- swallow { "swl.rm"
- scale;
- desc { "default";
- }
- }
- swallow { "swl.accept_reject";
- scale;
- desc { "default";
- }
- }
- swallow { "swl.overlay";
- scale;
- desc { "default";
- }
- }
- }
-}
-
-group { "elm/layout/callui/accept_reject";
- parts {
- spacer { "spacer.left";
- scale;
- desc { "default";
- fixed: 1 0;
- align: 1.0 0.5;
- rel2.relative: 0.0 1.0;
- }
- desc { "hidden";
- inherit: "default";
- min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
- }
- }
- spacer { "spacer.right";
- scale;
- desc { "default";
- fixed: 1 0;
- align: 0.0 0.5;
- rel1.relative: 1.0 0.0;
- }
- desc { "hidden";
- inherit: "default";
- min: (CU_BTN_PADDING_LR+CU_BTN_WH) 0;
- }
- }
- spacer { "spacer.reject.left";
- scale;
- desc { "default";
- fixed: 1 0;
- min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
- align: 0.0 0.5;
- rel1 { relative: 0.0 0.0; to_x: "spacer.left"; }
- rel2 { relative: 0.0 1.0; to_x: "spacer.left"; }
- }
- }
- swallow { "swl.button_accept";
- scale;
- desc { "default";
- fixed: 1 1;
- min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
- rel1 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
- rel2 { relative: 1.0 0.5; to_x: "spacer.reject.left"; }
- }
- }
- spacer { "spacer.accept.right";
- scale;
- desc { "default";
- fixed: 1 0;
- min: (CU_BTN_PADDING_LR+CU_BTN_WH/2) 0;
- align: 1.0 0.5;
- rel1 { relative: 1.0 0.0; to_x: "spacer.right"; }
- rel2 { relative: 1.0 1.0; to_x: "spacer.right"; }
- }
- }
- swallow { "swl.button_reject";
- scale;
- desc { "default";
- fixed: 1 1;
- min: CU_BTN_FULL_WH CU_BTN_FULL_WH;
- rel1 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
- rel2 { relative: 0.0 0.5; to_x: "spacer.accept.right"; }
- }
- }
- }
- programs {
- program {
- signal: "accept,show";
- source: "*";
- action: STATE_SET "default";
- target: "spacer.left";
- transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
- }
- program {
- signal: "accept,hide";
- source: "*";
- action: STATE_SET "hidden";
- target: "spacer.left";
- transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
- }
- program {
- signal: "reject,show";
- source: "*";
- action: STATE_SET "default";
- target: "spacer.right";
- transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
- }
- program {
- signal: "reject,hide";
- source: "*";
- action: STATE_SET "hidden";
- target: "spacer.right";
- transition: TRANSITION_GLIDE(CU_BTN_HIDE_ANIM_TIME);
- }
- program {
- signal: "reset";
- source: "*";
- action: STATE_SET "default";
- targets: "spacer.right" "spacer.left";
- }
- }
-}
-
-group { "elm/layout/callui/indicator";
- parts {
- spacer { "bg";
- scale;
- desc { "default";
- }
- }
- swallow { "swl.connection";
- scale;
- desc { "default";
- rel1 { relative: CU_SWL_CONN_REL1; to: "bg"; }
- rel2 { relative: CU_SWL_CONN_REL2; to: "bg"; }
- }
- }
- swallow { "swl.rssi";
- scale;
- desc { "default";
- rel1 { relative: CU_SWL_RSSI_REL1; to: "bg"; }
- rel2 { relative: CU_SWL_RSSI_REL2; to: "bg"; }
- }
- }
- swallow { "swl.battery";
- scale;
- desc { "default";
- rel1 { relative: CU_SWL_BATTERY_REL1; to: "bg"; }
- rel2 { relative: CU_SWL_BATTERY_REL2; to: "bg"; }
- }
- }
- swallow { "swl.sim";
- scale;
- desc { "default";
- rel1 { relative: CU_SWL_SIM_REL1; to: "bg"; }
- rel2 { relative: CU_SWL_SIM_REL2; to: "bg"; }
- }
- }
- swallow { "swl.hd_voice";
- scale;
- desc { "default";
- rel1 { relative: CU_SWL_HD_CALL_REL1; to: "bg"; }
- rel2 { relative: CU_SWL_HD_CALL_REL2; to: "bg"; }
- }
- }
- }
-}
--- /dev/null
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+group { "elm/layout/callui/main";
+ parts {
+ swallow { "swl.call_info";
+ scale;
+ desc { "default";
+ }
+ }
+ swallow { "swl.indicator";
+ scale;
+ desc { "default";
+ }
+ }
+ swallow { "swl.rm"
+ scale;
+ desc { "default";
+ }
+ }
+ swallow { "swl.accept_reject";
+ scale;
+ desc { "default";
+ }
+ }
+ swallow { "swl.overlay";
+ scale;
+ desc { "default";
+ }
+ }
+ }
+}
+
#define CU_REL_W(val) (val/CU_WIN_W)
#define CU_REL_H(val) (val/CU_WIN_H)
-#define CU_BATT_ICON_H 32
-#define CU_BATT_ICON_W 22
-
-#define CU_INDI_ICON_H 26
-#define CU_INDI_ICON_W 24
-
collections {
base_scale: 1.3;
}
#include "../../edc/color_classes.edc"
- #include "../../edc/layouts.edc"
#include "../../edc/buttons.edc"
+ #include "../../edc/main_ly.edc"
+ #include "../../edc/accept_reject.edc"
#include "../../edc/indicator.edc"
#include "../../edc/call_info.edc"
#include "../../edc/reject_msg.edc"