3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.tizenopensource.org/license
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #define EDIT_GL_STYLE(iStyle, iX2TextBlock) \
20 group { name: "elm/genlist/item/memo/edit/"iStyle"/default"; \
21 alias: "elm/genlist/item_odd/memo/edit/"iStyle"/default"; \
22 data.item: "stacking" "above"; \
23 data.item: "selectraise" "on"; \
24 data.item: "texts" "elm.text elm.text.date"; \
25 data.item: "contents" "elm.swallow.doodle elm.swallow.check"; \
26 data.item: "treesize" "20"; \
29 PART_SWALLOW_REL("elm.swallow.check", 16/720, 16/128, "bg", (16+96)/720, (128-16)/128, "bg") \
38 state: "default" 0.0; \
40 min: (iX2TextBlock-16-96-16) 56; \
41 max: (iX2TextBlock-16-96-16) 56; \
43 rel1 { relative: (16+96+16)/720 16/128; to: "bg"; } \
44 rel2 { relative: iX2TextBlock/720 (128-16-32-8)/128; to: "bg"; } \
47 style: "textblock_style_main"; \
52 PART_TEXT_DATE("elm.text.date", (16+96+16)/720, (128-16-32)/128, "bg", (720-16)/720, (128-16)/128, "bg", "", "SLP:style=Medium", "slp_medium", 32) \
53 PART_SWALLOW_REL("elm.swallow.doodle", (720-16-96)/720, 16/128, "bg", (720-16)/720, (128-16)/128, "bg") \
54 GENLIST_PART_BOTTOM_LINE \
55 PART_EVENT_RECT("event", "bg") \
63 SCRIPT_CUSTOM_PART(bg);\
64 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
70 signal: "elm,state,selected"; \
73 SCRIPT_SET_COLOR(bg, 42, 137, 194, 255);\
75 transition: LINEAR 0.1; \
80 signal: "elm,state,unselected"; \
83 SCRIPT_SET_COLOR(bg, 249, 249, 249, 255);\
85 transition: LINEAR 0.1; \
90 EDIT_GL_STYLE("list", (720-16))
91 EDIT_GL_STYLE("list_draw", (720-16-96-16))