[Tizen 3.0] 2.4 source code merge
[apps/core/preloaded/quickpanel.git] / data / quickpanel_textblock_slide_style.edc
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 #include "color_classes.edc"
19
20 collections
21 {
22         base_scale: 1.8;
23
24         group {
25                 name: "slide_short";
26
27                 styles {
28                         style
29                         {
30                                 name: "dual_sim_text_style";
31                                 base: "font=Tizen:style=Regular font_size=17 text_class=ATO007D color=#FFFFFF color_class=ATO007D align=center wrap=none ";     // unconnected
32                                 tag:  "icon_0" "+ text_class=ATO007E1 color=#FFFFFF color_class=ATO007E1 ";     // SIM1
33                                 tag:  "icon_1" "+ text_class=ATO007E2 color=#FFFFFF color_class=ATO007E2 ";     // SIM2
34                                 tag:  "icon_2" "+ text_class=ATO007E9 color=#FFFFFF color_class=ATO007E9 ";     // Call
35                                 tag:  "icon_3" "+ text_class=ATO007E4 color=#FFFFFF color_class=ATO007E4 ";     // SMS
36                                 tag:  "icon_4" "+ text_class=ATO007E5 color=#FFFFFF color_class=ATO007E5 ";     // MMS
37                                 tag:  "icon_5" "+ text_class=ATO007E6 color=#FFFFFF color_class=ATO007E6 ";     // Internet
38                                 tag:  "icon_6" "+ text_class=ATO007E7 color=#FFFFFF color_class=ATO007E7 ";     // Home
39                                 tag:  "icon_7" "+ text_class=ATO007E3 color=#FFFFFF color_class=ATO007E3 ";     // Office
40                                 tag:  "icon_8" "+ text_class=ATO007E8 color=#FFFFFF color_class=ATO007E8 ";     // Heart
41                         }
42                 }
43
44                 parts {
45                         part {
46                                 name: "base";
47                                 type: SPACER;
48                                 scale: 1;
49                                 description {
50                                         state: "default" 0.0;
51                                         min: 84 (4 + 19 + 4);
52                                         max: 84 (4 + 19 + 4);
53                                         fixed: 1 1;
54                                 }
55                         }
56                         part {
57                                 name: "clip";
58                                 type: RECT;
59                                 scale: 1;
60                                 description {
61                                         state: "default" 0.0;
62                                         rel1 {
63                                                 relative: 0.0 0.0;
64                                                 to: "base";
65                                         }
66                                         rel2 {
67                                                 relative: 1.0 1.0;
68                                                 to: "base";
69                                         }
70                                 }
71                         }
72                         part {
73                                 name: "text";
74                                 type: TEXTBLOCK;
75                                 mouse_events: 0;
76                                 repeat_events: 1;
77                                 scale: 1;
78                                 clip_to: "clip";
79                                 description {
80                                         state: "default" 0.0;
81                                         min: 84 (4 + 19 + 4);
82                                         fixed: 1 1;
83                                         align: 0.5 0.5;
84                                         rel1 {
85                                                 relative: 0.0 0.0;
86                                                 to: "clip";
87                                         }
88                                         rel2 {
89                                                 relative: 1.0 1.0;
90                                                 to: "clip";
91                                         }
92                                         text {
93                                                 style: "dual_sim_text_style";
94                                                 min: 1 1;
95                                                 align: 0.5 0.5;
96                                         }
97                                 }
98                                 description {
99                                         state: "slide_end" 0.0;
100                                         inherit: "default" 0.0;
101                                         align: 1.0 0.5;
102                                 }
103                                 description {
104                                         state: "slide_begin" 0.0;
105                                         inherit: "default" 0.0;
106                                         align: 0.0 0.5;
107                                 }
108                         }
109                 }
110
111                 programs {
112                         program
113                         {
114                                 name: "play_slide";
115                                 source: "elm";
116                                 signal: "elm,state,slide,start";
117                                 action: STATE_SET "slide_begin" 0.0;
118                                 target: "text";
119                                 after: "start_slide";
120                         }
121
122                         program
123                         {
124                                 name: "stop_slide";
125                                 source: "elm";
126                                 signal: "elm,state,slide,stop";
127                                 action: STATE_SET "default" 0.0;
128                                 target: "text";
129                         }
130
131                         program
132                         {
133                                 name: "start_slide";
134
135                                 action: STATE_SET "slide_end" 0.0;
136                                 transition: LINEAR 5.0;
137                                 target: "text";
138                                 filter: "text" "slide_begin";
139                                 in: 0.5 0.0;
140                                 after: "end_slide";
141                         }
142
143                         program
144                         {
145                                 name: "end_slide";
146                                 action: STATE_SET "slide_begin" 0.0;
147                                 filter: "text" "slide_end";
148                                 target: "text";
149                                 in: 0.5 0.0;
150
151                                 after: "start_slide";
152                         }
153                 }
154         }
155 }