summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/efl/text.edc
blob: 5ee4227586fa3bfd520e9fc11cdc72d461d67f5e (plain) (blame)
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
327
328
group { "efl/text/scroller";
   inherit: "elm/scroller/entry/default";
}

group { "efl/text/single/scroller";
   inherit: "elm/scroller/entry_single/default";
}

group { "efl/text/cursor";
   inherit: "elm/entry/cursor/default";
   alias: "efl/text/single/cursor";
   alias: "efl/text/charwrap/cursor";
   alias: "efl/text/mixedwrap/cursor";
   alias: "efl/text/nowrap/cursor";
   alias: "efl/text/noedit/cursor";
   alias: "efl/text/single-noedit/cursor";
   alias: "efl/text/noedit-charwrap/cursor";
   alias: "efl/text/noedit-mixedwrap/cursor";
   alias: "efl/text/nowrap-noedit/cursor";
}

group { "efl/text/selection";
   inherit: "elm/entry/selection/default";
   alias: "efl/text/single/selection";
   alias: "efl/text/charwrap/selection";
   alias: "efl/text/mixedwrap/selection";
   alias: "efl/text/nowrap/selection";
   alias: "efl/text/noedit/selection";
   alias: "efl/text/single-noedit/selection";
   alias: "efl/text/noedit-charwrap/selection";
   alias: "efl/text/noedit-mixedwrap/selection";
   alias: "efl/text/nowrap-noedit/selection";
}

group { "efl/text/anchor";
   inherit: "elm/entry/anchor/default";
   alias: "efl/text/single/anchor";
   alias: "efl/text/charwrap/anchor";
   alias: "efl/text/mixedwrap/anchor";
   alias: "efl/text/nowrap/anchor";
   alias: "efl/text/noedit/anchor";
   alias: "efl/text/single-noedit/anchor";
   alias: "efl/text/noedit-charwrap/anchor";
   alias: "efl/text/noedit-mixedwrap/anchor";
   alias: "efl/text/nowrap-noedit/anchor";
}

group { "efl/text";
   inherit: "elm/entry/base/default";
   alias: "efl/text/mixedwrap";
   alias: "efl/text/charwrap";
   alias: "efl/text/nowrap";
   alias: "efl/text/single";
   alias: "efl/text/single-noedit";
   alias: "efl/text/noedit";
   alias: "efl/text/noedit-mixedwrap";
   alias: "efl/text/noedit-charwrap";
   alias: "efl/text/nowrap-noedit";
   alias: "efl/text/password";
   sounds {
      sample { name: "key-tap1" LOSSY 64;
         source: "kbd-tap.wav";
      }
      sample { name: "key-tap2" LOSSY 64;
         source: "kbd-tap2.wav";
      }
      sample { name: "key-tap3" LOSSY 64;
         source: "kbd-tap3.wav";
      }
      sample { name: "key-tap4" LOSSY 64;
         source: "kbd-tap4.wav";
      }
      sample { name: "key-tap5" LOSSY 64;
         source: "kbd-tap5.wav";
      }
   }

//   data.item: "context_menu_orientation" "horizontal";
   parts {
      part { name: "elm.swallow.background"; type: SWALLOW;
         description { state: "default" 0.0;
            rel1.offset: 1 1;
            rel2.offset: -2 -2;
         }
      }
      part { name: "elm.text"; type: SWALLOW;
         scale: 1;
         entry_mode: EDITABLE;
         select_mode: DEFAULT;
//         select_mode: EXPLICIT;
         cursor_mode: BEFORE;
         multiline: 1;
         source: "efl/text/selection"; // selection under
//         source2: "X"; // selection over
//         source3: "X"; // cursor under
         source4: "efl/text/cursor"; // cursorover
//         source5: "efl/text/anchor"; // anchor under
         source6: "efl/text/anchor"; // anchor over
         description { state: "default" 0.0;
            /* we gotta use 0 0 here, because of scrolled entries */
            fixed: 0 0;
            rel1.offset: 2 2;
            rel2.offset: -3 -3;
         }
         description { state: "disabled" 0.0;
            inherit: "default" 0.0;
         }
      }
   }
   programs {
      program {
         signal: "load"; source: "";
         action: FOCUS_SET;
         target: "elm.text";
      }
      program {
         signal: "elm,state,disabled"; source: "elm";
         action: STATE_SET "disabled" 0.0;
         target: "elm.text";
      }
      program {
         signal: "elm,state,enabled"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.text";
      }
      #if 0
      program {
         signal: "elm,guide,disabled"; source: "elm";
         action: STATE_SET "hidden" 0.0;
         target: "elm.guide";
      }
      program {
         signal: "elm,guide,enabled"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.guide";
      }
      #endif
      program { name: "key-down";
         signal: "entry,keydown"; source: "elm.text";
         script {
            new buf[32];
            snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
            run_program(get_program_id(buf));
         }
      }
      program { name: "key-down1";
         action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
      }
      program { name: "key-down2";
         action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
      }
      program { name: "key-down3";
         action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
      }
      program { name: "key-down4";
         action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
      }
      program { name: "key-down5";
         action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
      }
   }
}

