tizen 2.4 release
[apps/home/settings.git] / resource / edc_resource / popup_custom.edc
1 /*
2  * Copyright (c) 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 #define POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 15
19
20 #define POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_MIN_INC 36 36
21 #define POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_MAX_INC 36 36
22 #define POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_PADDING_AFTER_INC 15 90
23 #define POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_TEXT_MIN_INC 0 90
24 #define POPUP_PROCESSING_VIEW_LAYOUT_BG_MIN_INC 0 90
25
26 #define POPUP_TEXT_FONT_SIZE1 30
27
28 group { name: "processing_view_layout";
29    styles {
30       style { name: "popup_processing_style";
31          base: "font=Tizen:style=Regular align=left font_size="POPUP_TEXT_FONT_SIZE1" color=#000000 wrap=mixed ellipsis=1.0 text_class=tizen";
32          tag:  "br" "\n";
33          tag:  "tab" "\t";
34       }
35    }
36    parts {
37       part { name: "bg";
38          type: SPACER;
39          scale: 1;
40          description { state: "default" 0.0;
41             min: POPUP_PROCESSING_VIEW_LAYOUT_BG_MIN_INC;
42             fixed: 1 0;
43          }
44       }
45       part { name: "pad_l";
46          type: SPACER;
47          scale: 1;
48          description { state: "default" 0.0;
49             min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
50             fixed: 1 0;
51             rel1.relative: 0.0 0.0;
52             rel2.relative: 0.0 1.0;
53             align: 0.0 0.0;
54          }
55       }
56       part { name: "pad_r";
57          type: SPACER;
58          scale: 1;
59          description { state: "default" 0.0;
60             min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
61             fixed: 1 0;
62             rel1.relative: 1.0 0.0;
63             rel2.relative: 1.0 1.0;
64             align: 1.0 0.0;
65          }
66       }
67       part { name: "processing";
68          type: SWALLOW;
69          scale: 1;
70          description { state: "default" 0.0;
71             fixed: 1 1;
72             min: POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_MIN_INC;
73             max: POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_MAX_INC;
74             rel1 {
75                relative: 1.0 0.0;
76                to_x: "pad_l";
77             }
78             rel2 {
79                relative: 0.0 1.0;
80                to_x: "pad_r";
81             }
82             align: 0.0 0.5;
83          }
84       }
85       part { name: "pad_after_processing";
86          type: SPACER;
87          scale: 1;
88          description { state: "default" 0.0;
89             fixed: 1 1;
90             min: POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_PADDING_AFTER_INC;
91             rel1 {
92                relative: 1.0 0.0;
93                to: "processing";
94             }
95             rel2.to: "processing";
96             align: 0.0 0.5;
97          }
98       }
99       part { name: "elm.text";
100          type: TEXTBLOCK;
101          scale: 1;
102          description { state: "default" 0.0;
103             min: POPUP_PROCESSING_SWALLOW_VIEW_LAYOUT_TEXT_MIN_INC;
104             fixed: 0 1;
105             rel1 {
106                relative: 1.0 0.0;
107                to: "pad_after_processing";
108             }
109             rel2 {
110                relative: 0.0 1.0;
111                to_x: "pad_r";
112             }
113             align: 0.0 0.5;
114             text {
115                style: "popup_processing_style";
116                min: 0 1;
117             }
118          }
119       }
120    }
121 }