theme: add tv overlay theme from efl-theme-tizen-tv
[platform/core/csapi/tizenfx.git] / src / ElmSharp / theme / tv / widgets / layout.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  *   1. Redistributions of source code must retain the above copyright notice, this
10  *      list of conditions and the following disclaimer.
11  *   2. Redistributions in binary form must reproduce the above copyright notice,
12  *      this list of conditions and the following disclaimer in the documentation
13  *      and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26 /**********************************************************************************************
27 Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 36 , name:"nocontent"
28 ***********************************************************************************************/
29 #define FONT_SIZE 35
30 #define FONT_SIZE_SMALL 24
31
32 group { name: "elm/layout/application/default";
33    parts {
34       part { name: "elm.swallow.bg";
35          type: SWALLOW;
36          scale: 1;
37          description { state: "default" 0.0;
38          }
39       }
40       part { name: "elm.swallow.content";
41          type: SWALLOW;
42          scale: 1;
43          description { state: "default" 0.0;
44          }
45       }
46    }
47 }
48
49 group { name: "elm/layout/application/nocontent";
50    parts {
51       part { name: "base"; type: RECT; mouse_events: 0;
52          scale: 1;
53          description { state: "default" 0.0;
54             color: 0 0 0 38;
55          }
56       }
57       part { name: "right.pad"; type: SPACER; mouse_events: 0;
58          scale: 1;
59          description { state: "default" 0.0;
60             rel1.to: "base";
61             rel2.to: "base";
62             min: 50 50;
63             max: 50 -1;
64             align: 1.0 0.0;
65          }
66       }
67       part { name: "left.pad"; type: SPACER; mouse_events: 0;
68          scale: 1;
69          description { state: "default" 0.0;
70             rel1.to: "base";
71             rel2.to: "base";
72             min: 50 50;
73             max: 50 -1;
74             align: 0.0 0.0;
75          }
76       }
77       part { name: "base.pad"; type: SPACER; mouse_events: 0;
78          scale: 1;
79          description { state: "default" 0.0;
80             rel1.to: "left.pad";
81             rel1.relative: 1.0 0.0;
82             rel2.to: "right.pad";
83             rel2.relative: 0 1.0;
84             min: 0 70;
85             max: -1 70;
86             align: 0.0 0.5;
87           }
88       }
89
90       part { name: "elm.text"; type: TEXT; mouse_events: 0;
91          scale: 1;
92          multiline: 1;
93          description { state: "default" 0.0;
94             rel1.to: "base.pad";
95             rel2.to: "base.pad";
96             color: 211 211 211 255;
97             align: 0 0;
98             min: 0 40;
99             max: -1 40;
100             text {
101                size: FONT_SIZE;
102                min: 0 0;
103                font: FONT_M;
104             }
105          }
106       }
107       part { name: "elm.text.1"; type: TEXT; mouse_events: 0;
108          scale: 1;
109          multiline: 1;
110          description { state: "default" 0.0;
111             rel1.to: "elm.text";
112             rel1.relative: 0.0 1.0;
113             rel2.to: "right.pad";
114             rel2.relative: 0.0 1.0;
115             color: 134 134 134 255;
116             min: 0 30;
117             max: -1 30;
118             align: 0 0;
119             text {
120                font: FONT_M;
121                size: FONT_SIZE_SMALL;
122                min: 0 0;
123             }
124          }
125       }
126    }
127 }
128
129 /***********************************************************************************************
130 Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 48, name:"nocontent.1"
131 ***********************************************************************************************/
132 group { name: "elm/layout/application/nocontent.1";
133    inherit:"elm/layout/application/nocontent";
134    parts {
135       part { name: "right.pad"; type: SPACER; mouse_events: 0;
136          scale: 1;
137          description { state: "default" 0.0;
138             min: 30 30;
139             max: 30 -1;
140          }
141       }
142       part { name: "left.pad"; type: SPACER; mouse_events: 0;
143          scale: 1;
144          description { state: "default" 0.0;
145             min: 30 30;
146             max: 30 -1;
147          }
148       }
149    }
150 }
151
152 group { "elm/layout/background/default";
153    parts {
154       rect { "bg";
155          scale;
156          desc { "default";
157             color_class: "layout/background/bg";
158          }
159       }
160       swallow { "elm.swallow.content";
161          scale;
162          desc { "default"; }
163       }
164    }
165 }