apply FSL(Flora Software License)
[apps/core/preloaded/settings.git] / resource / setting-theme.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 #include "../setting-common/include/setting-common-data-edj-define.h"
18 //#include "setting-genlist.edc"
19
20 //Cnnot be fixed when select multiple resolution
21 #define ITEM_X_DEN (480.0)
22 #define ITEM_Y_DEN (90.0)
23 #define ITEM_Y_DEN2 (60.0)
24 #define MAIN_Y_DEN (800.0)
25
26 //#define GROUP_LIST_BG_COLOR_INC 242 238 233 255
27
28 images
29 {
30         image: "00_input_bg_black.png" COMP;
31         image: "00_input_bg_white.png" COMP;
32 }
33
34 collections
35 {
36         styles
37         {
38                 style
39                 {
40                         name: "textblock_style";
41                         base: "font=HelveN_Asia font_size=30 align=center color=#ffffff wrap=char";
42                         tag:  "br" "\n";
43                         tag:  "hilight" "+ font=HelveN_Asia:style=Bold";
44                         tag:  "b" "+ font=HelveN_Asia:style=Bold";
45                         tag:  "whitecolor" "+ color=#ffffff";
46                         tag:  "tab" "\t";
47                 }
48                 style
49                 {
50                         name: "description_style";
51                         base: "font=SLP:style=Roman font_size=24 align=left color=#ff0000 wrap=mixed";
52                         tag:  "br" "\n";
53                         tag:  "hilight" "+ font=SLP:style=Regular";
54                         tag:  "b" "+ font=SLP:style=Regular";
55                         tag:  "whitecolor" "+ color=#ffffff";
56                         tag:  "tab" "\t";
57                 }
58         }
59         group {
60                 name: "search_layout";
61
62                 parts {
63                         /* background */
64                         part {
65                                 name: "bg";
66                                 type: RECT;
67                                 scale: 1;
68                                 description {
69                                         state: "default" 0.0;
70                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
71                                         rel2 { relative: 1.0 1.0; offset: 0 0;}
72                                         color: 0 0 0 0;
73                                 }
74                         }
75                         part {
76                                 name: "bg_swallow";
77                                 type: SWALLOW;
78                                 mouse_events: 0;
79                                 scale: 1;
80                                 description {
81                                         state: "default" 0.0;
82                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg";}
83                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg";}
84                                 }
85                         }
86
87                         /******Begin adding middle icon and its text*******/
88                         part { name: "middle_icon_text";/*middle allign*/
89                                     type: TEXT;
90                                     scale: 1;
91                                     description { state: "default" 0.0;
92                                            align: 0.5 1.0;
93                                            rel1 { relative: 0.0 0.54; offset: 0 0; to: "bg"; }
94                                            rel2 { relative: 1.0 0.6; offset: 0 0; to: "bg"; }
95
96                                        color: 0 255 0 255;
97                                        text
98                                            {
99                                                   font: "SLP:style=Regular";
100                                                   size: 32;
101                                                   min: 0 0;
102                                                   align: 0.5 0.5;
103                                        }
104                                 }
105                         }
106
107                         part {
108                                 name: "middle_icon";
109                                 type: SWALLOW;
110                                 mouse_events: 1;
111                                 scale: 1;
112                                 description {
113                                         state: "default" 0.0;
114                                         //min: 130 116;
115                                         fixed: 1 1;
116                                         align: 0.5 0.5;
117                                         rel1 { relative: 0.33 0.6; offset: 0 0; to: "bg"; }
118                                         rel2 { relative: 0.66 0.8; offset: 0 0; to: "bg"; }
119                                 }
120                         }
121
122                         /******End adding middle icon and its text*******/
123
124                         /* search area swallow */
125                         part {
126                                 name: "search_bar";
127                                 type: SWALLOW;
128                                 mouse_events: 1;
129                                 scale: 1;
130                                 description {
131                                         state: "default" 0.0;
132                                         min: 0 ITEM_Y_DEN;
133                                         fixed: 1 1;
134                                         align: 0.0 0.0;
135                                         rel1 { relative: 0.0 10/MAIN_Y_DEN; offset: 0 0; to: "bg"; }
136                                         rel2 { relative: 1.0 0.0; offset: 0 0; to: "bg"; }
137                                 }
138                         }
139
140                         /* genlist swallow */
141                         part {
142                                 name: "search_list";
143                                 type: SWALLOW;
144                                 mouse_events: 1;
145                                 scale: 1;
146                                 description {
147                                         state: "default" 0.0;
148                                         align: 0.0 0.0;
149                                         //rel1 { relative: 0.0 1.0; offset: 0 0; to: "search_bar"; }
150                                         rel1 { relative: 0.0 ITEM_Y_DEN/MAIN_Y_DEN; offset: 0 1; to: "bg"; }
151                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; }
152                                 }
153                         }
154
155                         part {
156                                 name: "search_list2";
157                                 type: SWALLOW;
158                                 mouse_events: 1;
159                                 scale: 1;
160                                 description {
161                                         state: "default" 0.0;
162                                         align: 0.0 0.0;
163                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "bg"; }
164                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "bg"; }
165
166                                 }
167                         }
168
169                 } // end of parts
170         }
171
172         group {
173                 name: "layout_with_title_datetime"; 
174                 parts {
175                         part {
176                                 name: "title";
177                                 type: TEXT;
178                                 scale: 1;
179
180                                 description {
181                                         state: "default" 0.0;
182                                         //rel1 { relative: 0.0 0.0; offset: 0 -30;}    // 10 -30, -20, -15
183                                         rel1 { relative: 0.0 0.0; offset: 0 -20;}    // 10 -30, -20, -15
184                                         rel2 { relative: 1.0 0.6; }
185                                         color: 0 0 0 255;
186                                         
187                                         text {
188                                                 font: "SLP:style=Roman";
189                                                 size: 22;
190                                                 align: 0.0 0.5;
191                                         }
192                                 }
193                 /*Support other theme display*/
194                 description {
195                         state: "white" 0.0;
196                         inherit: "default" 0.0;
197                         color: 255 255 255 255;
198                 }
199
200                         }
201
202                         part {
203                                 name: "layout";
204                                 type: SWALLOW;
205                                 scale: 1;
206
207                                 description {
208                                         state: "default" 0.0;
209                                         rel1 { relative: 0.0 0.3; }
210                                         rel2 { relative: 1.0 1.0; offset: 0 -15;} // -15
211                                 }
212                         }
213                         part { name: "padding";
214                                 type: SWALLOW;
215                                 scale: 1;
216                                 description { state: "default" 0.0;
217                                         rel1 { relative: 0.0 0.0;}
218                                         rel2 { relative: 1.0 1.0;}
219                                         color: 0 0 0 0;
220                                 }
221                         }
222                 }
223
224         /*Support other theme display*/
225         programs {
226                 program {//black theme need white text
227                         name: "Change_non_white_theme";
228                         signal: "change,non-white,theme";
229                         source: "title";
230                         action: STATE_SET "white" 0.0;
231                         target: "title";
232                 }
233         }
234         }
235
236         group
237         {
238                 name:"thumbnail_icon2";
239                 min: 110 50;
240                 max: 121 55;
241                 parts
242                 {
243                         part
244                         {
245                                 name:"checkbox";
246                                 type:SWALLOW;
247                                 scale: 1;
248                                 description
249                                 {
250                                         state: "default" 0.0;
251                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
252                                         rel2 { relative: 0.45 1.0; offset: 0 0;}
253                                 }
254                         }
255                         part
256                         {
257                                 name: "space";
258                                 type: RECT;
259                                 scale: 1;
260                                 description
261                                 { state: "default" 0.0;
262                                    min: 45 0;
263                                    fixed: 1 0;
264                                    rel1
265                                    {
266                                           relative: 1.0 0.0;
267                                           to_x: "checkbox";
268                                    }
269                                    rel2.to_x: "checkbox";
270                                    color: 0 0 0 0;
271                                    align: 0.0 0.0;
272                                 }
273
274                         }
275                         part
276                         {
277                                 name:"thumbnail";
278                                 type:SWALLOW;
279                                 scale: 1;
280                                 description
281                                 {
282                                         state: "default" 0.0;
283                                         rel1 { relative: 0.45 0.0; offset: 0 0;}
284                                         rel2 { relative: 1.0 1.0; offset: 0 0;}
285                                 }
286                         }
287                 }
288         }
289 #define TITLE_AREA_H 150
290 #define BOTTOM_BAR_AREA_H 114
291 #define HD_HEIGHT 1280
292 #define WALLPAPER_LAYOUT_H ((HD_HEIGHT)-(TITLE_AREA_H)-(BOTTOM_BAR_AREA_H))
293
294         group {
295                 name: "wallpaper_layout";
296                 #define FONT_SIZE 24
297                 parts {
298                         /* background */
299                         part {
300                                 name: "bg";
301                                 type: RECT;
302                                 scale: 1;
303                                 description {
304                                         state: "default" 0.0;
305                                         rel1 { relative: 0.0 0.0; offset: 0 0;}
306                                         rel2 { relative: 1.0 1.0; offset: 0 0;}
307                                         color: 0 0 0 0;
308                                 }
309                         }
310                         part {
311                                 name: "left_swallow_bg";
312                                 type: RECT;
313                                 scale: 1;
314                                 description {
315                                         state: "default" 0.0;
316                                         rel1 { relative: 16/720 30/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
317                                         rel2 { relative: 352/720 630/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
318                                         color: 0 0 0 0;
319                                 }
320                                 /*
321                                 description {
322                                         state: "pressed" 0.0;
323                                         inherit: "default" 0.0;
324                                         color: 255 102 28 255;
325                                 }*/
326                         }
327
328                         part {
329                                 name: "left_swallow";
330                                 type: SWALLOW;
331                                 mouse_events: 1;
332                                 scale: 1;
333                                 description {
334                                         state: "default" 0.0;
335                                         align: 0.5 0.5;
336                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "left_swallow_bg"; }
337                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "left_swallow_bg"; }
338
339                                 }
340                         }
341                 part { name: "left_text";
342                             type: TEXT;
343                             scale: 1;
344                             description { state: "default" 0.0;
345                                    align: 0.5 0.5;
346                                    rel1 { relative: 16/720 652/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
347                                    rel2 { relative: 352/720 690/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
348
349                                color: 0 0 0 255;
350                                text
351                                    {
352                                           font: "SLP:style=Regular";
353                                           size: FONT_SIZE;
354                                           min: 0 0;
355                                           align: 0.5 0.5;
356                                }
357                             }
358                                 /*Support other theme display*/
359                                 description {
360                                         state: "white" 0.0;
361                                         inherit: "default" 0.0;
362                                         color: 255 255 255 255;//white color
363                                 }
364
365                         }
366
367                         part {
368                                 name: "right_swallow_bg";
369                                 type: RECT;
370                                 scale: 1;
371                                 description {
372                                         state: "default" 0.0;
373                                         rel1 { relative: 368/720 30/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
374                                         rel2 { relative: 704/720 630/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
375                                         color: 0 0 0 0;
376                                 }
377                                 /*description {
378                                         state: "pressed" 0.0;
379                                         inherit: "default" 0.0;
380                                         color: 255 102 28 255;
381                                 }*/
382                         }
383
384                         part {
385                                 name: "right_swallow";
386                                 type: SWALLOW;
387                                 mouse_events: 1;
388                                 scale: 1;
389                                 description {
390                                         state: "default" 0.0;
391                                         align: 0.5 0.5;
392                                         rel1 { relative: 0.0 0.0; offset: 0 0; to: "right_swallow_bg"; }
393                                         rel2 { relative: 1.0 1.0; offset: 0 0; to: "right_swallow_bg"; }
394                                 }
395                         }
396                 part { name: "right_text";
397                             type: TEXT;
398                             scale: 1;
399                             description { state: "default" 0.0;
400                                    align: 0.5 0.5;
401                                    rel1 { relative: 368/720 652/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
402                                    rel2 { relative: 704/720 690/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
403
404                                    color: 0 0 0 255;
405                                text
406                                    {
407                                           font: "SLP:style=Regular";
408                                           size: FONT_SIZE;
409                                           min: 0 0;
410                                           align: 0.5 0.5;
411                                }
412                             }
413                                 description {
414                                         state: "white" 0.0;
415                                         inherit: "default" 0.0;
416                                         color: 255 255 255 255;//white color
417                                 }
418                         }
419
420                         part {
421                                 name: "btn";
422                                 type: SWALLOW;
423                                 mouse_events: 1;
424                                 scale: 1;
425                                 description {
426                                         state: "default" 0.0;
427                                         align: 0.0 0.0;
428                                         rel1 { relative: 16/720 712/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
429                                         rel2 { relative: 704/720 786/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
430                                 }
431                         }
432 /*
433                         part {
434                                 name: "lock_btn";
435                                 type: SWALLOW;
436                                 mouse_events: 1;
437                                 scale: 1;
438                                 description {
439                                         state: "default" 0.0;
440                                         align: 0.0 0.0;
441                                         rel1 { relative: 16/720 818/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
442                                         rel2 { relative: 704/720 892/WALLPAPER_LAYOUT_H; offset: 0 0; to: "bg"; }
443                                 }
444                         }
445 */
446
447                 } // end of parts
448             programs {
449                         program { name: "left_mouse_press,";
450                             signal: "mouse,down,1";
451                             source: "left_swallow_bg";
452                                 //action: STATE_SET "default" 0.0;
453                             script {
454                                 set_state(PART:"right_swallow_bg", "default", 0.0);
455                                         set_state(PART:"left_swallow_bg", "pressed", 0.0);
456                             }
457                         }
458
459                         program { name: "right_mouse_press,";
460                             signal: "mouse,down,1";
461                             source: "right_swallow_bg";
462                                 //action: STATE_SET "default" 0.0;
463                             script {
464                                 set_state(PART:"right_swallow_bg", "pressed", 0.0);
465                                         set_state(PART:"left_swallow_bg", "default", 0.0);
466                             }
467                         }
468
469             /*Support other theme display*/
470             program {//black theme need white text
471                     name: "Change_non_white_theme";
472                     signal: "change,non-white,theme";
473                     source: "elm";
474                     action: STATE_SET "white" 0.0;
475                     target: "left_text";
476                     target: "right_text";
477             }
478                 }
479
480         }
481
482         group
483         {
484         name: "selinfo_bottom";
485
486         parts {
487                 part {
488                         name: "background";
489                         type: RECT;
490                         scale: 1;
491                         description {
492                                 state: "default" 0.0;
493                                 rel1 { relative: 0.0 0.0; }
494                                 rel2 { relative: 1.0 1.0; }
495                                 color: 0 0 0 0;
496                         }
497                 }
498
499                 part {
500                         name: "elm.swallow.contents";
501                         type: SWALLOW;
502                         scale: 1;
503                         description {
504                                 state: "default" 0.0;
505                                 rel1 { relative: 0.0 0.0; to: "background"; }
506                                 rel2 { relative: 1.0 0.0; to_x: "background"; to_y:"bottom_padding"; }
507                         }
508                 }
509
510                 part {
511                         name: "bottom_padding";
512                         type: RECT;
513                         scale: 1;
514                         description {
515                                 state: "default" 0.0;
516                                 min: 0 0;
517                                 fixed: 0 1;
518                                 align: 0.5 1.0;
519                                 rel1 { relative: 0.0 1.0; to: "background"; }
520                                 rel2 { relative: 1.0 1.0; to: "background"; }
521                                 color: 0 0 0 0;
522                         }
523                         description {
524                                 state: "padding" 0.0;
525                                 inherit: "default" 0.0;
526                                 min: 0 5; // 66+4+12
527                         }
528                 }
529         }
530
531         programs {
532                 program {
533                         name: "bottom_padding_content_area";
534                         signal: "elm,layout,content,bottom_padding";
535                         source: "layout";
536                         action: STATE_SET "padding" 0.0;
537                         target: "bottom_padding";
538                 }
539                 program {
540                         name: "default_content_area";
541                         signal: "elm,layout,content,default";
542                         source: "layout";
543                         action: STATE_SET "default" 0.0;
544                         target: "bottom_padding";
545                 }
546         }
547         }