summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/efl/popup.edc
blob: 22f1a94507d7287964b07ffd1a55a7e254fabc1e (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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
//Efl.Ui.Popup Themes
group { "efl/popup";
   data.item: "version" "123";
   images.image: "rounded_square.png" COMP;
   parts {
      spacer { "base";
         desc { "default";
            rel1.offset: 10 10;
            rel2.offset: -11 -11;
         }
      }
      image { "bg";
         desc { "default";
            min: 100 100;
            image.border: 15 15 15 15;
            image.normal: "rounded_square.png";
         }
      }
      swallow { "efl.background"; required;
         desc { "default";
            rel.to: "bg";
         }
      }
      swallow { "efl.content"; required;
         desc { "default";
            rel.to: "base";
         }
      }
   }
}

group { "efl/alert_popup"; data.item: "version" "123";
   images.image: "rounded_square.png" COMP;
   parts {
      image { "bg";
         desc { "default";
            min: 100 100;
            image.border: 15 15 15 15;
            image.normal: "rounded_square.png";
         }
      }
      swallow { "efl.background"; required;
         desc { "default";
            rel.to: "bg";
         }
      }
      spacer { "base";
         desc { "default";
            rel.to: "bg";
            rel1.offset: 10 10;
            rel2.offset: -11 -11;
         }
      }
      rect { "title_bg";
         desc { "default";
            fixed: 0 1;
            min: 0 0;
            rel.to: "base";
            rel2.relative: 1.0 0.0;
            align: 0.5 0.0;
            color: 0 0 0 0;
         }
         desc { "title_visible";
            inherit: "default";
            min: 0 20;
         }
      }
      textblock { "efl.text.title"; required;
         scale;
         desc { "default";
            fixed: 1 1;
            text {
              style: "popup_title_style_ellipsis";
            }
            rel.to: "title_bg";
            hid;
         }
         desc { "title_visible";
            inherit: "default";
            vis;
         }
      }
      swallow { "efl.buttons"; required;
         desc { "default";
            fixed: 0 1;
            rel.to: "base";
            rel1.relative: 0.0 1.0;
            align: 0.5 1.0;
            min: 0 0;
         }
         desc { "button_visible";
            inherit: "default";
            min: 0 30;
         }
      }
      swallow { "efl.content"; required;
         desc { "default";
            rel1.to_x: "base";
            rel1.to_y: "title_bg";
            rel2.to_x: "base";
            rel2.to_y: "efl.buttons";
            rel1.relative: 0.0 1.0;
            rel2.relative: 1.0 0.0;
         }
      }
   }
   programs {
      program {
         signal: "efl,title,show"; source: "efl";
         action: STATE_SET "title_visible" 0.0;
         target: "title_bg";
         target: "efl.text.title";
      }
      program {
         signal: "efl,buttons,show"; source: "efl";
         action: STATE_SET "button_visible" 0.0;
         target: "efl.buttons";
      }
   }
}

group { "efl/popup/backwall"; data.item: "version" "123";
   alias: "efl/alert_popup/backwall";
   parts {
      rect { "base";
         desc { "default";
            color: 0 0 0 64;
         }
         desc { "content_visible";
            inherit: "default";
            hid;
         }
      }
      swallow { "efl.content"; required;
         desc { "default";
            rel.to: "base";
            hid;
         }
         desc { "content_visible";
            inherit: "default";
            vis;
         }
      }
      rect { "block";
         desc { "default";
            rel.to: "base";
            color: 0 0 0 0;
         }
      }
   }

   programs {
      program {
         signal: "efl,state,content,set"; source: "efl";
         action: STATE_SET "content_visible" 0.0;
         target: "base";
         target: "efl.content";
      }
      program {
         signal: "efl,state,content,unset"; source: "efl";
         action: STATE_SET "default" 0.0;
         target: "base";
         target: "efl.content";
      }
      program {
         signal: "mouse,clicked,1"; source: "block";
         action: SIGNAL_EMIT "efl,action,clicked" "efl";
      }
   }
}

group { "efl/alert_popup/button_layout1"; data.item: "version" "123";
   parts {
      swallow { "efl.button1"; required;
      }
   }
}

group { "efl/alert_popup/button_layout2"; data.item: "version" "123";
   parts {
      spacer { "div1";
         desc { "default";
            rel1.relative: 0.5 0.5;
            rel2.relative: 0.5 0.5;
            min: 5 5;
         }
      }
      swallow { "efl.button1"; required;
         desc { "default";
            rel2.to_x: "div1";
            rel2.relative: 0.0 1.0;
         }
      }
      swallow { "efl.button2"; required;
         desc { "default";
            rel1.to_x: "div1";
            rel1.relative: 1.0 0.0;
         }
      }
   }
}

group { "efl/alert_popup/button_layout3"; data.item: "version" "123";
   parts {
      spacer { "div1";
         desc { "default";
            rel1.relative: 0.333 0.5;
            rel2.relative: 0.333 0.5;
            min: 5 5;
         }
      }
      spacer { "div2";
         desc { "default";
            rel1.relative: 0.666 0.5;
            rel2.relative: 0.666 0.5;
            min: 5 5;
         }
      }
      swallow { "efl.button1"; required;
         desc { "default";
            rel2.to_x: "div1";
            rel2.relative: 0.0 1.0;
         }
      }
      swallow { "efl.button2"; required;
         desc { "default";
            rel1.to_x: "div1";
            rel2.to_x: "div2";
            rel1.relative: 1.0 0.0;
            rel2.relative: 0.0 1.0;
         }
      }
      swallow { "efl.button3"; required;
         desc { "default";
            rel1.to_x: "div2";
            rel1.relative: 1.0 0.0;
         }
      }
   }
}

group { "efl/alert_popup/left_button";
   inherit: "efl/button";
   data.item: "version" "123";
}

group { "efl/alert_popup/right_button";
   inherit: "efl/button";
   data.item: "version" "123";
}

group { "efl/alert_popup/button";
   inherit: "efl/button";
   data.item: "version" "123";
}