2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 name, "text_style_24_unfocused_left";
20 base, "font=TizenSans:style=Bold font_size=24 color=#ffffff align=left";
23 name, "text_style_24_focused_left";
24 base, "font=TizenSans:style=Bold font_size=24 color=#ffffff align=left";
27 name, "text_style_24_unfocused_center";
28 base, "font=TizenSans:style=Bold font_size=22 color=#ffffff align=center";
31 name, "text_style_24_focused_center";
32 base, "font=TizenSans:style=Bold font_size=22 color=#ffffff align=center";
35 name, "text_style_24_dim_center";
36 base, "font=TizenSans:style=Bold font_size=22 color=#bdbdbd align=center";
39 name, "text_style_32_unfocused_left";
40 base, "font=TizenSans font_size=32 color=#ffffff align=left";
43 name, "text_style_32_focused_left";
44 base, "font=TizenSans font_size=32 color=#ffffff align=left";
47 name, "text_style_40_unfocused_center";
48 base, "font=TizenSans font_size=40 color=#ffffff align=center";
51 name, "text_style_40_focused_center";
52 base, "font=TizenSans font_size=40 color=#ffffff align=center";
55 name, "text_style_20_unfocused_left";
56 base, "font=TizenSans font_size=20 color=#ffffff align=left";
59 name, "text_style_20_focused_left";
60 base, "font=TizenSans font_size=20 color=#ffffff align=left";
63 name, "text_style_22_center";
64 base, "font=TizenSans:style=Bold font_size=22 color=#79889b align=center";
67 name, "text_style_28_left";
68 base, "font=TizenSans font_size= 28 color=#45476C align=center";
73 name, "elm/label/base/slide_style_24_left";
75 public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
76 public message(Msg_Type:type, id, ...) {
77 if (type == MSG_FLOAT_SET) {
79 duration = getfarg(2);
80 set_float(g_duration, duration);
83 public slide_to_end_anim(val, Float:pos) {
86 stopflag = get_int(g_stopslide);
89 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
91 id = timer(0.5, "slide_to_begin", 1);
92 set_int(g_timer_id, id);
95 public slide_to_end() {
99 stopflag = get_int(g_stopslide);
102 duration = get_float(g_duration);
103 id = anim(duration, "slide_to_end_anim", 1);
104 set_int(g_anim_id, id);
106 public slide_to_begin() {
109 stopflag = get_int(g_stopslide);
110 if (stopflag == 1) return;
111 set_state(PART:"elm.text", "slide_begin", 0.0);
112 id = timer(0.5, "slide_to_end", 1);
113 set_int(g_timer_id, id);
115 public start_slide() {
116 set_int(g_stopslide, 0);
117 set_state(PART:"elm.text", "slide_begin", 0.0);
120 public stop_slide() {
122 set_int(g_stopslide, 1);
123 id = get_int(g_anim_id);
125 id = get_int(g_timer_id);
127 set_state(PART:"elm.text", "default", 0.0);
132 name, "label.text.clip";
135 state, "default" 0.0;
142 clip_to, "label.text.clip";
144 state, "default" 0.0;
145 rel1.relative, 0.0 0.0;
146 rel2.relative, 1.0 1.0;
149 style, "text_style_24_unfocused_left";
155 state, "slide_end" 0.0;
156 inherit, "default" 0.0;
157 rel1.relative, 1.0 0.0;
158 rel2.relative, 1.0 1.0;
161 style, "text_style_24_focused_left";
168 state, "slide_begin" 0.0;
169 inherit, "default" 0.0;
170 rel1.relative, 0.0 0.0;
171 rel2.relative, 0.0 1.0;
174 style, "text_style_24_focused_left";
185 signal, "elm,state,slide,start";
193 signal, "elm,state,slide,stop";
203 name, "elm/label/base/slide_style_20_left";
204 inherit, "elm/label/base/slide_style_24_left";
210 clip_to, "label.text.clip";
212 state, "default" 0.0;
213 rel1.relative, 0.0 0.0;
214 rel2.relative, 1.0 1.0;
217 style, "text_style_20_unfocused_left";
223 state, "slide_end" 0.0;
224 inherit, "default" 0.0;
225 rel1.relative, 1.0 0.0;
226 rel2.relative, 1.0 1.0;
229 style, "text_style_20_focused_left";
236 state, "slide_begin" 0.0;
237 inherit, "default" 0.0;
238 rel1.relative, 0.0 0.0;
239 rel2.relative, 0.0 1.0;
242 style, "text_style_20_focused_left";
250 inherit, "default" 0.0;
251 text.style, "text_style_20_unfocused_left";
252 color, 255 255 255 20;
258 signal, SIG_DIM_ITEM;
260 action, STATE_SET "dim" 0.0;
261 transition, LINEAR 0.2;
266 signal, SIG_UNDIM_ITEM;
268 action, STATE_SET "default" 0.0;
269 transition, LINEAR 0.2;
277 name, "elm/label/base/slide_style_40_center";
278 inherit, "elm/label/base/slide_style_24_left";
284 clip_to, "label.text.clip";
286 state, "default" 0.0;
287 rel1.relative, 0.0 0.0;
288 rel2.relative, 1.0 1.0;
291 style, "text_style_40_unfocused_center";
297 state, "slide_end" 0.0;
298 inherit, "default" 0.0;
299 rel1.relative, 1.0 0.0;
300 rel2.relative, 1.0 1.0;
303 style, "text_style_40_focused_center";
310 state, "slide_begin" 0.0;
311 inherit, "default" 0.0;
312 rel1.relative, 0.0 0.0;
313 rel2.relative, 0.0 1.0;
316 style, "text_style_40_focused_center";
324 inherit, "default" 0.0;
325 text.style, "text_style_40_unfocused_center";
326 color, 255 255 255 20;
332 signal, SIG_DIM_ITEM;
334 action, STATE_SET "dim" 0.0;
335 transition, LINEAR 0.2;
340 signal, SIG_UNDIM_ITEM;
342 action, STATE_SET "default" 0.0;
343 transition, LINEAR 0.2;
351 name, "elm/label/base/slide_style_32_left";
352 inherit, "elm/label/base/slide_style_24_left";
358 clip_to, "label.text.clip";
360 state, "default" 0.0;
361 rel1.relative, 0.0 0.0;
362 rel2.relative, 1.0 1.0;
365 style, "text_style_32_unfocused_left";
371 state, "slide_end" 0.0;
372 inherit, "default" 0.0;
373 rel1.relative, 1.0 0.0;
374 rel2.relative, 1.0 1.0;
377 style, "text_style_32_focused_left";
384 state, "slide_begin" 0.0;
385 inherit, "default" 0.0;
386 rel1.relative, 0.0 0.0;
387 rel2.relative, 0.0 1.0;
390 style, "text_style_32_focused_left";
398 inherit, "default" 0.0;
399 text.style, "text_style_32_unfocused_left";
400 color, 255 255 255 20;
406 signal, SIG_DIM_ITEM;
408 action, STATE_SET "dim" 0.0;
409 transition, LINEAR 0.2;
414 signal, SIG_UNDIM_ITEM;
416 action, STATE_SET "default" 0.0;
417 transition, LINEAR 0.2;
425 name, "elm/label/base/slide_style_24_center";
426 inherit, "elm/label/base/slide_style_24_left";
432 clip_to, "label.text.clip";
434 state, "default" 0.0;
435 rel1.relative, 0.0 0.0;
436 rel2.relative, 1.0 1.0;
439 style, "text_style_24_unfocused_center";
445 state, "slide_end" 0.0;
446 inherit, "default" 0.0;
447 rel1.relative, 1.0 0.0;
448 rel2.relative, 1.0 1.0;
451 style, "text_style_24_focused_center";
458 state, "slide_begin" 0.0;
459 inherit, "default" 0.0;
460 rel1.relative, 0.0 0.0;
461 rel2.relative, 0.0 1.0;
464 style, "text_style_24_focused_center";
472 inherit, "default" 0.0;
473 text.style, "text_style_24_dim_center";
474 color, 255 255 255 20;
480 signal, SIG_DIM_ITEM;
482 action, STATE_SET "dim" 0.0;
483 transition, LINEAR 0.2;
488 signal, SIG_UNDIM_ITEM;
490 action, STATE_SET "default" 0.0;
491 transition, LINEAR 0.2;
499 name, "elm/label/base/slide_style_22_center";
500 inherit, "elm/label/base/slide_style_24_left";
506 clip_to, "label.text.clip";
508 state, "default" 0.0;
509 rel1.relative, 0.0 0.0;
510 rel2.relative, 1.0 1.0;
513 style, "text_style_22_center";
519 state, "slide_end" 0.0;
520 inherit, "default" 0.0;
521 rel1.relative, 1.0 0.0;
522 rel2.relative, 1.0 1.0;
525 style, "text_style_22_center";
532 state, "slide_begin" 0.0;
533 inherit, "default" 0.0;
534 rel1.relative, 0.0 0.0;
535 rel2.relative, 0.0 1.0;
538 style, "text_style_22_center";
549 name, "elm/label/base/slide_style_28_left";
550 inherit, "elm/label/base/slide_style_24_left";
556 clip_to, "label.text.clip";
558 state, "default" 0.0;
559 rel1.relative, 0.0 0.0;
560 rel2.relative, 1.0 1.0;
563 style, "text_style_28_left";
569 state, "slide_end" 0.0;
570 inherit, "default" 0.0;
571 rel1.relative, 1.0 0.0;
572 rel2.relative, 1.0 1.0;
575 style, "text_style_28_left";
582 state, "slide_begin" 0.0;
583 inherit, "default" 0.0;
584 rel1.relative, 0.0 0.0;
585 rel2.relative, 0.0 1.0;
588 style, "text_style_28_left";