summaryrefslogtreecommitdiff
path: root/mobile/widgets_default/list.edc
blob: 9787bdd6ec5cfdca19c813e5639d9feaa6d164c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
group { name: "elm/list/h_item/default";
   alias: "elm/list/h_item_odd/default";
   alias: "elm/list/h_item_compress/default";
   data.item: "stacking" "above";
   data.item: "selectraise" "on";
   parts {
      part { name: "event";
         type: RECT;
         repeat_events: 1;
         description { state: "default" 0.0;
            color: LIST_HORIZONTAL_COLOR_TRANSPARENT;
         }
      }
      part { name: "base";
         type: RECT;
         mouse_events: 0;
         description { state: "default" 0.0;
            color: GENLIST_LIST_BG_COLOR;
         }
      }
      part { name: "elm.right.line";
         type: RECT;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 1 0;
            align: 1 0.5;
            min: GENLIST_HEIGHT_1_INC 0;
            rel1.relative: 1 0;
            color: GENLIST_LIST_LINE1_COLOR;
         }
      }
      part { name: "bg";
         mouse_events: 0;
         type: RECT;
         scale: 1;
         description { state: "default" 0.0;
            visible: 0;
            min: GENLIST_ITEM_DEFAULT_HEIGHT 0;
            rel1.relative: 0.0 0.0;
            rel2.relative: 1.0 1.0;
         }
         description { state: "selected" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            min: GENLIST_ITEM_DEFAULT_HEIGHT 0;
            color: GENLIST_LIST_PRESS_COLOR;
            rel1.relative: 0.0 0.0;
            rel2.relative: 1.0 1.0;
         }
      }
      part { name: "elm.padding.left";
         type: SPACER;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 1 0;
            align: 0 0.5;
            min: 10 0;
            rel2.relative: 0 1;
         }
      }      
      part { name: "elm.padding.right";
         type: SPACER;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 1 0;
            align: 1 0.5;
            min: 10  0;
            rel1.relative: 1 0;
         }
      }
      part { name: "elm.swallow.icon";
         type: SWALLOW;
         description { state: "default" 0.0;
            fixed: 0 1;
            max: GENLIST_ITEM_DEFAULT_ICON_WIDTH GENLIST_ITEM_DEFAULT_ICON_HEIGHT;
            align: 0.5 0.0;
            rel1 {
               to_x: "elm.padding.left";
               to_y: "elm.padding.top";
               relative: 1.0 1.0;
            }
            rel2 {
               to_x: "elm.padding.right";
               to_y: "elm.padding.top";
               relative: 0.0 1.0;
            }
         }
      }
      part { name: "elm.padding.top";
         type: SPACER;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.5 0;
            min: 0 GENLIST_ITEM_DEFAULT_PADDING_SIZE_DEFAULT;
            rel2.relative: 1 0;
         }
      }
      part { name: "elm.padding.bottom";
         type: SPACER;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.5 1;
            min: 0 GENLIST_ITEM_DEFAULT_PADDING_SIZE_DEFAULT;
            rel1.relative: 0 1;
         }
      }
      part { name: "elm.swallow.end";
         type: SWALLOW;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.5 1.0;
            rel1 {
               to_x: "elm.padding.left";
               to_y: "elm.padding.bottom";
               relative: 1 0;
            }
            rel2 {
               to_x: "elm.padding.right";
               to_y: "elm.padding.bottom";
               relative: 0 0;
            }
         }
      }
      part { name: "elm.text";
         type: TEXT;
         mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            rel1 {
               to_x: "elm.padding.left";
               to_y: "elm.swallow.icon";
               relative: 1.0 1.0;
            }
            rel2 {
               to_x: "elm.padding.right";
               to_y: "elm.swallow.end";
               relative: 0.0 0.0;
            }
            color: GENLIST_LIST_MAIN_TEXT_DEFAULT_COLOR;
            text {
               font: "SLP:style=Regular";
               size: GENLIST_ITEM_DEFAULT_MAIN_TEXT_SIZE;
               min: 0 1;
               align: 0.5 0.5;
               text_class: "list_item";
            }
         }
         description { state: "selected" 0.0;
            inherit: "default" 0.0;
            color: GENLIST_LIST_MAIN_TEXT_FOCUS_COLOR;
         }
      }      
   }
   programs {
      program { name: "go_active";
         signal: "elm,state,selected";
         source: "elm";
         action: STATE_SET "selected" 0.0;
         target: "bg";
         target: "elm.text";
      }
      program { name: "go_passive";
         signal: "elm,state,unselected";
         source: "elm";
         action: STATE_SET "default" 0.0;
         target: "bg";
         target: "elm.text";
         transition: LINEAR 0.1;
      }
   }
}

group { name: "elm/list/h_item/ctxpopup";
   inherit: "elm/list/h_item/default";
   alias: "elm/list/h_item_odd/ctxpopup";

   parts {
      part { name: "elm.text";
         description {
            state: "default" 0.0;
            text.min: 1 1;
            fixed: 0 0;
         }
         description { state: "selected" 0.0;
            inherit: "default" 0.0;
            color: GENLIST_LIST_MAIN_TEXT_FOCUS_COLOR;
         }
      }
      part { name: "elm.swallow.icon";
         clip_to: "icon_clip";
      }
      part {
         name: "icon_clip";
         type: RECT;
         scale: 1;
         description {
            state: "default" 0.0;
            rel1.to: "elm.swallow.icon";
            rel2.to: "elm.swallow.icon";
            color: 51 51 51 255;
         }
      }
   }
}