d51118cb7c7d1b2991ce58fe010cfdc83ae01660
[apps/home/call.git] / ui / call_edc / vcui-view-caller-info.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.tizenopensource.org/license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 group{
18         name: "caller-info";
19         parts{
20                 part { name: "background";
21                         type: RECT;
22                         description {
23                                 state: "default" 0.0;
24                                 color: 0 0 0 150;
25                         }
26                         description {
27                                 state: "hide" 0.0;
28                                 color: 0 0 0 0;
29                         }
30                 }
31
32                 /*TOP PADDING*/
33                 part { name: "top_area";
34                         type: RECT;
35                         scale: 1;
36                         description {
37                                 state: "default" 0.0;
38                                 visible: 1;
39                                 rel1 { relative: CALLER_INFO_TOP_L CALLER_INFO_TOP_T; to: "background";}
40                                 rel2 { relative: CALLER_INFO_TOP_R CALLER_INFO_TOP_B; to: "background";}
41                                 state: "default" 0.0;
42                                 color: 171 240 5 255;
43                         }
44                         description {
45                                 state: "hide" 0.0;
46                                 inherit: "default" 0.0;
47                                 visible: 0;
48                                 fixed: 1 1;
49                         }
50                         description {
51                                 state: "end_color" 0.0;
52                                 inherit: "default" 0.0;
53                                 visible: 1;
54                                 fixed: 1 1;
55                                 color: 190 47 48 255;
56                         }
57                 }
58
59                 /*CALLER NAME*/
60                 part { name: "txt_call_name"; /* call name or number */
61                         type: TEXT;
62                         effect: SHADOW;
63                         scale: 1;
64                         description {
65                                 state: "default" 0.0;
66                                 rel1 { relative: CALLER_INFO_NAME_L CALLER_INFO_NAME_T; to: "background";}
67                                 rel2 { relative: CALLER_INFO_NAME_R CALLER_INFO_NAME_B; to: "background";}
68                                 text { font, FONT_SLP_Roman; size, 70; align, 0 0.5; text_class, TEXT_CLASS_SLP_ROMAN;}
69                                 color: 255 255 255 255;
70                                 color2: 0 0 0 255;
71                         }
72                 }
73
74                 /*CALLER INFO Seprator*/
75                 part { name: "vert_sep_1"; /*Caller info for more*/
76                         type: RECT;
77                         scale: 1;
78                         description {
79                                 state: "default" 0.0;
80                                 visible: 0;
81                         }
82                         description {
83                                 state: "show" 0.0;
84                                 visible: 1;
85                                 min: 2 70;
86                                 rel1 { relative: CALLER_INFO_VERT_SEP_1_L CALLER_INFO_VERT_SEP_1_T; to: "background";}
87                                 rel2 { relative: CALLER_INFO_VERT_SEP_1_R CALLER_INFO_VERT_SEP_1_B; to: "background";}
88                                 color: 0 0 0 128;
89                         }
90                 }
91
92                 part { name: "vert_sep_2"; /*Caller info for more*/
93                         type: RECT;
94                         scale: 1;
95                         description {
96                                 state: "default" 0.0;
97                                 visible: 0;
98                         }
99                         description {
100                                 state: "show" 0.0;
101                                 visible: 1;
102                                 min: 2 70;
103                                 rel1 { relative: CALLER_INFO_VERT_SEP_2_L CALLER_INFO_VERT_SEP_2_T; to: "background";}
104                                 rel2 { relative: CALLER_INFO_VERT_SEP_2_R CALLER_INFO_VERT_SEP_2_B; to: "background";}
105                                 color: 179 179 179 128;
106                         }
107                 }
108
109                 /*CALLER INFO*/
110                 part { name: "caller_info_icon"; /*Caller info for more*/
111                         type: SWALLOW;
112                         scale: 1;
113                         mouse_events: 1;
114                         description {
115                                 state: "default" 0.0;
116                                 visible: 1;
117                                 rel1 { relative: CALLER_INFO_ICON_L CALLER_INFO_ICON_T; to: "background";}
118                                 rel2 { relative: CALLER_INFO_ICON_R CALLER_INFO_ICON_B; to: "background";}
119                         }
120                 }
121
122
123                 /*CALL NUMBER*/
124                 part { name: "txt_phone_num"; /* Phone number*/
125                         type: TEXT;
126                         effect: SHADOW;
127                         scale: 1;
128                         description {
129                                 state: "default" 0.0;
130                                 rel1 { relative: CALLER_INFO_NUMBER_L CALLER_INFO_NUMBER_T; to: "background";}
131                                 rel2 { relative: CALLER_INFO_NUMBER_R CALLER_INFO_NUMBER_B; to: "background";}
132                                 text { font, FONT_SLP_Roman; size, 48; align, 0 0.5; text_class, TEXT_CLASS_SLP_ROMAN; }
133                                 color: 255 255 255 255;
134                                 color2: 0 0 0 255;
135                         }
136                 }
137
138                 /* CALL STATUS*/
139                 part { name: "txt_status";
140                         type: TEXT;
141                         effect: SHADOW;
142                         scale: 1;
143                         description {
144                                 state: "default" 0.0;
145                                 rel1 { relative: CALLER_INFO_TIMER_L CALLER_INFO_TIMER_T;to: "background";}
146                                 rel2 { relative: CALLER_INFO_TIMER_R CALLER_INFO_TIMER_B;to: "background";}
147                                 text { font, FONT_SLP_Roman; size, 48; align, 1.0 0.5; text_class, TEXT_CLASS_SLP_ROMAN; }
148                                 color: 249 249 249 255;
149                                 color2: 0 0 0 255;
150                         }
151                         description {
152                                 state: "end_color" 0.0;
153                                 inherit: "default" 0.0;
154                                 color: 255 0 0 255;
155                                 color2: 0 0 0 255;
156                         }
157                         description {
158                                 state: "hide" 0.0;
159                                 visible: 0;
160                         }
161                 }
162
163                 /* CALL TIME*/
164                 part { name: "txt_timer";       /*Call time or Call status*/
165                         type: TEXT;
166                         effect: SHADOW;
167                         scale: 1;
168                         description {
169                                 state: "default" 0.0;
170                                 rel1 { relative: CALLER_INFO_TIMER_L CALLER_INFO_TIMER_T; to: "background";}
171                                 rel2 { relative: CALLER_INFO_TIMER_R CALLER_INFO_TIMER_B; to: "background";}
172                                 text { font, FONT_SLP_Roman; size, 48; align, 1.0 0.5; text_class, TEXT_CLASS_SLP_ROMAN; }
173                                 color: 139 246 50 255;
174                                 color2: 0 0 0 255;
175                         }
176                         description {
177                                 state: "hide" 0.0;
178                                 visible: 0;
179                         }
180                 }
181
182                 programs {
183                         program { name: "hold_call";
184                                 signal: "set-hold-state";
185                                 source: "call-screen";
186                                 action: STATE_SET "hide" 0.0;
187                                 target: "top_area";
188                                 target: "txt_timer";
189                                 after: "show_status";
190                         }
191                         program { name: "show_status";
192                                 action: STATE_SET "default" 0.0;
193                                 target: "txt_status";
194                         }
195
196                         program { name: "unhold_call";
197                                 signal: "set-unhold-state";
198                                 source: "call-screen";
199                                 action: STATE_SET "default" 0.0;
200                                 target: "top_area";
201                                 target: "txt_timer";
202                                 after: "hide_status";
203                         }
204                         program { name: "hide_status";
205                                 action: STATE_SET "hide" 0.0;
206                                 target: "txt_status";
207                         }
208
209                         program { name: "end_caller_info";
210                                 signal: "set-end-caller_ifno";
211                                 source: "end-screen";
212                                 action: STATE_SET "end_color" 0.0;
213                                 target: "top_area";
214                                 target: "txt_status";
215                         }
216
217                         program { name: "hold_caller_info";
218                                 signal: "set-hold-caller_ifno";
219                                 source: "call-screen";
220                                 action: STATE_SET "hide" 0.0;
221                                 target: "top_area";
222                         }
223
224                         program { name: "vert_seperator";
225                                 signal: "show_vert_separtor";
226                                 source: "call-screen";
227                                 action: STATE_SET "show" 0.0;
228                                 target: "vert_sep_1";
229                                 target: "vert_sep_2";
230                         }
231                 }
232         }
233 }