initial upload for tizen 2.0 beta
[apps/home/gallery.git] / ug / ug-gallery-efl / res / edc / gallery-efl-selection-info.edc
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
4   * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 #define SELINFO_PORT_W          720
18 #define SELINFO_LAND_W          1200
19 #define SELINFO_H               48
20 #define SELINFO_TOP_LINE_COLOR  215 225 232 255
21 #define SELINFO_TOP_LINE_H              2
22 #define SELINFO_PAD_L           14
23
24 #define GE_EDC_COLOR_THEME_GRAY  215 225 232 255
25
26 group
27 {
28     name: "elm/standard/selectioninfo/ug_selectioninfo_viewer";
29
30
31     parts {
32         part {
33             name: "bg";
34             type: RECT;
35                         mouse_events: 1;
36             repeat_events: 1;
37             scale : 1;
38             description {
39                   state: "default" 0.0;
40                   min: SELINFO_PORT_W SELINFO_H;
41                   fixed: 1 1;
42                   align: 0.5 1.0;
43                   rel1.relative: 0.5 1.0;
44                   rel2.relative: 0.5 1.0;
45                   color: GE_EDC_COLOR_THEME_GRAY;
46
47             }
48             description {//landscape
49                                   state: "landscape" 0.0;
50                                   min: SELINFO_LAND_W SELINFO_H;
51                                   fixed: 1 1;
52                                   align: 0.5 1.0;
53                                   rel1.relative: 0.5 1.0;
54                                   rel2.relative: 0.5 1.0;
55                   color: GE_EDC_COLOR_THEME_GRAY;
56                         }
57         }
58         part { name: "top_line";
59                                 type: RECT;
60                                 scale : 1;
61                                 description {
62                                         state: "default" 0.0;
63                                         min: 0 SELINFO_TOP_LINE_H;
64                                         fixed: 1 0;
65                                         align: 0.5 0.0;
66                                         rel1 { relative: 0.0 0.0; to: "bg"; }
67                                         rel2 { relative: 1.0 SELINFO_TOP_LINE_H/SELINFO_H; to: "bg"; }
68                                         color: SELINFO_TOP_LINE_COLOR;
69                                 }
70                 }
71                 part { name: "left_padding";
72                         type: RECT;
73                         scale : 1;
74                         description {
75                                 state: "default" 0.0;
76                                 min: SELINFO_PAD_L SELINFO_H;
77                                 fixed: 1 1;
78                                 align: 0.5 0.0;
79                                 rel1 { relative: 0.0 0.0; to: "bg"; }
80                                 rel2 { relative: 0.0 1.0; to: "bg"; }
81                                 color: 0 0 0 0;
82                         }
83                 }
84                 part {
85                         name: "elm.text";
86                         type: TEXT;
87                         mouse_events: 0;
88                         scale: 1;
89                         description {
90                                 state: "default" 0.0;
91                                 align: 0.0 0.5;
92                                 rel1 { relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg"; }
93                                 rel2 { relative: 1.0 1.0; to: "bg"; }
94                                 color: 0 0 0 255;
95                                 text {
96                                         font: "SLP:style=Medium";
97                                         text_class: "slp_medium";
98                                         size: 32;
99                                         text: "";
100                                         align: 0.0 0.5;
101                                 }
102                         }
103                 }
104         }
105
106         programs {
107             program {//default selection
108             name: "selectioninfo_portrait";
109             signal: "elm,selectioninfo,ug_portrait";
110             source: "elm";
111             script {
112                 set_state(PART:"bg", "default", 0.0);
113             }
114
115             }
116             program {//landscape selection
117             name: "selectioninfo_landscape";
118             signal: "elm,selectioninfo,ug_landscape";
119             source: "elm";
120             script {
121                 set_state(PART:"bg", "landscape", 0.0);
122             }
123
124             }
125         }
126 }
127