Apply GUI resource and layout to progressbar
[platform/core/security/ode.git] / tools / apps / ode-gui / res / edje / progress.edc
1 /*
2  *
3  * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 group { name: "progress_layout";
19         parts {
20                 part { name: "bg1";
21                         type: RECT;
22                         scale: 1;
23                         description { state: "default" 0.0;
24                                 color: 55 166 184 255;
25                                 rel1 { relative: 0.0 0.0; }
26                                 rel2 { relative: 1.0 1.0; }
27                         }
28                 }
29                 part { name: "bg2";
30                         type: RECT;
31                         scale: 1;
32                         description { state: "default" 0.0;
33                                 color: 0 0 0 25;
34                                 rel1 { relative: 0.0 0.0; to: "bg1";}
35                                 rel2 { relative: 1.0 1.0; to: "bg1";}
36                         }
37                 }
38                 part { name: "bg_top_padding";
39                         type: SPACER;
40                         scale: 1;
41                         description { state: "default" 0.0;
42                                 rel1 {relative: 0.0 0.0; to: "bg1";}
43                                 rel2 {relative: 1.0 0.0; to: "bg1"; offset: 0 254;}
44                         }
45                 }
46                 part { name: "icon";
47                         type: SWALLOW;
48                         scale: 1;
49                         description { state: "default" 0.0;
50                                 min: 242 242;
51                                 max: 242 242;
52                                 rel1 {relative: 0.0 1.0; to: "bg_top_padding";}
53                                 rel2 {relative: 1.0 1.0; to: "bg_top_padding"; offset: 0 242;}
54                                 align: 0.5 0.5;
55                         }
56                 }
57                 part { name: "message_title_top_padding";
58                         type: SPACER;
59                         scale: 1;
60                         description { state: "default" 0.0;
61                                 rel1 { relative: 0.0 1.0; to_x: "bg2"; to_y: "icon";}
62                                 rel2 { relative: 1.0 1.0; to_x: "bg2"; to_y: "icon"; offset: 0 46;}
63                         }
64                 }
65                 part { name: "message_title";
66                         type: SWALLOW;
67                         scale: 1;
68                         description { state: "default" 0.0;
69                                 rel1 { relative: 0.0 1.0; to: "message_title_top_padding"; offset: 22 0;}
70                                 rel2 { relative: 1.0 1.0; to: "message_title_top_padding"; offset: -22 54;}
71                         }
72                 }
73                 part { name: "progress_area";
74                         type: SPACER;
75                         scale: 1;
76                         description { state: "default" 0.0;
77                                 rel1 { relative: 0.0 1.0; to: "message_title";}
78                                 rel2 { relative: 1.0 1.0; to: "message_title"; offset: 0 54;}
79                         }
80                 }
81                 part { name: "progress_indicator";
82                         type: SWALLOW;
83                         scale: 1;
84                         description { state: "default" 0.0;
85                                 rel1 { relative: 0.0 0.5; to: "progress_area";}
86                                 rel2 { relative: 1.0 0.5; to: "progress_area";}
87                                 align: 0.5 0.5;
88                         }
89                 }
90                 part { name: "progress_percentage";
91                         type: SWALLOW;
92                         scale: 1;
93                         description { state: "default" 0.0;
94                                 rel1 { relative: 0.0 1.0; to: "progress_area";}
95                                 rel2 { relative: 1.0 1.0; to: "progress_area"; offset: 0 54;}
96                                 align: 0.5 0.5;
97                         }
98                 }
99                 part { name: "progress_bottom_padding";
100                         type: SPACER;
101                         scale: 1;
102                         description { state: "default" 0.0;
103                                 rel1 { relative: 0.0 1.0; to: "progress_percentage";}
104                                 rel2 { relative: 1.0 1.0; to: "progress_percentage"; offset: 0 157;}
105                         }
106                 }
107                 part { name: "message_content";
108                         type: SWALLOW;
109                         scale: 1;
110                         description { state: "default" 0.0;
111                                 rel1 { relative: 0.0 1.0; to: "progress_bottom_padding";}
112                                 rel2 { relative: 1.0 1.0; to: "progress_bottom_padding"; offset: 0 162;}
113                         }
114                 }
115                 part { name: "message_bottom";
116                         type: SWALLOW;
117                         scale: 1;
118                         description { state: "default" 0.0;
119                                 rel1 { relative: 0.0 1.0; to: "message_content"; offset: 0 20;}
120                                 rel2 { relative: 1.0 1.0; to: "message_content"; offset: 0 150;}
121                         }
122                 }
123         }
124 }