tizen 2.4 release
[apps/home/attach-panel.git] / sample / sample.edc
1 /*
2  * Samsung API
3  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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/license/
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
19
20 styles {
21         style {
22                 name: "text_style";
23                 base: "font=Tizen:style=Bold font_size=24 color=#ffffff align=center style=shadow shadow_color=#000000bf wrap=mixed";
24                 tag:  "br" "\n";
25                 tag:  "hilight" "+ font_weight=Bold";
26                 tag:  "b" "+ font_weight=Bold";
27                 tag:  "tab" "\t";
28         }
29 }
30
31 collections {
32         group {
33                 name: "layout";
34                 parts {
35                         part {
36                                 name: "bg";
37                                 type: RECT;
38                                 scale: 1;
39                                 description {
40                                         state: "default" 0.0;
41                                         rel1 { relative: 0.0 0.0; }
42                                         rel2 { relative: 1.0 1.0; }
43                                         color: 255 255 255 255;
44                                         visible: 1;
45                                 }
46                         }
47                         part {
48                                 name: "entry";
49                                 type: SWALLOW;
50                                 description {
51                                         state: "default" 0.0;
52                                         rel1 { relative: 0.05 0.1; }
53                                         rel2 { relative: 0.6 0.2; }
54                                         align: 0.5 0.5;
55                                         fixed: 1 1;
56                                         visible: 1;
57                                 }
58                         }
59                         part {
60                                 name: "button_bg";
61                                 type: RECT;
62                                 description {
63                                         state: "default" 0.0;
64                                         rel1.to: "button";
65                                         rel2.to: "button";
66                                         visible: 1;
67                                         color: 200 200 200 200;
68                                 }
69                         }
70                         part {
71                                 name: "button";
72                                 type: SWALLOW;
73                                 description {
74                                         state: "default" 0.0;
75                                         rel1 { relative: 0.65 0.1; }
76                                         rel2 { relative: 0.95 0.2; }
77                                         align: 0.5 1.0;
78                                         fixed: 1 1;
79                                         visible: 1;
80                                 }
81                         }
82                         part {
83                                 name: "result";
84                                 type: TEXTBLOCK;
85                                 description {
86                                         state: "default" 0.0;
87                                         rel1 { relative: 0.0 1.0; to: "entry"; }
88                                         rel2 { relative: 0.95 1.0; to: "bg"; }
89                                         align: 0.5 1.0;
90                                         color: 0 0 0 255;
91                                         text {
92                                                 text: " ";
93                                                 style: "text_style";
94                                                 align: 0.5 0.5;
95                                         }
96                                         visible: 1;
97                                 }
98                         }
99                 } //parts
100                 programs {
101                         program {
102                                 name: "bg,up";
103                                 signal: "mouse,up,1";
104                                 source: "bg";
105                                 action: SIGNAL_EMIT "bg,up" "bg";
106                         }
107                 }
108         } //group
109 } //collections