2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
17 #define GENLIST_HEIGHT_113_INC 113
18 #define GENLIST_PADDING_16_INC 16
19 #define GENLIST_PADDING_32_INC 32
20 #define GENLIST_SIZE_133_INC 420
21 #define GENLIST_PART_FONT_LIST_SUB_TEXT_COLOR_INC 129 129 129 255
22 #define GENLIST_FONT_32_INC 32
23 #define GENLIST_PART_TEXT_PRESS_COLOR_INC 249 249 249 255
24 #define GENLIST_SIZE_32_INC 32
25 #define GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC 249 249 249 255
26 #define GENLIST_FONT_44_INC 44
27 #define GENLIST_PART_BG_COLOR_INC 0 0 0 255
28 #define GENLIST_PART_LIST_BG_COLOR_INC 0 0 0 255
29 #define GENLIST_PART_LIST_PRESS_COLOR_INC 0 140 210 255
30 #define GENLIST_PART_LIST_LINE_COLOR_INC 68 68 68 255
31 #define GENLIST_PART_DISCLIP_COLOR_INC 255 255 255 64
32 #define GENLIST_PADDING_12_INC 12
33 #define GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC 68 68 68 255
35 #define GENLIST_PART_BASE( param_item_height ) \
36 part { name: "base"; \
40 description { state: "default" 0.0; \
41 min: 0 param_item_height; \
42 color: GENLIST_PART_BG_COLOR_INC; \
46 #define GENLIST_PART_BG_IMAGE \
47 part { name: "bg_image"; \
51 description { state: "default" 0.0; \
52 color: GENLIST_PART_LIST_BG_COLOR_INC; \
54 description { state: "selected" 0.0; \
55 inherit: "default" 0.0; \
56 color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
60 #define GENLIST_PART_BOTTOM_LINE \
61 part { name: "bottom_line"; \
64 description { state: "default" 0.0; \
68 color: GENLIST_PART_LIST_LINE_COLOR_INC; \
76 #define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
77 part { name: "elm.padding.left"; \
80 description { state: "default" 0.0; \
81 min: param_padding_size 0; \
84 rel2.relative: 0.0 1.0; \
89 #define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
90 part { name: "elm.padding.right"; \
93 description { state: "default" 0.0; \
94 min: param_padding_size 0; \
97 rel1.relative: 1.0 0.0; \
102 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
103 description { state: "flip_enabled" 0.0; \
104 inherit: "default" 0.0; \
108 #define GENLIST_PART_FLIP \
109 part { name: "elm.flip.content"; \
110 clip_to: "disclip"; \
114 description { state: "default" 0.0; \
119 to_x: "elm.padding.left"; \
123 to_x: "elm.padding.right"; \
126 description { state: "flip_enabled" 0.0; \
127 inherit: "default" 0.0; \
132 #define GENLIST_PART_DISCLIP \
133 part { name: "disclip"; \
135 description { state: "default" 0.0; \
137 description { state: "disabled" 0.0; \
138 inherit: "default" 0.0; \
139 color: GENLIST_PART_DISCLIP_COLOR_INC; \
143 #define GENLIST_PROGRAM_FLIP_2TEXT \
144 program { name: "flip_enabled"; \
145 signal: "elm,state,flip,enabled"; \
147 action: STATE_SET "flip_enabled" 0.0; \
148 target: "elm.text.1"; \
149 target: "elm.text.2"; \
150 target: "elm.flip.content"; \
152 program { name: "flip_disabled"; \
153 signal: "elm,state,flip,disabled"; \
155 action: STATE_SET "default" 0.0; \
156 target: "elm.text.1"; \
157 target: "elm.text.2"; \
158 target: "elm.flip.content"; \
161 #define GENLIST_PART_DIALOGUE_ITEM \
162 part { name: "elm.rect.dialogue"; \
165 description { state: "default" 0.0; \
166 min: GENLIST_PADDING_12_INC 0; \
168 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
169 rel2.relative: 0.0 1.0; \
176 name: "elm/dialogueitem/base/ciss/dialoguegroup_hidden_three_button";
182 state: "default" 0.0;
187 part { name: "button1";
191 state: "default" 0.0;
192 rel1.relative: 5/100 1/11;
193 rel2.relative: 47.5/100 5/11;
196 part { name: "button2";
200 state: "default" 0.0;
201 rel1.relative: 52.5/100 1/11;
202 rel2.relative: 95/100 5/11;
205 part { name: "button3";
209 state: "default" 0.0;
210 rel1.relative: 5/100 6/11;
211 rel2.relative: 95/100 10/11;
218 name: "elm/dialogueitem/base/ciss/dialoguegroup_hidden_two_button";
224 state: "default" 0.0;
229 part { name: "button1";
233 state: "default" 0.0;
234 rel1.relative: 5/100 1/11;
235 rel2.relative: 47.5/100 10/11;
238 part { name: "button2";
242 state: "default" 0.0;
243 rel1.relative: 52.5/100 1/11;
244 rel2.relative: 95/100 10/11;
251 name: "elm/genlist/item/ciss/2text_call_forward/default";
252 alias: "elm/genlist/item_odd/ciss/2text_call_forward/default";
253 alias: "elm/genlist/item_compress/ciss/2text_call_forward/default";
254 alias: "elm/genlist/item_compress_odd/ciss/2text_call_forward/default";
255 data.item: "stacking" "above";
256 data.item: "selectraise" "on";
257 data.item: "texts" "elm.text.1 elm.text.2";
258 data.item: "flips" "elm.flip.content";
260 GENLIST_PART_BASE(GENLIST_HEIGHT_113_INC)
261 GENLIST_PART_BG_IMAGE
262 GENLIST_PART_BOTTOM_LINE
263 GENLIST_PART_PADDING_LEFT(GENLIST_PADDING_32_INC)
264 GENLIST_PART_PADDING_RIGHT(GENLIST_PADDING_16_INC)
265 GENLIST_PART_DIALOGUE_ITEM
267 part { name: "elm.text.2";
272 description { state: "default" 0.0;
273 min: GENLIST_SIZE_133_INC 0;
275 rel1.to_x: "elm.padding.right";
278 to_x: "elm.padding.right";
281 color: GENLIST_PART_FONT_LIST_SUB_TEXT_COLOR_INC;
283 font: "SLP:style=Medium";
284 size: GENLIST_FONT_32_INC;
289 description { state: "selected" 0.0;
290 inherit: "default" 0.0;
291 color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
293 GENLIST_DESCRIPTION_FLIP_ENABLED
295 part { name: "elm.padding.text2.left";
300 description { state: "default" 0.0;
301 min: GENLIST_SIZE_32_INC 0;
303 rel1.to_x: "elm.text.2";
312 part { name: "elm.text.1";
317 description { state: "default" 0.0;
320 to_x: "elm.padding.left";
324 to_x: "elm.padding.text2.left";
327 color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
329 font: "SLP:style=Roman";
330 size: GENLIST_FONT_44_INC;
335 description { state: "selected" 0.0;
336 inherit: "default" 0.0;
337 color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
339 GENLIST_DESCRIPTION_FLIP_ENABLED
345 program { name: "go_active";
346 signal: "elm,state,selected";
348 action: STATE_SET "selected" 0.0;
350 target: "elm.text.1";
351 target: "elm.text.2";
353 program { name: "go_passive";
354 signal: "elm,state,unselected";
356 action: STATE_SET "default" 0.0;
358 target: "elm.text.1";
359 target: "elm.text.2";
360 transition: LINEAR 0.1;
362 program { name: "go_disabled";
363 signal: "elm,state,disabled";
365 action: STATE_SET "disabled" 0.0;
368 program { name: "go_enabled";
369 signal: "elm,state,enabled";
371 action: STATE_SET "default" 0.0;
374 GENLIST_PROGRAM_FLIP_2TEXT