tizen 2.3 release
[apps/home/b2-clocksetting.git] / data / groups / genlist_setting.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  *   1. Redistributions of source code must retain the above copyright notice, this
10  *      list of conditions and the following disclaimer.
11  *   2. Redistributions in binary form must reproduce the above copyright notice,
12  *      this list of conditions and the following disclaimer in the documentation
13  *      and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 /*
28  * vim:ts=3
29 */
30
31 #include "default_inc.edc"
32 #include "theme_default_inc.edc"
33 #include "genlist_macro.edc"
34
35 group { name: "elm/genlist/item/setting_indicator/default";
36    PROLOG_LIST
37    data.item: "contents" "elm.icon";
38
39    parts {
40       PART_LIST_BG
41       PART_LIST_PADDINGS(
42          LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
43          0, 2 // FIXME: arbitrary value to prevent overlap with bottom lines
44       )
45       PART_LIST_BOTTOMLINE
46       PART(SWALLOW, "elm.icon",
47          DESC_LRTB(
48             "elm.padding.left", "elm.padding.right",
49             "elm.padding.top", "elm.padding.bottom",
50             min: 0 ( LIST_1LINE_HEIGHT - 2);
51          )
52       )
53    }
54    PROGRAMS_LIST( target: "elm.icon"; )
55 }
56
57
58 // ***************************** LIst *****************************************/
59 #define LIST_PADDING_LEFT_SIZE                         16
60 #define LIST_PADDING_RIGHT_SIZE                        16
61 #define LIST_PADDING_DEFAULT_SIZE                      16
62 #define LIST_PADDING_R_ICON_RIGHT_SIZE                 8
63 #define LIST_PADDING_R_ICON_DEFAULT_SIZE               8
64 #define LIST_GROUPINDEX_PADDING_TOP_SIZE               1
65 #define LIST_GROUPINDEX_PADDING_BOTTOM_SIZE            1
66 #define LIST_1LINE_HEIGHT                              90
67 #define LIST_1LINE_PADDING_TOP_SIZE                    22
68 #define LIST_1LINE_PADDING_BOTTOM_SIZE                 23
69 #define LIST_2LINE_PADDING_TOP_SIZE                    8
70 #define LIST_2LINE_PADDING_BOTTOM_SIZE                 9
71 #define LIST_TEXT_MAIN_SIZE                            38
72 #define LIST_TEXT_SUB_SIZE                             24
73 #define LIST_TEXT_SWEEP_SIZE                           32
74 #define LIST_DIVIDER_HEIGHT                            50
75 #define LIST_DIVIDER_PADDING_SIZE                      8
76 #define LIST_GROUPINDEX_HEIGHT                         28
77 #define LIST_GROUPINDEX_TEXT_SIZE                      24
78 #define LIST_HIDDEN_HEIGHT                             76
79 #define LIST_MULTILINE_HEIGHT                          44
80
81 styles {
82   style { name: "list_text_sub_multiline_normal_setting";
83     base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="LIST_TEXT_SUB_NORMAL_COLOR" text_class=tizen wrap=mixed";
84     STYLE_TAG
85     STYLE_TAG_MATCH
86   }
87   style { name: "list_text_sub_multiline_dim_setting";
88     base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="LIST_TEXT_SUB_DIM_COLOR" text_class=tizen wrap=mixed";
89     STYLE_TAG
90     STYLE_TAG_MATCH
91   }
92   style { name: "list_text_main_normal_setting";
93     base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="LIST_TEXT_MAIN_NORMAL_COLOR" text_class=list_item ellipsis=1.0";
94     STYLE_TAG
95     STYLE_TAG_MATCH
96   }
97   style { name: "list_text_main_dim_setting";
98     base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="LIST_TEXT_MAIN_DIM_COLOR" text_class=list_item ellipsis=1.0";
99     STYLE_TAG
100     STYLE_TAG_MATCH
101   }
102 }
103
104 group { name: "elm/genlist/item/multiline.2text.1icon/default";
105    PROLOG_LIST
106    data.item: "texts" "elm.text.1 elm.text.2";
107    data.item: "contents" "elm.swallow.colorbar elm.icon";
108
109    parts {
110       PART_LIST_BG
111       PART_LIST_BOTTOMLINE
112       PART_LIST_PADDINGS(
113          LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
114          LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
115       )
116       PART(TEXTBLOCK, "elm.text.1",
117          DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.top", "elm.padding.text1.bottom",
118 //            min: 0 LIST_2LINE_MAIN_HEIGHT;
119             min: 0 10;
120             PARAM_TEXT("list_text_main_normal_setting",)
121          ) DESCRIPIONS_TEXT("list_text_main_dim_setting", "list_text_main_normal_setting")
122       )
123       PART(SPACER, "elm.padding.text1.bottom",
124          DESC_B("elm.text.2", min: 0 4; max: -1 4; )
125       )
126       PART(TEXTBLOCK, "elm.text.2",
127          DESC_LRB("elm.padding.left", "elm.padding.icon.left", "elm.padding.bottom",
128 //            min: 0 LIST_2LINE_SUB_HEIGHT;
129             min: 0 10;
130             PARAM_TEXT("list_text_sub_multiline_normal_setting",)
131          ) DESCRIPIONS_TEXT("list_text_sub_multiline_dim_setting", "list_text_sub_multiline_normal_setting")
132       )
133       PART(SPACER, "elm.padding.icon.left",
134          DESC_R("elm.icon",
135             min: LIST_PADDING_DEFAULT_SIZE 0;  max: LIST_PADDING_DEFAULT_SIZE -1;
136          )
137        )
138       PART(SWALLOW, "elm.icon", DESC_R("elm.padding.right", ) )
139
140    }
141    PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2";
142       target: "elm.icon"; )
143 }