group { "efl/text/magnifier";
   inherit: "elm/entry/magnifier/default";
   alias: "efl/text/single/magnifier";
   alias: "efl/text/charwrap/magnifier";
   alias: "efl/text/mixedwrap/magnifier";
   alias: "efl/text/nowrap/magnifier";
   alias: "efl/text/noedit/magnifier";
   alias: "efl/text/single-noedit/magnifier";
   alias: "efl/text/noedit-charwrap/magnifier";
   alias: "efl/text/noedit-mixedwrap/magnifier";
   alias: "efl/text/nowrap-noedit/magnifier";
}

group { "efl/text/handler/start";
   inherit: "elm/entry/handler/start/default";
   alias: "efl/text/single/handler/start";
   alias: "efl/text/charwrap/handler/start";
   alias: "efl/text/mixedwrap/handler/start";
   alias: "efl/text/nowrap/handler/start";
   alias: "efl/text/noedit/handler/start";
   alias: "efl/text/single-noedit/handler/start";
   alias: "efl/text/noedit-charwrap/handler/start";
   alias: "efl/text/noedit-mixedwrap/handler/start";
   alias: "efl/text/nowrap-noedit/handler/start";
}

group { "efl/text/handler/end";
   inherit: "elm/entry/handler/end/default";
   alias: "efl/text/single/handler/end";
   alias: "efl/text/charwrap/handler/end";
   alias: "efl/text/mixedwrap/handler/end";
   alias: "efl/text/nowrap/handler/end";
   alias: "efl/text/noedit/handler/end";
   alias: "efl/text/single-noedit/handler/end";
   alias: "efl/text/noedit-charwrap/handler/end";
   alias: "efl/text/noedit-mixedwrap/handler/end";
   alias: "efl/text/nowrap-noedit/handler/end";
}

///////////////////////////////////////////////////////////////////////////////
// emoticon images from:
// Tanya - Latvia
// http://lazycrazy.deviantart.com/
// http://lazycrazy.deviantart.com/art/Very-Emotional-Emoticons-144461621
group { "efl/text/emoticon/angry"; images.image:
   "emo-angry.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-angry.png"; } } } }
group { "efl/text/emoticon/angry-shout"; images.image:
   "emo-angry-shout.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-angry-shout.png"; } } } }
group { "efl/text/emoticon/crazy-laugh"; images.image:
   "emo-crazy-laugh.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-crazy-laugh.png"; } } } }
group { "efl/text/emoticon/evil-laugh"; images.image:
   "emo-evil-laugh.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-evil-laugh.png"; } } } }
group { "efl/text/emoticon/evil"; images.image:
   "emo-evil.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-evil.png"; } } } }
group { "efl/text/emoticon/goggle-smile"; images.image:
   "emo-goggle-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-goggle-smile.png"; } } } }
group { "efl/text/emoticon/grumpy"; images.image:
   "emo-grumpy.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-grumpy.png"; } } } }
group { "efl/text/emoticon/grumpy-smile"; images.image:
   "emo-grumpy-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-grumpy-smile.png"; } } } }
