apply FSL(Flora Software License)
[profile/ivi/org.tizen.browser.git] / edc / browser-settings.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 #include "browser-macro.edc"
18
19 collections {
20         group {
21                 name: "edit_homepage_view";
22
23                 parts {
24                         part {
25                         name: "bg";
26                                 mouse_events: 0;
27                                 type: RECT;
28                                 description
29                                 {
30                                         state: "default" 0.0;
31                                         visible: 1;
32                                         rel1 { relative: 0.0 0.0; }
33                                         rel2 { relative: 1.0 1.0; }
34                                         color: 0 0 0 0;
35                                 }
36                         }
37                         part {
38                                 name: "elm.swallow.entry";
39                                 type: SWALLOW;
40                                 mouse_events: 1;
41                                 description {
42                                         state: "default" 0.0;
43                                         visible: 1;
44                                         min: 0 80;
45                                         fixed: 0 1;
46                                         align: 0.0 0.0;
47                                         rel1 { relative: 0.0 0.0; to: bg; offset: 20 0; }
48                                         rel2 { relative: 1.0 0.0; to: bg; offset: -20 0; }
49                                 }
50                         }
51                 }
52         }
53
54         group { name: "elm/genlist/item/browser-settings/select_all/default";
55       alias: "elm/genlist/item_odd/browser-settings/select_all/default";
56       alias: "elm/genlist/item_compress/browser-settings/select_all/default";
57       alias: "elm/genlist/item_compress_odd/browser-settings/select_all/default";
58
59       data.item: "stacking" "above";
60       data.item: "selectraise" "on";
61       data.item: "texts" "elm.text";
62       data.item: "contents" "elm.swallow.icon elm.swallow.end";
63       parts {
64          BEAT_GENLIST_PART_BASE( 120 )
65
66          part { name: "bg";
67             type: RECT;
68             clip_to: "disclip";
69             mouse_events: 0;
70             description { state: "default" 0.0;
71                color: 52 74 85 255;
72             }
73          }
74
75          BEAT_GENLIST_PART_BG_IMAGE
76          BEAT_GENLIST_PART_BOTTOM_LINE
77          BEAT_GENLIST_PART_PADDING_LEFT( 15 )
78          BEAT_GENLIST_PART_PADDING_RIGHT( 22 )
79          part { name: "elm.swallow.end";
80             clip_to: "disclip";
81             type: SWALLOW;
82             scale: 1;
83             description { state: "default" 0.0;
84                fixed: 1 0;
85                align: 1.0 0.5;
86                rel1.to_x: "elm.padding.right";
87                rel2 {
88                   relative: 0.0  1.0;
89                   to_x: "elm.padding.right";
90                }
91             }
92          }
93          part { name: "elm.text";
94             clip_to: "disclip";
95             type: TEXT;
96             mouse_events: 0;
97             scale: 1;
98             description { state: "default" 0.0;
99                rel1 {
100                   relative: 1.0  0.0;
101                   offset: 30 0;
102                   to_x: "elm.swallow.icon";
103                }
104                rel2 {
105                   to_x: "elm.swallow.end";
106                   relative: 0.0  1.0;
107                   offset:   30   0;
108                }
109                color: 255 255 255 255;
110                text {
111                   font: "SLP:style=Roman";
112                   size: 48;
113                   min: 0 1;
114                   align: 0.0 0.5;
115                }
116             }
117             description { state: "selected" 0.0;
118                inherit: "default" 0.0;
119                color: 255 255 255 255;
120             }
121          }
122          part { name: "elm.swallow.icon";
123             clip_to: "disclip";
124             type: SWALLOW;
125             scale: 1;
126             description { state: "default" 0.0;
127             align: 0.0 0.5;
128                fixed: 1 1;
129                visible:1;
130                min: 63 63;
131                max: 63 63;
132                rel1 {
133                   relative: 1.0 0.0;
134                   to_x: "elm.padding.left";
135                }
136                rel2.to_x: "elm.padding.left";
137            }
138          }
139
140          BEAT_GENLIST_SELECT_ALL_PART_DISCLIP
141       }
142       programs {
143          // signal: elm,state,%s,active
144          //   a "check" item named %s went active
145          // signal: elm,state,%s,passive
146          //   a "check" item named %s went passive
147          // default is passive
148          program { name: "go_active";
149             signal: "elm,state,selected";
150             source: "elm";
151             action: STATE_SET "selected" 0.0;
152             target: "bg_image";
153             target: "elm.text";
154          }
155          program { name: "go_passive";
156             signal: "elm,state,unselected";
157             source: "elm";
158             action: STATE_SET "default" 0.0;
159             target: "bg_image";
160             target: "elm.text";
161             transition: LINEAR 0.1;
162          }
163          program { name: "go_disabled";
164             signal: "elm,state,disabled";
165             source: "elm";
166             action: STATE_SET "disabled" 0.0;
167             target: "disclip";
168          }
169          program { name: "go_enabled";
170             signal: "elm,state,enabled";
171             source: "elm";
172             action: STATE_SET "default" 0.0;
173             target: "disclip";
174          }
175       }
176    }
177 }
178