aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/packagekit.edc
blob: e37d35176dd1ab458c05cfac4be06e0b4850223a (plain) (blame)
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
group { name: "e/modules/packagekit/icon/bugfix";
   images.image: "icon_spanner.png" COMP;
   parts {
      part { name: "image";  mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_spanner.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/icon/enhancement";
   images.image: "icon_arrow_up.png" COMP;
   parts {
      part { name: "image"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_arrow_up.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/icon/important";
   images.image: "icon_warning.png" COMP;
   parts {
      part { name: "image"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_warning.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/icon/low";
   images.image: "icon_splat_half.png" COMP;
   parts {
      part { name: "image"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_splat_half.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/icon/normal";
   images.image: "icon_splat.png" COMP;
   parts {
      part { name: "image"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_splat.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/icon/security";
   images.image: "icon_system-lock-screen.png" COMP;
   parts {
      part { name: "image"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "icon_system-lock-screen.png";
         }
      }
   }
}

group { name: "e/modules/packagekit/main";
   max: 160 160;
   images.image: "packagekit_base.png" COMP;
   images.image: "icon_border_remember.png" COMP;
   images.image: "glow_exclam.png" COMP;
   images.image: "glow_round_corners_small.png" COMP;
   images.image: "knob_round_small_busy.png" COMP;
   parts {
      part { name: "base"; 
         description { state: "default" 0.0;
            aspect: 1.0 1.0; aspect_preference: BOTH;
            image.normal: "packagekit_base.png";
         }
      }
      part { name: "status"; 
         description { state: "default" 0.0;
            aspect: 1.0 1.0; aspect_preference: BOTH;
            visible: 0;
            rel1.relative: (36/160) (60/160);
            rel2.relative: ((36+88)/160) ((60+88)/160);
         }
         description { state: "running" 0.0;
            inherit: "default" 0.0;
         }
         description { state: "updates" 0.0;
            inherit: "default" 0.0;
         }
         description { state: "updated" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            image.normal: "icon_border_remember.png";
            max: 16 16;
         }
         description { state: "error" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            image.normal: "glow_exclam.png";
            max: 16 16;
         }
      }
      part { name: "num_updates"; type: TEXT;
         scale: 1;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            rel1.relative: (36/160) (60/160);
            rel2.relative: ((36+88)/160) ((60+88)/160);
            color: FN_COL_DISABLE;
            text { font: FN; size: 10;
            }
         }
      }
      part { name: "busy_clip"; type: RECT;
         description { state: "default" 0.0;
            color: 255 255 255 0;
            visible: 0;
         }
         description { state: "busy" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 255;
            visible: 1;
         }
      }
      part { name: "knob"; mouse_events: 0;
         clip_to: "busy_clip";
         description { state: "default" 0.0;
            fixed: 1 1;
            image.normal: "knob_round_small_busy.png";
            aspect: 1.0 1.0; aspect_preference: VERTICAL;
            max: 20 20;
            rel1.relative: (36/160) (60/160);
            rel2.relative: ((36+88)/160) ((60+88)/160);
         }
      }
      part { name: "knob_spinner"; mouse_events: 0;
         clip_to: "busy_clip";
         description { state: "default" 0.0;
            fixed: 1 1;
            rel1.to: "knob";
            rel2.to: "knob";
            image.normal: "glow_round_corners_small.png";
            map.on: 1;
            map.smooth: 1;
            map.rotation.center: "knob";
         }
         description { state: "spin" 0.0;
            inherit: "default" 0.0;
            map.rotation.z: 360;
         }
      }
      
   }
   programs {
      program { name: "spin";
         signal: "e,state,hung"; source: "e";
         action: STATE_SET "spin" 0.0;
         transition: LINEAR 1.0;
         target: "knob_spinner";
         after: "spin2";
      }
      program { name: "spin2";
         action: STATE_SET "default" 0.0;
         target: "knob_spinner";
         after: "spin";
      }
      program { name: "busy-on";
         signal: "e,state,hung"; source: "e";
         action: STATE_SET "busy" 0.0;
         transition: SINUSOIDAL 0.25;
         target: "busy_clip";
      }
      program { name: "busy-off";
         signal: "e,state,unhung"; source: "e";
         action: STATE_SET "default" 0.0;
         transition: SINUSOIDAL 1.0;
         target: "busy_clip";
         after: "spin3";
      }
      program { name: "spin3";
         action: ACTION_STOP;
         target: "spin";
         target: "spin2";
         after: "spin4";
      }
      program { name: "spin4";
         action: STATE_SET "default" 0.0;
         target: "knob_spinner";
      }
      
      program {
         signal: "packagekit,state,none"; source: "e";
         action: STATE_SET "default" 0.0;
         target: "status";
         after: "busy-off";
      }
      program {
         signal: "packagekit,state,working"; source: "e";
         action: STATE_SET "running" 0.0;
         target: "status";
         after: "spin";
      }
      program {
         signal: "packagekit,state,working"; source: "e";
         action: STATE_SET "running" 0.0;
         target: "status";
         after: "busy-on";
      }
      program {
         signal: "packagekit,state,updates"; source: "e";
         action: STATE_SET "updates" 0.0;
         target: "status";
         after: "busy-off";
      }
      program {
         signal: "packagekit,state,updated"; source: "e";
         action: STATE_SET "updated" 0.0;
         target: "status";
         after: "busy-off";
      }
      program {
         signal: "packagekit,state,error"; source: "e";
         action: STATE_SET "error" 0.0;
         target: "status";
         after: "busy-off";
      }
   }
}