group { "efl/text/emoticon/guilty"; images.image:
   "emo-guilty.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-guilty.png"; } } } }
group { "efl/text/emoticon/guilty-smile"; images.image:
   "emo-guilty-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-guilty-smile.png"; } } } }
group { "efl/text/emoticon/haha"; images.image:
   "emo-haha.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-haha.png"; } } } }
group { "efl/text/emoticon/half-smile"; images.image:
   "emo-half-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-half-smile.png"; } } } }
group { "efl/text/emoticon/happy-panting"; images.image:
   "emo-happy-panting.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-happy-panting.png"; } } } }
group { "efl/text/emoticon/happy"; images.image:
   "emo-happy.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-happy.png"; } } } }
group { "efl/text/emoticon/indifferent"; images.image:
   "emo-indifferent.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-indifferent.png"; } } } }
group { "efl/text/emoticon/kiss"; images.image:
   "emo-kiss.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-kiss.png"; } } } }
group { "efl/text/emoticon/knowing-grin"; images.image:
   "emo-knowing-grin.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-knowing-grin.png"; } } } }
group { "efl/text/emoticon/laugh"; images.image:
   "emo-laugh.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-laugh.png"; } } } }
group { "efl/text/emoticon/little-bit-sorry"; images.image:
   "emo-little-bit-sorry.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-little-bit-sorry.png"; } } } }
group { "efl/text/emoticon/love-lots"; images.image:
   "emo-love-lots.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-love-lots.png"; } } } }
group { "efl/text/emoticon/love"; images.image:
   "emo-love.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-love.png"; } } } }
group { "efl/text/emoticon/minimal-smile"; images.image:
   "emo-minimal-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-minimal-smile.png"; } } } }
group { "efl/text/emoticon/not-happy"; images.image:
   "emo-not-happy.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-not-happy.png"; } } } }
group { "efl/text/emoticon/not-impressed"; images.image:
   "emo-not-impressed.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-not-impressed.png"; } } } }
group { "efl/text/emoticon/omg"; images.image:
   "emo-omg.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-omg.png"; } } } }
group { "efl/text/emoticon/opensmile"; images.image:
   "emo-opensmile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-opensmile.png"; } } } }
group { "efl/text/emoticon/smile"; images.image:
   "emo-smile.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-smile.png"; } } } }
group { "efl/text/emoticon/sorry"; images.image:
   "emo-sorry.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-sorry.png"; } } } }
group { "efl/text/emoticon/squint-laugh"; images.image:
   "emo-squint-laugh.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-squint-laugh.png"; } } } }
group { "efl/text/emoticon/surprised"; images.image:
   "emo-surprised.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-surprised.png"; } } } }
group { "efl/text/emoticon/suspicious"; images.image:
   "emo-suspicious.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-suspicious.png"; } } } }
group { "efl/text/emoticon/tongue-dangling"; images.image:
   "emo-tongue-dangling.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-tongue-dangling.png"; } } } }
group { "efl/text/emoticon/tongue-poke"; images.image:
   "emo-tongue-poke.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-tongue-poke.png"; } } } }
group { "efl/text/emoticon/uh"; images.image:
   "emo-uh.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-uh.png"; } } } }
group { "efl/text/emoticon/unhappy"; images.image:
   "emo-unhappy.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-unhappy.png"; } } } }
group { "efl/text/emoticon/very-sorry"; images.image:
   "emo-very-sorry.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-very-sorry.png"; } } } }
group { "efl/text/emoticon/what"; images.image:
   "emo-what.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-what.png"; } } } }
group { "efl/text/emoticon/wink"; images.image:
   "emo-wink.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-wink.png"; } } } }
group { "efl/text/emoticon/worried"; images.image:
   "emo-worried.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-worried.png"; } } } }
group { "efl/text/emoticon/wtf"; images.image:
   "emo-wtf.png" COMP; parts { part { "icon"; nomouse; desc { "default"; max: 64 64; image.normal:
            "emo-wtf.png"; } } } }
//------------------------------------------------------------