tizen 2.4 release
[apps/home/ug-lockscreen-setting-efl.git] / ug-lockscreen-setting-efl / res / edje / lockscreen-options-theme / lockscreen-options-theme-genlist.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 styles {
20         style {
21                 name: "textblock_style_variable_height";
22                 base: "font=Tizen:style=Roman font_size=32 align=left color=#808080FF wrap=word text_class=tizen";
23                 tag: "br" "\n";
24                 tag: "hilight" "+ font=Tizen:style=Bold";
25                 tag: "b" "+ font=Tizen:style=Bold";
26                 tag: "tab" "\t";
27         }
28 }
29
30 group { name: "elm/genlist/item/lockscreens_options/help_text/default/default";
31         alias: "elm/genlist/item_odd/lockscreens_options/help_text/default/default";
32
33         data.item: "stacking" "above";
34         data.item: "selectraise" "on";
35         data.item: "texts" "elm.text";
36         data.item: "contents" "elm.icon elm.button";
37         data.item: "treesize" "20";
38
39         parts {
40                 BEAT_GENLIST_MUSIC_PLAYER_PART_BASE( 0 )
41                 BEAT_GENLIST_PART_BG_IMAGE
42                 BEAT_GENLIST_PART_BOTTOM_LINE_APLPHA
43                 BEAT_GENLIST_PART_PADDING_LEFT( 15 )
44                 BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
45                 BEAT_GENLIST_PART_PADDING_TOP( 10 )
46                 BEAT_GENLIST_PART_PADDING_BOTTOM( 10 )
47                 part { name: "elm.text";
48                         clip_to: "text_clip";
49                         type: TEXTBLOCK;
50                         multiline: 1;
51                         mouse_events: 0;
52                         scale: 1;
53                         description {
54                                 state: "default" 0.0;
55                                 align: 0.0 0.5;
56                                 min: 690 0;
57                                 max: 690 80;
58                                 fixed: 1 0;
59                                 rel1 {
60                                         relative: 1 1.0;
61                                         to_x: "elm.padding.left";
62                                         to_y: "elm.padding.top";
63                                 }
64                                 rel2 {
65                                         relative: 1 0.0;
66                                         to_x: "elm.padding.left";
67                                         to_y: "elm.padding.bottom";
68                                 }
69                                 text {
70                                         style: "textblock_style_variable_height";
71                                         min: 0 1;
72                                         align: 0.0 0.5;
73                                 }
74                         }
75                 }
76                 part {
77                         name: "text_clip";
78                         clip_to: "disclip";
79                         type: RECT;
80                         description {
81                                 state: "default" 0.0;
82                                 align: 0.0 0.5;
83                                 rel1 {
84                                         relative: 1 1;
85                                         to_x: "elm.padding.left";
86                                         to_y: "elm.padding.top";
87                                 }
88                                 rel2 {
89                                         relative: 0 0;
90                                         to_x: "elm.padding.right";
91                                         to_y: "elm.padding.bottom";
92                                 }
93                         }
94                 }
95                 part {
96                         name: "elm.icon";
97                         clip_to: "disclip";
98                         type: SWALLOW;
99                         mouse_events: 1;
100                         scale: 1;
101                         description {
102                                 state: "default" 0.0;
103                                 align: 0.5 0.5;
104                                 rel1 {
105                                         relative: 1 1;
106                                         to_x: "elm.padding.left";
107                                         to_y: "elm.padding.top";
108                                 }
109                                 rel2 {
110                                         relative: 0 0;
111                                         to_x: "elm.padding.right";
112                                         to_y: "elm.padding.bottom";
113                                 }
114                         }
115                 }
116                 part {
117                         name: "elm.button";
118                         clip_to: "disclip";
119                         type: SWALLOW;
120                         mouse_events: 1;
121                         scale: 1;
122                         description {
123                                 state: "default" 0.0;
124                                 min: 68 68;
125                                 align: 1.0 0.5;
126                                 rel1 {
127                                         relative: 0 1;
128                                         to_x: "elm.padding.right";
129                                         to_y: "elm.padding.top";
130                                 }
131                                 rel2 {
132                                         relative: 0 0;
133                                         to_x: "elm.padding.right";
134                                         to_y: "elm.padding.bottom";
135                                 }
136                         }
137                 }
138                 BEAT_GENLIST_PART_DISCLIP
139         }
140         programs {
141                 program {
142                         name: "go_active";
143                         signal: "elm,state,selected";
144                         source: "elm";
145                         action: STATE_SET "selected" 0.0;
146                         target: "bg_image";
147                 }
148                 program {
149                         name: "go_passive";
150                         signal: "elm,state,unselected";
151                         source: "elm";
152                         action: STATE_SET "default" 0.0;
153                         target: "bg_image";
154                         transition: LINEAR 0.1;
155                 }
156                 program {
157                         name: "go_disabled";
158                         signal: "elm,state,disabled";
159                         source: "elm";
160                         action: STATE_SET "disabled" 0.0;
161                         target: "disclip";
162                 }
163                 program {
164                         name: "go_enabled";
165                         signal: "elm,state,enabled";
166                         source: "elm";
167                         action: STATE_SET "default" 0.0;
168                         target: "disclip";
169                 }
170         }
171 }
172
173 group {
174         name: "elm/genlist/item/lockscreens_options/variable_height/default/default";
175         alias: "elm/genlist/item_odd/lockscreens_options/variable_height/default/default";
176
177         data.item: "stacking" "above";
178         data.item: "selectraise" "on";
179         data.item: "texts" "elm.text elm.text.theme_name";
180         data.item: "contents" "elm.icon elm.button";
181         data.item: "treesize" "20";
182
183         images{
184                 image: "lock_screen_btn_nor.9.png" COMP;
185         }
186
187         parts {
188                 BEAT_GENLIST_MUSIC_PLAYER_PART_BASE( 0 )
189                 BEAT_GENLIST_PART_BG_IMAGE
190                 BEAT_GENLIST_PART_BOTTOM_LINE
191                 BEAT_GENLIST_PART_PADDING_LEFT( 15 )
192                 BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
193                 BEAT_GENLIST_PART_PADDING_TOP( 10 )
194                 BEAT_GENLIST_PART_PADDING_BOTTOM( 10 )
195                 part {
196                         name: "elm.text";
197                         clip_to: "text_clip";
198                         type: TEXTBLOCK;
199                         multiline: 1;
200                         mouse_events: 0;
201                         scale: 1;
202                         description {
203                                 state: "default" 0.0;
204                                 align: 0.0 0.5;
205                                 min: 460 0;
206                                 fixed: 1 0;
207                                 rel1 {
208                                         relative: 1 1.0;
209                                         to_x: "elm.padding.left";
210                                         to_y: "elm.padding.top";
211                                 }
212                                 rel2 {
213                                         relative: 1 0.0;
214                                         to_x: "elm.padding.left";
215                                         to_y: "elm.padding.bottom";
216                                 }
217                                 text {
218                                         style: "textblock_style_variable_height";
219                                         min: 0 1;
220                                         align: 0 0.0;
221                                 }
222                         }
223                 }
224                 part {
225                         name: "text_clip";
226                         clip_to: "disclip";
227                         type: RECT;
228                         description {
229                                 state: "default" 0.0;
230                                 align: 0.0 0.5;
231                                 rel1 {
232                                         relative: 1 1;
233                                         to_x: "elm.padding.left";
234                                         to_y: "elm.padding.top";
235                                 }
236                                 rel2 {
237                                         relative: 0 0;
238                                         to_x: "elm.padding.right";
239                                         to_y: "elm.padding.bottom";
240                                 }
241                         }
242                 }
243                 part {
244                         name: "elm.icon";
245                         clip_to: "disclip";
246                         type: SWALLOW;
247                         mouse_events: 1;
248                         scale: 1;
249                         description {
250                                 state: "default" 0.0;
251                                 align: 0.5 0.0;
252                                 rel1 {
253                                         relative: 1 1;
254                                         to_x: "elm.padding.left";
255                                         to_y: "elm.padding.top";
256                                 }
257                                 rel2 {
258                                         relative: 0 0;
259                                         to_x: "elm.padding.right";
260                                         to_y: "elm.padding.bottom";
261                                 }
262                         }
263                 }
264                 part{
265                         name: "img.btn";
266                         clip_to: "disclip";
267                         type: IMAGE;
268                         scale: 1;
269                         mouse_events: 0;
270                         description{
271                                 state: "default" 0.0;
272                                 max: 140 36;
273                                 min: 140 36;
274                                 fixed: 1 1;
275                                 align: 0.5 0.0;
276                                 rel1 {
277                                         relative: 1 1.7;
278                                         to_x: "elm.padding.left";
279                                         to_y: "elm.padding.top";
280                                 }
281                                 rel2 {
282                                         relative: 0 0;
283                                         to_x: "elm.icon";
284                                         to_y: "elm.padding.bottom";
285                                 }
286                                 image.normal: "lock_screen_btn_nor.9.png";
287                                 image.border: 4 4 4 4;
288                         }
289                 }
290                 part {
291                         name: "elm.text.theme_name";
292                         clip_to: "disclip";
293                         type: TEXT;
294                         description {
295                                 state: "default" 0.0;
296                                 color: 59 115 182 255;//the color is got from GENLIST_DIALOGUE_GROUP_TITLE_COLOR in efl-theme-tizen
297                                 rel1 {
298                                         to: "img.btn";
299                                 }
300                                 rel2 {
301                                         to: "img.btn";
302                                 }
303                                 text{
304                                         font: "Tizen:style=Medium";
305                                         text_class: "tizen";
306                                         size: 20;
307                                         align: 0.5 0.5;
308                                         //text: "Default";
309                                 }
310                         }
311                 }
312                 part {
313                         name: "elm.button";
314                         clip_to: "disclip";
315                         type: SWALLOW;
316                         mouse_events: 1;
317                         scale: 1;
318                         description {
319                                 state: "default" 0.0;
320                                 min: 68 68;
321                                 max: 68 68;
322                                 align: 1.0 0.5;
323                                 rel1 {
324                                         relative: 0 1;
325                                         to_x: "elm.padding.right";
326                                         to_y: "elm.padding.top";
327                                 }
328                                 rel2 {
329                                         relative: 0 0;
330                                         to_x: "elm.padding.right";
331                                         to_y: "elm.padding.bottom";
332                                 }
333                         }
334                 }
335                 BEAT_GENLIST_PART_DISCLIP
336         }
337         programs {
338                 program {
339                         name: "go_active";
340                         signal: "elm,state,selected";
341                         source: "elm";
342                         action: STATE_SET "selected" 0.0;
343                         target: "bg_image";
344                 }
345                 program {
346                         name: "go_passive";
347                         signal: "elm,state,unselected";
348                         source: "elm";
349                         action: STATE_SET "default" 0.0;
350                         target: "bg_image";
351                         transition: LINEAR 0.1;
352                 }
353                 program {
354                         name: "go_disabled";
355                         signal: "elm,state,disabled";
356                         source: "elm";
357                         action: STATE_SET "disabled" 0.0;
358                         target: "disclip";
359                 }
360                 program {
361                         name: "go_enabled";
362                         signal: "elm,state,enabled";
363                         source: "elm";
364                         action: STATE_SET "default" 0.0;
365                         target: "disclip";
366                 }
367         }
368 }