summaryrefslogtreecommitdiff
path: root/composer/theme/email-composer-edc-common.edc
blob: 8917ff3c6e64b555294cc688f6980d5bb1dc476d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#define PART_BG(pName) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			color: 0 0 0 0; \
		} \
	}

#define PART_RECT(pName, pR1x, pR1y, pR1xt, pR1yt, pR2x, pR2y, pR2xt, pR2yt) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: pR1x pR1y; to_x: pR1xt; to_y: pR1yt; } \
			rel2 { relative: pR2x pR2y; to_x: pR2xt; to_y: pR2yt; } \
			color: 0 0 0 0; \
		} \
	}

#define PART_PIXEL_RECT(pName, pX, pY, pAx, pAy, pRx, pRy, pRt) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			min: pX pY; \
			align: pAx pAy; \
			rel1 { relative: pRx pRy; to: pRt; } \
			rel2 { relative: pRx pRy; to: pRt; } \
			color: 0 0 0 0; \
		} \
	}

#define PART_PIXEL_RECT_EX(pName, pX, pY, pAx, pAy, pR1x, pR1y, pR2x, pR2y, pRt) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			min: pX pY; \
			align: pAx pAy; \
			rel1 { relative: pR1x pR1y; to: pRt; } \
			rel2 { relative: pR2x pR2y; to: pRt; } \
			color: 0 0 0 0; \
		} \
	}


#define PART_V_PIXEL_RECT(pName, pY, pAy, pRy, pRt) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			min: 0 pY; \
			fixed: 0 1; \
			align: 0.5 pAy; \
			rel1 { relative: 0.0 pRy; to: pRt; } \
			rel2 { relative: 1.0 pRy; to: pRt; } \
			color: 0 0 0 0; \
		} \
	}

#define PART_H_PIXEL_RECT(pName, pX, pAx, pRx, pRt) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			min: pX 0; \
			fixed: 1 0; \
			align: pAx 0.5; \
			rel1 { relative: pRx 0.0; to: pRt; } \
			rel2 { relative: pRx 1.0; to: pRt; } \
			color: 0 0 0 0; \
		} \
	}

#define PART_SWALLOW(pName, pTo) \
	part { \
		name: pName; \
		type: SWALLOW; \
		mouse_events: 1; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
		} \
	}

#define PART_EVENT_RECT(pName, pTo) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 1; \
		repeat_events: 1; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
			color: 0 0 0 0; \
			visible: 1; \
		} \
		description { \
			state: "disabled" 0.0; \
			inherit: "default" 0.0; \
			visible: 0; \
		} \
	}

#define PART_COLOR_RECT(pName, pCr, pCg, pCb, pCa, pTo) \
	part { \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
			color: pCr pCg pCb pCa; \
		} \
	}

#define PART_TEXT(pName, pTo, pString, pFont, pClass, pSize, pAx, pAy, pCr, pCg, pCb, pCa) \
	part { \
		name: pName; \
		type: TEXT; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
			text { \
				text: pString; \
				font: pFont; \
				text_class: pClass; \
				size: pSize; \
				align: pAx pAy; \
			} \
			color: pCr pCg pCb pCa; \
		} \
	}

#define PART_IMAGE(pName, pTo, pImage) \
	part { \
		name: pName; \
		type: IMAGE; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
			image.normal: pImage; \
		} \
	}

#define PART_BORDER_IMAGE(pName, pTo, pImage, pL, pR, pT, pB) \
	part { \
		name: pName; \
		type: IMAGE; \
		mouse_events: 0; \
		scale: 1; \
		description { \
			state: "default" 0.0; \
			rel1 { relative: 0.0 0.0; to: pTo; } \
			rel2 { relative: 1.0 1.0; to: pTo; } \
			image.normal: pImage; \
			image.border: pL pR pT pB; \
		} \
	}

#define PART_TOP_LINE(pName, pTo) \
	part \
	{ \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		description { \
			state: "default" 0.0; \
			min: 0 1; \
			fixed: 0 1; \
			visible: 1; \
			color: 187 187 187 255; \
			rel1 { relative: 0.0 0.0; to: pTo; offset: 0 0; } \
			rel2 { relative: 1.0 0.0; to: pTo; offset: 0 0; } \
		} \
	} \

#define PART_LEFT_LINE(pName, pTo) \
	part \
	{ \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		description { \
			state: "default" 0.0; \
			min: 1 0; \
			fixed: 1 0; \
			visible: 1; \
			color: 187 187 187 255; \
			rel1 { relative: 0.0 0.0; to: pTo; offset: 0 0; } \
			rel2 { relative: 0.0 1.0; to: pTo; offset: 0 0; } \
		} \
	} \

#define PART_RIGHT_LINE(pName, pTo) \
	part \
	{ \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		description { \
			state: "default" 0.0; \
			min: 1 0; \
			fixed: 1 0; \
			visible: 1; \
			color: 187 187 187 255; \
			rel1 { relative: 1.0 0.0; to: pTo; offset: 0 0; } \
			rel2 { relative: 1.0 1.0; to: pTo; offset: 0 0; } \
		} \
	} \

#define PART_BOTTOM_LINE(pName, pTo) \
	part \
	{ \
		name: pName; \
		type: RECT; \
		mouse_events: 0; \
		description { \
			state: "default" 0.0; \
			min: 0 1; \
			fixed: 0 1; \
			visible: 1; \
			color: 187 187 187 255; \
			rel1 { relative: 0.0 1.0; to: pTo; offset: 0 0; } \
			rel2 { relative: 1.0 1.0; to: pTo; offset: 0 0; } \
		} \
	} \

#define PART_PADDING_TOP(pName, pSize, pTo) \
	PART_V_PIXEL_RECT(pName, pSize, 0.0, 0.0, pTo)

#define PART_PADDING_BOTTOM(pName, pSize, pTo) \
	PART_V_PIXEL_RECT(pName, pSize, 1.0, 1.0, pTo)

#define PART_PADDING_LEFT(pName, pSize, pTo) \
	PART_H_PIXEL_RECT(pName, pSize, 0.0, 0.0, pTo)

#define PART_PADDING_RIGHT(pName, pSize, pTo) \
	PART_H_PIXEL_RECT(pName, pSize, 1.0, 1.0, pTo)

#define SCRIPT_CUSTOM_PART(pPart) \
	custom_state(PART:pPart, "default", 0.0); \
	set_state(PART:pPart, "custom", 0.0);

#define SCRIPT_SET_IMAGE(pPart, pVal) \
	set_state_val(PART:pPart, STATE_IMAGE, IMAGE:pVal);

#define SCRIPT_SET_VISIBLE(pPart, pVal) \
	set_state_val(PART:pPart, STATE_VISIBLE, pVal);

#define SCRIPT_SET_STATE_DISABLED(pPart) \
	set_state(PART:pPart, "disabled", 0.0);

#define SCRIPT_SET_STATE_DEFAULT(pPart) \
	set_state(PART:pPart, "default", 0.0);

#define SCRIPT_SET_STATE_SHOW(pPart) \
	set_state(PART:pPart, "show", 0.0);

#define PROGRAM_SET_VISIBLE(pName, pSignal, pSource, pPart) \
	program { \
		name: pName; \
		signal: pSignal; \
		source: pSource; \
		script { \
			SCRIPT_SET_STATE_SHOW(pPart) \
		} \
	}

#define PROGRAM_SET_INVISIBLE(pName, pSignal, pSource, pPart) \
	program { \
		name: pName; \
		signal: pSignal; \
		source: pSource; \
		script { \
			SCRIPT_SET_STATE_DEFAULT(pPart) \
		} \
	}