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";
167 state, "slide_begin" 0.0;
168 inherit, "default" 0.0;
169 rel1.relative, 0.0 0.0;
170 rel2.relative, 0.0 1.0;
173 style, "text_style_24_focused_left";
183 signal, "elm,state,slide,start";
191 signal, "elm,state,slide,stop";
201 name, "elm/label/base/slide_style_20_left";
202 inherit, "elm/label/base/slide_style_24_left";
208 clip_to, "label.text.clip";
210 state, "default" 0.0;
211 rel1.relative, 0.0 0.0;
212 rel2.relative, 1.0 1.0;
215 style, "text_style_20_unfocused_left";
221 state, "slide_end" 0.0;
222 inherit, "default" 0.0;
223 rel1.relative, 1.0 0.0;
224 rel2.relative, 1.0 1.0;
227 style, "text_style_20_focused_left";
233 state, "slide_begin" 0.0;
234 inherit, "default" 0.0;
235 rel1.relative, 0.0 0.0;
236 rel2.relative, 0.0 1.0;
239 style, "text_style_20_focused_left";
246 inherit, "default" 0.0;
247 text.style, "text_style_20_unfocused_left";
248 color, 255 255 255 20;
254 signal, SIG_DIM_ITEM;
256 action, STATE_SET "dim" 0.0;
257 transition, LINEAR 0.2;
262 signal, SIG_UNDIM_ITEM;
264 action, STATE_SET "default" 0.0;
265 transition, LINEAR 0.2;
273 name, "elm/label/base/slide_style_40_center";
274 inherit, "elm/label/base/slide_style_24_left";
280 clip_to, "label.text.clip";
282 state, "default" 0.0;
283 rel1.relative, 0.0 0.0;
284 rel2.relative, 1.0 1.0;
287 style, "text_style_40_unfocused_center";
293 state, "slide_end" 0.0;
294 inherit, "default" 0.0;
295 rel1.relative, 1.0 0.0;
296 rel2.relative, 1.0 1.0;
299 style, "text_style_40_focused_center";
305 state, "slide_begin" 0.0;
306 inherit, "default" 0.0;
307 rel1.relative, 0.0 0.0;
308 rel2.relative, 0.0 1.0;
311 style, "text_style_40_focused_center";
318 inherit, "default" 0.0;
319 text.style, "text_style_40_unfocused_center";
320 color, 255 255 255 20;
326 signal, SIG_DIM_ITEM;
328 action, STATE_SET "dim" 0.0;
329 transition, LINEAR 0.2;
334 signal, SIG_UNDIM_ITEM;
336 action, STATE_SET "default" 0.0;
337 transition, LINEAR 0.2;
345 name, "elm/label/base/slide_style_32_left";
346 inherit, "elm/label/base/slide_style_24_left";
352 clip_to, "label.text.clip";
354 state, "default" 0.0;
355 rel1.relative, 0.0 0.0;
356 rel2.relative, 1.0 1.0;
359 style, "text_style_32_unfocused_left";
365 state, "slide_end" 0.0;
366 inherit, "default" 0.0;
367 rel1.relative, 1.0 0.0;
368 rel2.relative, 1.0 1.0;
371 style, "text_style_32_focused_left";
377 state, "slide_begin" 0.0;
378 inherit, "default" 0.0;
379 rel1.relative, 0.0 0.0;
380 rel2.relative, 0.0 1.0;
383 style, "text_style_32_focused_left";
390 inherit, "default" 0.0;
391 text.style, "text_style_32_unfocused_left";
392 color, 255 255 255 20;
398 signal, SIG_DIM_ITEM;
400 action, STATE_SET "dim" 0.0;
401 transition, LINEAR 0.2;
406 signal, SIG_UNDIM_ITEM;
408 action, STATE_SET "default" 0.0;
409 transition, LINEAR 0.2;
417 name, "elm/label/base/slide_style_24_center";
418 inherit, "elm/label/base/slide_style_24_left";
424 clip_to, "label.text.clip";
426 state, "default" 0.0;
427 rel1.relative, 0.0 0.0;
428 rel2.relative, 1.0 1.0;
431 style, "text_style_24_unfocused_center";
437 state, "slide_end" 0.0;
438 inherit, "default" 0.0;
439 rel1.relative, 1.0 0.0;
440 rel2.relative, 1.0 1.0;
443 style, "text_style_24_focused_center";
449 state, "slide_begin" 0.0;
450 inherit, "default" 0.0;
451 rel1.relative, 0.0 0.0;
452 rel2.relative, 0.0 1.0;
455 style, "text_style_24_focused_center";
462 inherit, "default" 0.0;
463 text.style, "text_style_24_dim_center";
464 color, 255 255 255 20;
470 signal, SIG_DIM_ITEM;
472 action, STATE_SET "dim" 0.0;
473 transition, LINEAR 0.2;
478 signal, SIG_UNDIM_ITEM;
480 action, STATE_SET "default" 0.0;
481 transition, LINEAR 0.2;
489 name, "elm/label/base/slide_style_22_center";
490 inherit, "elm/label/base/slide_style_24_left";
496 clip_to, "label.text.clip";
498 state, "default" 0.0;
499 rel1.relative, 0.0 0.0;
500 rel2.relative, 1.0 1.0;
503 style, "text_style_22_center";
509 state, "slide_end" 0.0;
510 inherit, "default" 0.0;
511 rel1.relative, 1.0 0.0;
512 rel2.relative, 1.0 1.0;
515 style, "text_style_22_center";
521 state, "slide_begin" 0.0;
522 inherit, "default" 0.0;
523 rel1.relative, 0.0 0.0;
524 rel2.relative, 0.0 1.0;
527 style, "text_style_22_center";
537 name, "elm/label/base/slide_style_28_left";
538 inherit, "elm/label/base/slide_style_24_left";
544 clip_to, "label.text.clip";
546 state, "default" 0.0;
547 rel1.relative, 0.0 0.0;
548 rel2.relative, 1.0 1.0;
551 style, "text_style_28_left";
557 state, "slide_end" 0.0;
558 inherit, "default" 0.0;
559 rel1.relative, 1.0 0.0;
560 rel2.relative, 1.0 1.0;
563 style, "text_style_28_left";
569 state, "slide_begin" 0.0;
570 inherit, "default" 0.0;
571 rel1.relative, 0.0 0.0;
572 rel2.relative, 0.0 1.0;
575 style, "text_style_28_left";