summaryrefslogtreecommitdiff
path: root/data/themes/edc/polkit.edc
blob: 26ebf2cebe81974d0d5b2ccae47329a2643265c5 (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
256
257
258
259
260
group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
   images.image: "bevel_dark_out.png" COMP;
   parts {
      rect { "fader"; mouse;
         desc { hid;
            rel1.relative: 0.5 0.5;
            rel2.relative: 0.5 0.5;
            color: 0 0 0 0;
            link.base: "polkit,hide";
            link.transition: DECEL 0.2;
            link.after: "hide_done";
            program { "hide_done";
               action: SIGNAL_EMIT "polkit,hide,done" "polkit";
            }
         }
         desc { "visible"; vis;
            color: 0 0 0 160;
            link.base: "show" "";
            link.transition: ACCEL 0.2;
            link.after: "show_done";
            program { "show_done";
               action: SIGNAL_EMIT "polkit,show,done" "polkit";
            }
            link.base: "polkit,visible" "polkit";
         }
      }
      rect { "clip";
         desc {
            hid;
            rel1.relative: 0.5 0.5;
            rel2.relative: 0.5 0.5;
            link.base: "polkit,hide";
            link.transition: DECEL 0.2;
         }
         desc { "visible";
            link.base: "show" "";
            link.transition: ACCEL 0.2;
         }
      }
      rect { "base"; clip: "clip";
         desc {
            rel1.relative: 0.3 0.4;
            rel2.relative: 0.7 0.6;
            color_class: "dialog_base";
            color: 64 64 64 255;
         }
         desc { "success"; inherit: "default";
            color_class: "";
            color: 20 237 20 255;
            link.base: "polkit,login,success";
            link.transition: DECEL 0.2;
            link.after: "auth_hide";
         }
         desc { "failure"; inherit: "default";
            color_class: "";
            color: 237 20 20 255;
            link.base: "polkit,login,fail";
            link.transition: DECEL 0.2;
            link.after: "auth_hide";
         }
      }
      program { "auth_hide";
         in: 1.5 0.0;
         action: SIGNAL_EMIT "polkit,hide" "polkit";
      }
      image { "bevel"; clip: "clip";
         desc {
            rel1.to: "base";
            rel2.to: "base";
            image.normal: "bevel_dark_out.png";
            image.border: 1 1 1 1;
            image.middle: 0;
            fill.smooth: 0;
         }
      }
      text { "polkit.text.info"; clip: "clip";
         effect: SHADOW BOTTOM;
         scale: 1;
         desc {
            align: 0.0 0;
            fixed: 0 1;
            rel1.to: "base";
            //rel1.offset: -30 -30;
            rel2.to_x: "base";
            //rel2.offset: 20 10;
            rel2.relative: 1 0;
            color: FN_COL_DEFAULT;
            text { text: "Password required";
               font: FNBD; size: 10;
               size_range: 7 12;
               min: 1 1;
               ellipsis: -1;
               fit: 1 0;
               /*
               filter: "fat = buffer(\"alpha\") \
                        grow ({ 8, dst = fat }) \
                        blur ({ 12, src = fat, color = \"black\" }) \
                        blur ({ 4, color = \"white\" }) \
                        blend ()";
               */
            }
         }
         desc { "success"; inherit: "default";
            text.text: "Authentication successful!";
            color: 0 0 0 255;
            link.base: "polkit,login,success";
            link.transition: DECEL 0.2;
         }
         desc { "failure"; inherit: "default";
            color: 0 0 0 255;
            text.text: "Authentication failed!";
            link.base: "polkit,login,fail";
            link.transition: DECEL 0.2;
         }
      }
      rect { "authclip"; clip: "clip";
         desc{}
         desc { "auth";
            color: 255 255 255 190;
            link.base: "polkit,authenticating";
            link.transition: DECEL 0.2;
         }
      }
      swallow { "polkit.swallow.info"; clip: "clip";
         desc {
            min: 0 40;
            align: 0.5 0;
            rel1.to_x: "base";
            rel1.to_y: "polkit.text.info";
            rel1.relative: 0 1;
            rel1.offset: 0 2;
            rel2.to: "base";
            rel2.relative: 1 0;
         }
      }
      text { "polkit.text.help"; clip: "authclip";
         effect: SHADOW BOTTOM;
         scale: 1;
         desc {
            align: 0.5 1;
            fixed: 0 1;
            rel1.to_x: "base";
            rel1.relative: 0 1;
            rel2.to_x: "base";
            rel2.to_y: "polkit.swallow.users";
            rel2.relative: 1 0;
            color: FN_COL_DISABLE;
            text { text: "Select Authentication ID";
               font: FN; size: 10;
               min: 1 1;
               ellipsis: -1;
            }
         }
         desc { "password"; inherit: "default";
            text.text: "Enter password";
         }
      }
      rect { "pwclip"; clip: "authclip";
         desc { hid;
            minmul: 0 1;
            max: 0 0;
            rel2.relative: 0 1;
            rel1.to: "polkit.swallow.password";
            rel2.to: "polkit.swallow.password";
         }
         desc { "password";
            rel1.to: "polkit.swallow.password";
            rel2.to: "polkit.swallow.password";
         }
      }
      swallow { "polkit.swallow.password"; mouse; clip: "pwclip";
         desc { hid;
            rel1.to: "polkit.swallow.users";
            rel2.to: "polkit.swallow.users";
         }
         desc { "password"; inherit: "default"; vis; }
      }
      swallow { "polkit.swallow.buttons"; mouse; clip: "authclip";
         desc {
            align: 0.5 1;
            rel1.to_x: "base";
            rel1.relative: 0 1;
            rel2.to: "base";
         }
         desc { "password"; inherit: "default"; hid;
            minmul: 1 0;
            max: -1 0;
         }
      }
      swallow { "polkit.swallow.users"; mouse; clip: "authclip";
         desc {
            align: 0.5 1;
            rel1.to_x: "base";
            rel1.relative: 0 1;
            rel2.to_x: "base";
            rel2.to_y: "polkit.swallow.buttons";
            rel2.relative: 1 0;
         }
         desc { "password"; inherit: "default";
            hid;
            rel2.to_y: "base";
            rel2.relative: 1 1;
         }
      }
      target_group: "password" "polkit.swallow.buttons" "polkit.swallow.password"
                    "pwclip" "polkit.swallow.users" "polkit.text.help";
      program { signal: "polkit,password,hidden";
         action: STATE_SET "default";
         groups: "password";
         transition: DECEL 0.2;
      }
      program { signal: "polkit,password,visible";
         action: STATE_SET "password";
         groups: "password";
         transition: DECEL 0.2;
         sequence {
            action: SIGNAL_EMIT "polkit,password,visible,done" "polkit";
            in: 0.01 0;
         }
      }
   }
}

group { "elm/genlist/item_compress/polkit_action/default"; nomouse;
   data.item: "selectraise" "on";
   data.item: "texts" "polkit.text.header polkit.text.desc";
   parts {
      rect { "event"; mouse;
         desc { color: 0 0 0 0; }
      }
      text { "polkit.text.header";
         scale;
         effect: SHADOW BOTTOM;
         desc {
            align: 0 0.5;
            rel1.offset: 2 3;
            rel2.offset: -3 -3;
            rel2.relative: 0.0 1.0;
            color: FN_COL_DEFAULT;
            color_class: "list_item";
            text { font: FNBD; size: 10;
               min: 1 1;
               align: 0 0.5;
               ellipsis: -1;
               text_class: "list_item";
            }
         }
      }
      text { "polkit.text.desc"; inherit: "polkit.text.header";
         desc { "default";
            align: 1.0 0.5;
            rel1.relative: 1 0;
            rel1.to_x: "polkit.text.desc";
            rel2.relative: 1 1;
            rel2.offset: -5 -3;
            text.font: FN;
         }
      }
   }
}