summaryrefslogtreecommitdiff
path: root/data/groups/search_custom_ctxpopup_item.edc
blob: c9c0e3e3ac460d0aaded7805004a94e8e40111b5 (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
/*
 * Copyright 2012-2013 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://floralicense.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.
 */

///////////////////////////////////////////////////////////////////////////////////////
//
// ctxpopup
//
///////////////////////////////////////////////////////////////////////////////////////

#define CTXPOPUP_SHADOW_PADDING 10
#define CTXPOPUP_FRAME_CORNER_SIZE 4 4
#define CTXPOPUP_FONT_COLOR 0 0 0 255
#define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
#define CTXPOPUP_ITEM_DISABLED_COLOR 200 200 200 127
#define CTXPOPUP_LIST_PADDING 10
#define CTXPOPUP_LIST_SHADOW_PADDING 3

#define CTXPOPUP_WIDTH_MIN_INC 386
#define CTXPOPUP_CONTENT_PADDING 4
#define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 20
#define CTXPOPUP_BG_COLOR_INC 0 0 0 0
#define CTXPOPUP_BG_PRESS_COLOR_INC 42 137 194 255
#define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1
#define CTXPOPUP_SEPARATOR_PADDING_INC 20
#define CTXPOPUP_SEPARATOR_COLOR_INC 45 45 45 255
#define CTXPOPUP_SEPARATOR2_COLOR_INC 91 91 91 255
#define CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC 45 45 45 255
#define CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC 91 91 91 255
#define CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC 1 74
#define CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC 1 74
#define CTXPOPUP_TP_BG_COLOR_INC 7 180 211 255
#define CTXPOPUP_ITEM_TEXT_SIZE_INC 40
#define CTXPOPUP_ITEM_MAIN_TEXT_SIZE_INC 32
#define CTXPOPUP_ITEM_HEIGHT_INC 110
#define CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC 128
#define CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC 96
#define CTXPOPUP_ICON_WIDTH_INC 64
#define CTXPOPUP_ICON_HEIGHT_INC 64
#define CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC 128
#define CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC 96
#define CTXPOPUP_ARROW_SIZE_INC 48 48
#define CTXPOPUP_VERTICAL_ARROW_SIZE_INC 40 30
#define CTXPOPUP_HORIZONTAL_ARROW_SIZE_INC 30 40
#define CTXPOPUP_ITEM_TEXT_PADDING_INC 20
#define CTXPOPUP_ITEM_ICON_PADDING_INC 16


///////////////////////////////////////////////////////////////////////////////
	group {
		name: "elm/ctxpopup/icon_style_item/default";
		parts {
			part {
				name: "event_blocker";
				mouse_events: 1;
				description {
					state: "default" 0.0;
					color: 0 0 0 0;
				}
			}
			part {
				name: "bg";
				scale: 1;
				mouse_events: 0;
				type: RECT;
				description {
					state: "default" 0.0;
					color: CTXPOPUP_BG_COLOR_INC;
					visible: 1;
					min: CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
					max: CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
				}
				description {
					state: "clicked" 0.0;
					color: CTXPOPUP_BG_PRESS_COLOR_INC;
					visible: 1;
				}
			}
			part {
				name: "left_padding";
				scale: 1;
				description {
					min: ((CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
					max: ((CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
					visible: 1;
					align: 0 0;
					color: 0 255 0 255;
					fixed: 1 1;
				}
			}
			part {
				name: "separator1";
				mouse_events: 0;
				type: RECT;
				scale: 1;
				description {
					state: "default" 0.0;
					color: CTXPOPUP_SEPARATOR_COLOR_INC;
					align: 0 0.5;
					min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
					max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
					visible: 1;
				}
				description {
					state: "visible" 0.0;
					inherit: "default" 0.0;
					visible: 1;
				}
			}
			part {
				name: "separator2";
				mouse_events: 1;
				type: RECT;
				scale: 1;
				description {
					state: "default" 0.0;
					color: CTXPOPUP_SEPARATOR2_COLOR_INC;
					rel1 { relative: 1.0 0.0; to_x: "separator1"; }
					align: 0 0.5;
					min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
					max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
					visible: 0;
				}
				description {
					state: "visible" 0.0;
					inherit: "default" 0.0;
					visible: 1;
				}
			}
			part {
				name: "elm.swallow.icon";
				type: SWALLOW;
				scale: 1;
				description {
					state: "default" 0.0;
					min: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
					max: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
					align: 0.5 0.5;
					aspect: 1.0 1.0;
					rel1 { relative: 1 0; to_x: "left_padding"; }
					rel2 { relative: 0 1; to_x: "right_padding"; }
				}
			}
			part {
				name: "right_padding";
				scale: 1;
				description {
					min: ((CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
					max: ((CTXPOPUP_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-(CTXPOPUP_CONTENT_PADDING*2));
					visible: 1;
					color: 0 0 255 255;
					align: 1 1;
					fixed: 1 1;
				}
			}
			part {
				name: "over1";
				mouse_events: 1;
				repeat_events: 1;
				description {
					state: "default" 0.0;
				}
			}
			part {
				name: "over2";
				mouse_events: 1;
				repeat_events: 1;
				description {
					state: "default" 0.0;
				}
			}
			part {
				name: "disclip";
				type: RECT;
				description {
					state: "default" 0.0;
					visible: 0;
				}
				description {
					state: "disabled" 0.0;
					visible: 1;
					color: CTXPOPUP_ITEM_DISABLED_COLOR;
				}
			}
		}
		programs {
			program {
				name: "default";
				signal: "elm,state,default";
				source: "elm";
				script {
					set_state(PART:"separator1", "default", 0.0);
					set_state(PART:"separator2", "default", 0.0);
				}
			}
			program {
				name: "separator";
				signal: "elm,state,separator";
				source: "elm";
				script {
					set_state(PART:"separator1", "visible", 0.0);
					set_state(PART:"separator2", "visible", 0.0);
				}
			}
			program {
				name: "item_unclick";
				signal: "mouse,clicked,1";
				source: "over1";
				action: SIGNAL_EMIT "elm,action,click" "";
			}
			program {
				name: "disable";
				signal: "elm,state,disabled";
				source: "elm";
				action: STATE_SET "disabled" 0.0;
				target: "disclip";
			}
			program {
				name: "enable";
				signal: "elm,state,enabled";
				source: "elm";
				action: STATE_SET "default" 0.0;
				target: "disclip";
			}
			program {
				name: "item_click2";
				signal: "mouse,down,1";
				source: "over2";
				script {
					set_state(PART:"bg", "clicked", 0.0);
				}
			}
			program {
				name: "item_unclick2";
				signal: "mouse,up,1";
				source: "over2";
				script {
					set_state(PART:"bg", "default", 0.0);
				}
			}
		}
	}