tizen 2.4 release
[apps/home/ug-lockscreen-setting-efl.git] / ug-lockscreen-setting-efl / res / edje / lockscreen-options-preview / lock-macro.edc
1 /*
2  * Copyright (c) 2009 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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
18
19 #define WIDTH 720
20 #define HEIGHT 1280
21
22 #define PROG_PART_SHOW_HIDE(part_name)\
23                  program{\
24                          name: "show,"part_name;\
25                          signal: "show,"part_name;\
26                          source: part_name;\
27                          action: STATE_SET "default" 0.0;\
28                          target: part_name;\
29                  }\
30                  program{\
31                          name: "hide,"part_name;\
32                          signal: "hide,"part_name;\
33                          source: part_name;\
34                          action: STATE_SET "hidden" 0.0;\
35                          target: part_name;\
36                  }\
37
38 #define TEXTBLOCK(rel1_x, rel1_y, rel2_x, rel2_y, font_style)\
39                          part {\
40                                  name: "textblock.title";\
41                                  type: TEXTBLOCK;\
42                                  scale: 1;\
43                                  mouse_events: 1;\
44                                  description {\
45                                          state: "default" 0.0;\
46                                          fixed: 1 1;\
47                                          align: 0.0 0.0;\
48                                          rel1 {\
49                                                  relative: rel1_x rel1_y;\
50                                                  to: "bg";\
51                                          }\
52                                          rel2 {\
53                                                  relative: rel2_x rel2_y;\
54                                                  to: "bg";\
55                                          }\
56                                          text {\
57                                                  style: font_style;\
58                                                  min: 0 1;\
59                                          }\
60                                  }\
61                                  description {\
62                                          state: "show" 0.0;\
63                                          fixed: 1 1;\
64                                          align: 0.0 0.0;\
65                                          rel1 {\
66                                                  relative: rel1_x rel1_y;\
67                                                  to: "bg";\
68                                          }\
69                                          rel2 {\
70                                                  relative: rel2_x rel2_y;\
71                                                  to: "bg";\
72                                          }\
73                                         text {\
74                                                 style: "title_style_ellipsis";\
75                                         }\
76                                  }\
77                          }
78 #define PROGRAM_SIGNAL_EMIT_CLICK(part_name, singal_name)\
79          program{\
80                  name: "send_click_event_"part_name;\
81                  signal: "mouse,clicked,1";\
82                  source: part_name;\
83                  action: SIGNAL_EMIT singal_name "";\
84                  after: "touch_snd_"part_name;\
85          }\
86          program{\
87                  name: "touch_snd_"part_name;\
88                  action: PLAY_SAMPLE "touch_sound" 1.0;\
89          }
90
91 #define PROGRAMS_ELLIPSIS()\
92                         program{\
93                                 name: "show.textblock";\
94                                 signal: "show,dim,textblock.title";\
95                                 source: "textblock.title";\
96                                 action: STATE_SET "show" 0.0;\
97                                 target: "textblock.title";\
98                         }\
99                         program{\
100                                 name: "default.textblock";\
101                                 signal: "hide,dim,textblock.title";\
102                                 source: "textblock.title";\
103                                 action: STATE_SET "default" 0.0;\
104                                 target: "textblock.title";\
105                         }\
106
107 #define TEXTBLOCK_TEST(block_name, rel1_x, rel1_y, rel2_x, rel2_y, font_style)\
108                         part {\
109                                 name: "textblock_test.title."block_name;\
110                                 type: TEXTBLOCK;\
111                                 scale: 1;\
112                                 mouse_events: 0;\
113                                 description {\
114                                         state: "default" 0.0;\
115                                         fixed: 1 1;\
116                                         align: 0.0 0.0;\
117                                         rel1 {\
118                                                 relative: rel1_x rel1_y;\
119                                                 to: "bg";\
120                                         }\
121                                         rel2 {\
122                                                 relative: rel2_x rel2_y;\
123                                                 to: "bg";\
124                                         }\
125                                         text {\
126                                                 style: font_style;\
127                                                 min: 1 0;\
128                                         }\
129                                         visible: 0;\
130                                 }\
131                         }\
132                         part{\
133                                 name: "rect.textblock_test.title."block_name;\
134                                 type: RECT;\
135                                 scale: 1;\
136                                 mouse_events: 0;\
137                                 description{\
138                                         state: "default" 0.0;\
139                                         fixed: 1 1;\
140                                         rel1.to: "textblock_test.title."block_name;\
141                                         rel2.to: "textblock_test.title."block_name;\
142                                         color: 0 0 0 0;\
143                                 }\
144                         }
145
146 styles {
147         style {
148                 name: "title_style_ellipsis";
149                 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=68 align=left valign=bottom color=#ffffffff style=shadow shadow_color=#0000007f wrap="" ellipsis=1.0";
150                 tag: "br" "\n";
151                 tag: "hilight" "+ color=#ffff";
152                 tag: "b" "+ color=#ffff";
153                 tag: "tab" "\t";
154         }
155
156         style {
157                 name: "title_style";
158                 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=85 align=left valign=bottom color=#ffffffff style=shadow shadow_color=#0000007f wrap=""";
159                 tag: "br" "\n";
160                 tag: "hilight" "+ color=#ffff";
161                 tag: "b" "+ color=#ffff";
162                 tag: "tab" "\t";
163         }
164 }
165
166 color_classes {
167         color_class {
168                 name: "color_theme1";
169                 color: 246 128 142 255;
170         }
171         color_class {
172                 name: "color_theme2";
173                 color: 1 129 174 255;
174         }
175         color_class {
176                 name: "color_theme3";
177                 color: 255 255 255 255;
178         }
179         color_class {
180                 name: "color_theme4";
181                 color: 246 193 78 216;
182         }
183         color_class {
184                 name: "color_theme5";
185                 color: 157 157 157 255;
186         }
187         color_class {
188                 name: "color_theme6";
189                 color: 228 243 178 255;
190         }
191 }
192
193 #define LOCK_TITLE()\
194                 TEXTBLOCK(42/WIDTH, 218/HEIGHT, (WIDTH-42)/WIDTH, (218+96)/HEIGHT, "title_style");