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 EDIT_GL_STYLE(iStyle, iX2TextBlock) \
18 group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
19 alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
20 data.item: "stacking" "above"; \
21 data.item: "selectraise" "on"; \
22 data.item: "texts" "elm.text elm.text.date"; \
23 data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
24 data.item: "treesize" "20"; \
27 PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
36 state: "default" 0.0; \
38 min: (iX2TextBlock-16-96-16) 56; \
39 max: (iX2TextBlock-16-96-16) 56; \
41 rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
42 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
45 style: "textblock_style_main"; \
50 PART_TEXT_DATE("elm.text.date", (16+96+16)/720, (128-16-32)/128, "bg", (720-16)/720, (128-16)/128, "bg", "", "Helvetica Neue:style=Medium", 32) \
51 PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
52 GENLIST_PART_BOTTOM_LINE \
53 PART_EVENT_RECT("event", "bg") \
61 SCRIPT_CUSTOM_PART(bg);\
62 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
68 signal: "elm,state,selected"; \
71 SCRIPT_SET_COLOR(bg, 50, 50, 50, 255);\
73 transition: LINEAR 0.1; \
78 signal: "elm,state,unselected"; \
81 SCRIPT_SET_COLOR(bg, 0, 0, 0, 255);\
83 transition: LINEAR 0.1; \
88 EDIT_GL_STYLE("list", (720-16))
89 EDIT_GL_STYLE("list_draw", (720-16-96-16))