apply FSL(Flora Software License)
[apps/home/libug-worldclock-efl.git] / res / theme / worldclock_macro.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 #define WCL_GENLIST_PART_BASE( param_item_height ) \
18          part { name: "base"; \
19             type: RECT; \
20             repeat_events: 1; \
21             scale: 1; \
22             description { state: "default" 0.0; \
23                min: 0 param_item_height; \
24                color: GENLIST_PART_BG_COLOR_INC; \
25             } \
26          }
27
28 #define WCL_GENLIST_PART_PADDING_TOP( param_padding_size ) \
29        part { name: "elm.padding.top"; \
30             type: RECT; \
31             scale: 1; \
32             description { \
33                state: "default" 0.0; \
34                min: 0 param_padding_size; \
35                fixed: 0 1; \
36                visible: 0; \
37                rel2.relative: 1.0 0.0; \
38                align: 0.0 0.0; \
39             } \
40          }
41
42 #define WCL_GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
43        part { name: "elm.padding.bottom"; \
44             type: RECT; \
45             scale: 1; \
46             description { state: "default" 0.0; \
47                min: 0 param_padding_size; \
48                fixed: 0 1; \
49                visible: 0; \
50                rel1.relative: 0.0 1.0; \
51                align: 0.0 1.0; \
52             } \
53          }
54
55 #define WCL_GENLIST_PART_PADDING_LEFT( param_padding_size ) \
56          part { name: "elm.padding.left"; \
57             type: RECT; \
58             scale: 1; \
59             description { state: "default" 0.0; \
60                min: param_padding_size 0; \
61                fixed: 1 0; \
62                visible: 0; \
63                rel2.relative: 0.0 1.0; \
64                align: 0.0 0.0; \
65             } \
66          }
67
68 #define WCL_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
69        part { name: "elm.padding.right"; \
70             type: RECT; \
71             scale: 1; \
72             description { state: "default" 0.0; \
73                min: param_padding_size 0; \
74                fixed: 1 0; \
75                visible: 0; \
76                rel1.relative: 1.0  0.0; \
77                align: 1.0 0.0; \
78             } \
79          }
80
81 #define PROGRAM_GENLIST_DEFAULT() \
82         program \
83         {\
84                 name:    "go_active"; \
85                 signal:  "elm,state,selected"; \
86                 source:  "elm"; \
87                 action:  STATE_SET "selected" 0.0; \
88                 target:  "bg_image"; \
89                 transition: LINEAR 0.1; \
90         } \
91         program \
92         { \
93                 name:    "go_passive"; \
94                 signal:  "elm,state,unselected"; \
95                 source:  "elm"; \
96                 action:  STATE_SET "default" 0.0; \
97                 target:  "bg_image"; \
98                 transition: LINEAR 0.1; \
99         }\
100         program \
101         { \
102                 name:    "go_disabled"; \
103                 signal:  "elm,state,disabled"; \
104                 source:  "elm"; \
105                 action:  STATE_SET "disabled" 0.0; \
106                 target:  "disclip"; \
107         }\
108         program \
109         {\
110                 name:    "go_enabled"; \
111                 signal:  "elm,state,enabled"; \
112                 source:  "elm"; \
113                 action:  STATE_SET "default" 0.0; \
114                 target:  "disclip"; \
115         }
116
117 #define WCL_GENLIST_PART_BOTTOM_LINE( bottom_line_color ) \
118         part { name: "bottom_line"; \
119                 type: RECT; \
120                 clip_to: "disclip"; \
121                 mouse_events: 0; \
122                 description { state: "default" 0.0; \
123                         min: 0 1; \
124                         fixed: 0 1; \
125                         visible: 1; \
126                         color: bottom_line_color; \
127                         rel1 { \
128                                 relative: 0.0 1.0; \
129                                 offset: 0 -1; \
130                         } \
131                 } \
132         }
133
134 #define WCL_GENLIST_PART_DISCLIP( disclip_disable_color ) \
135         part { name: "disclip"; \
136             type: RECT; \
137             description { state: "default" 0.0; \
138             } \
139             description { state: "disabled" 0.0; \
140                inherit: "default" 0.0; \
141                color: disclip_disable_color; \
142             } \
143          }
144