509800ccc3bf27c68f4ec0546e2138df260a704f
[apps/home/gallery.git] / res / edc / gl-selection-notification.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 //including selection info and notification of delete/move/remove/add...
18 #define SELINFO_PORT_W          720
19 #define SELINFO_H               48
20 #define SELINFO_TOP_LINE_COLOR  56 56 56 255
21 #define SELINFO_TOP_LINE_H              2
22 #define SELINFO_PAD_L           14
23
24         group
25         {
26             name: "elm/standard/selectioninfo/selectioninfo_viewer";
27             parts {
28                         part {
29                                 name: "bg";
30                                 type: RECT;
31                                 mouse_events: 1;
32                                 repeat_events: 1;
33                                 scale : 1;
34                                 description {//default, portrait
35                                         state: "default" 0.0;
36                                         min: SELINFO_PORT_W SELINFO_H;
37                                         fixed: 1 1;
38                                         align: 0.5 1.0;
39                                         rel1.relative: 0.5 1.0;
40                                         rel2.relative: 0.5 1.0;
41                                         color: 0 0 0 0;
42                                 }
43                         }
44                         part {
45                          name: "base";
46                          type: RECT;
47                          mouse_events: 1;
48                          scale : 1;
49                          description {
50                                 state: "default" 0.0;
51                             min: 0 SELINFO_H;
52                             fixed: 0 1;
53                             align: 0.5 0.0;
54                             rel1 { relative: 0.0 0.0; to: "bg"; }
55                             rel2 { relative: 1.0 1.0; to: "bg"; }
56                             color: GALLERY_EDC_COLOR_THEME_GRAY;
57                                  }
58                     }
59                     part { name: "top_line";
60                                 type: RECT;
61                                 scale : 1;
62                                 description {
63                                         state: "default" 0.0;
64                                         min: 0 SELINFO_TOP_LINE_H;
65                                         fixed: 1 0;
66                                         align: 0.5 0.0;
67                                         rel1 { relative: 0.0 0.0; to: "base"; }
68                                         rel2 { relative: 1.0 SELINFO_TOP_LINE_H/SELINFO_H; to: "base"; }
69                                         color: SELINFO_TOP_LINE_COLOR;
70                                 }
71                         }
72                         part { name: "left_padding";
73                                 type: RECT;
74                                 scale : 1;
75                                 description {
76                                         state: "default" 0.0;
77                                         min: SELINFO_PAD_L SELINFO_H;
78                                         fixed: 1 1;
79                                         align: 0.5 0.0;
80                                         rel1 { relative: 0.0 0.0; to: "base"; }
81                                         rel2 { relative: 0.0 1.0; to: "base"; }
82                                         color: 0 0 0 0;
83                                 }
84                         }
85                         part {
86                                 name: "elm.text";
87                                 type: TEXT;
88                                 mouse_events: 0;
89                                 scale: 1;
90                                 description {
91                                         state: "default" 0.0;
92                                         align: 0.0 0.5;
93                                         rel1 { relative: 1.0 0.0; to_x: "left_padding"; to_y: "base"; }
94                                         rel2 { relative: 1.0 1.0; to: "base"; }
95                                         color: 255 255 255 255;
96                                         text {
97                                                 font: "Helvetica Neue:style=Medium";
98                                                 size: 32;
99                                                 text: "";
100                                                 align: 0.5 0.5;
101                                         }
102                                 }
103                         }
104             }
105
106                 programs {
107                     program {//default selection
108                     name: "selectioninfo_portrait";
109                     signal: "elm,selectioninfo,portrait";
110                     source: "elm";
111                     script {
112                         set_state(PART:"bg", "default", 0.0);
113                         set_state(PART:"base", "default", 0.0);
114                     }
115
116                     }
117             }
118         }
119