Remove the dependency to ac.service from systemd requires
[profile/tv/apps/native/air_volume.git] / data / tv-volume.edc
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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 #include "../include/define.h"
18
19 collections {
20         base_scale: 2.0;
21         group {
22                 name: GRP_VOLUME;
23                 images {
24                         image: "ic_volume_active.png" COMP;
25                         image: "ic_volume_mute.png" COMP;
26                 }
27                 parts {
28                         part {
29                                 name, "padding.volume";
30                                 type, SPACER;
31                                 scale, 1;
32                                 description {
33                                         state, "default" 0.0;
34                                         min, 46 0;
35                                         rel1.relative, 0.0 0.0;
36                                         rel2.relative, 0.0 0.0;
37                                         align, 0.0 0.0;
38                                         fixed, 1 1;
39                                 }
40                         }
41                         part {
42                                 name, "part.volume";
43                                 type, SPACER;
44                                 scale, 1;
45                                 description {
46                                         state, "default" 0.0;
47                                         min, 74 530;
48                                         rel1 {
49                                                 to, "padding.volume";
50                                                 relative, 1.0 0.0;
51                                         }
52                                         rel2 {
53                                                 to, "padding.volume";
54                                                 relative, 1.0 0.0;
55                                         }
56                                         align, 0.0 0.0;
57                                         fixed, 1 1;
58                                 }
59                                 part {
60                                         name, PART_VOLUME_TEXT;
61                                         type, TEXT;
62                                         effect, OUTLINE_SOFT_SHADOW;
63                                         scale, 1;
64                                         description {
65                                                 state, "default" 0.0;
66                                                 rel1.relative, 0.5 0.0;
67                                                 rel2.relative, 0.5 0.0;
68                                                 text {
69                                                         font, FONT_LIGHT;
70                                                         size, 36;
71                                                         align, 0.5 0.5;
72                                                 }
73                                                 color, 255 255 255 255;
74                                                 color2, 0 0 0 25;
75                                                 color3, 0 0 0 78;
76                                                 min, 62 36;
77                                                 align, 0.5 0.0;
78                                                 fixed, 1 1;
79                                         }
80                                         description {
81                                                 state, "mute" 0.0;
82                                                 inherit, "default" 0.0;
83                                                 visible, 0;
84                                         }
85                                 }
86                                 part {
87                                         name, "padding.progressbar";
88                                         type, SPACER;
89                                         scale, 1;
90                                         description {
91                                                 state, "default" 0.0;
92                                                 min, 0 22;
93                                                 rel1 {
94                                                         to, PART_VOLUME_TEXT;
95                                                         relative, 0.5 1.0;
96                                                 }
97                                                 rel2 {
98                                                         to, PART_VOLUME_TEXT;
99                                                         relative, 0.5 1.0;
100                                                 }
101                                                 align, 0.5 0.0;
102                                                 fixed, 1 1;
103                                         }
104                                 }
105                                 part {
106                                         name, PART_VOLUME_PROGRESSBAR;
107                                         type, SWALLOW;
108                                         scale, 1;
109                                         description {
110                                                 state, "default" 0.0;
111                                                 min, 6 404;
112                                                 rel1 {
113                                                         to, "padding.progressbar";
114                                                         relative, 0.5 1.0;
115                                                 }
116                                                 rel2 {
117                                                         to, "padding.progressbar";
118                                                         relative, 0.5 1.0;
119                                                 }
120                                                 align, 0.5 0.0;
121                                                 fixed, 1 1;
122                                         }
123                                         description {
124                                                 state, "mute" 0.0;
125                                                 inherit, "default" 0.0;
126                                                 visible, 0;
127                                         }
128                                 }
129                                 part {
130                                         name, "padding.icon";
131                                         type, SPACER;
132                                         scale, 1;
133                                         description {
134                                                 state, "default" 0.0;
135                                                 min, 0 18;
136                                                 rel1 {
137                                                         to, PART_VOLUME_PROGRESSBAR;
138                                                         relative, 0.5 1.0;
139                                                 }
140                                                 rel2 {
141                                                         to, PART_VOLUME_PROGRESSBAR;
142                                                         relative, 0.5 1.0;
143                                                 }
144                                                 align, 0.5 0.0;
145                                                 fixed, 1 1;
146                                         }
147                                 }
148                                 part {
149                                         name, PART_VOLUME_ICON;
150                                         type, IMAGE;
151                                         scale, 1;
152                                         description {
153                                                 state, "default" 0.0;
154                                                 image.normal, "ic_volume_active.png";
155                                                 min, 74 50;
156                                                 rel1 {
157                                                         to, "padding.icon";
158                                                         relative, 0.5 1.0;
159                                                 }
160                                                 rel2 {
161                                                         to, "padding.icon";
162                                                         relative, 0.5 1.0;
163                                                 }
164                                                 align, 0.5 0.0;
165                                                 fixed, 1 1;
166                                         }
167                                         description {
168                                                 state, "mute" 0.0;
169                                                 inherit, "default" 0.0;
170                                                 rel1 {
171                                                         to, "part.volume";
172                                                         relative, 0.5 0.5;
173                                                 }
174                                                 rel2 {
175                                                         to, "part.volume";
176                                                         relative, 0.5 0.5;
177                                                 }
178                                                 align, 0.5 0.5;
179                                                 image.normal, "ic_volume_mute.png";
180                                         }
181                                 }
182                         }
183                 }
184                 programs {
185                         program {
186                                 name, "show.mute";
187                                 signal, SIGNAL_SHOW_MUTE;
188                                 source, SOURCE_PROGRAM;
189                                 action, STATE_SET "mute" 0.0;
190                                 target, PART_VOLUME_TEXT;
191                                 target, PART_VOLUME_PROGRESSBAR;
192                                 target, PART_VOLUME_ICON;
193                         }
194                         program {
195                                 name, "hide.mute";
196                                 signal, SIGNAL_HIDE_MUTE;
197                                 source, SOURCE_PROGRAM;
198                                 action, STATE_SET "default" 0.0;
199                                 target, PART_VOLUME_TEXT;
200                                 target, PART_VOLUME_PROGRESSBAR;
201                                 target, PART_VOLUME_ICON;
202                         }
203                 }
204         }
205 }