images {
image: "connman-disconnect.png" COMP;
image: "connman-disconnect-offline.png" COMP;
+ image: "connman-connecting-1.png" COMP;
+ image: "connman-connecting-2.png" COMP;
+ image: "connman-connecting-3.png" COMP;
+ image: "connman-connecting-4.png" COMP;
image: "connman-ethernet.png" COMP;
image: "connman-wifi-good.png" COMP;
image: "connman-wifi-medium.png" COMP;
color: 255 255 255 255;
}
description {
- state: "pulse" 0.0;
- color: 255 255 255 128;
+ state: "inverted" 0.0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ }
+ part { name: "state-inverted-clipper";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ description {
+ state: "inverted" 0.0;
+ color: 255 255 255 255;
+ visible: 1;
}
}
programs {
program { name: "e,changed,state,ready";
signal: "e,changed,state,ready";
source: "e";
- script {
- stop_program(PROGRAM:"state,pulse,0");
- stop_program(PROGRAM:"state,pulse,1");
- }
- after: "state,ready,apply";
+ action: STATE_SET "default" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting-stop";
}
- program { name: "state,ready,apply";
+ program { name: "e,changed,state,failure";
+ signal: "e,changed,state,failure";
+ source: "e";
action: STATE_SET "default" 0.0;
target: "state-clipper";
- transition: LINEAR 0.1;
+ target: "state-inverted-clipper";
+ after: "state-connecting-stop";
}
program { name: "e,changed,state,association";
signal: "e,changed,state,association";
source: "e";
- after: "state,pulse,0";
+ action: STATE_SET "inverted" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting";
}
program { name: "e,changed,state,configuration";
signal: "e,changed,state,configuration";
source: "e";
- after: "state,pulse,0";
+ action: STATE_SET "inverted" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting";
}
- program { name: "e,changed,state,failure";
- signal: "e,changed,state,failure";
- source: "e";
- script {
- stop_program(PROGRAM:"state,pulse,0");
- stop_program(PROGRAM:"state,pulse,1");
- }
- after: "state,failure,apply";
+ program { name: "state-connecting-stop";
+ action: ACTION_STOP;
+ target: "state-connecting";
+ after: "state-connecting-stop2";
}
- program { name: "state,failure,apply";
+ program { name: "state-connecting-stop2";
action: STATE_SET "default" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.1;
- // TODO: something else to notify failure?
+ target: "connecting";
}
- program { name: "state,pulse,0";
- action: STATE_SET "default" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.8;
- after: "state,pulse,1";
- }
- program { name: "state,pulse,1";
- action: STATE_SET "pulse" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.8;
- after: "state,pulse,0";
+ program { name: "state-connecting";
+ action: STATE_SET "connecting" 0.0;
+ target: "connecting";
+ transition: LINEAR 0.5333;
+ after: "state-connecting";
}
}
}
}
+ part { name: "connecting";
+ type: IMAGE;
+ mouse_events: 0;
+ clip_to: "state-inverted-clipper";
+ description {
+ state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ fixed: 1 1;
+ image.normal: "connman-disconnect.png";
+ }
+ description { state: "connecting" 0.0;
+ inherit: "default" 0.0;
+ image.tween: "connman-connecting-1.png";
+ image.tween: "connman-connecting-2.png";
+ image.tween: "connman-connecting-3.png";
+ image.normal: "connman-connecting-4.png";
+ }
+ }
+
part { name: "ethernet-visibility";
type: RECT;
mouse_events: 0;
image: "inset_sunk.png" COMP;
image: "connman-disconnect.png" COMP;
image: "connman-disconnect-offline.png" COMP;
+ image: "connman-connecting-1.png" COMP;
+ image: "connman-connecting-2.png" COMP;
+ image: "connman-connecting-3.png" COMP;
+ image: "connman-connecting-4.png" COMP;
image: "connman-ethernet.png" COMP;
image: "connman-wifi.png" COMP;
}
color: 255 255 255 255;
}
description {
- state: "pulse" 0.0;
- color: 255 255 255 128;
+ state: "inverted" 0.0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ }
+ part { name: "state-inverted-clipper";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ description {
+ state: "inverted" 0.0;
+ color: 255 255 255 255;
+ visible: 1;
}
}
programs {
program { name: "e,changed,state,ready";
signal: "e,changed,state,ready";
source: "e";
- script {
- stop_program(PROGRAM:"state,pulse,0");
- stop_program(PROGRAM:"state,pulse,1");
- }
- after: "state,ready,apply";
+ action: STATE_SET "default" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting-stop";
}
- program { name: "state,ready,apply";
+ program { name: "e,changed,state,failure";
+ signal: "e,changed,state,failure";
+ source: "e";
action: STATE_SET "default" 0.0;
target: "state-clipper";
- transition: LINEAR 0.1;
+ target: "state-inverted-clipper";
+ after: "state-connecting-stop";
}
program { name: "e,changed,state,association";
signal: "e,changed,state,association";
source: "e";
- after: "state,pulse,0";
+ action: STATE_SET "inverted" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting";
}
program { name: "e,changed,state,configuration";
signal: "e,changed,state,configuration";
source: "e";
- after: "state,pulse,0";
+ action: STATE_SET "inverted" 0.0;
+ target: "state-clipper";
+ target: "state-inverted-clipper";
+ after: "state-connecting";
}
- program { name: "e,changed,state,failure";
- signal: "e,changed,state,failure";
- source: "e";
- script {
- stop_program(PROGRAM:"state,pulse,0");
- stop_program(PROGRAM:"state,pulse,1");
- }
- after: "state,failure,apply";
+ program { name: "state-connecting-stop";
+ action: ACTION_STOP;
+ target: "state-connecting";
+ after: "state-connecting-stop2";
}
- program { name: "state,failure,apply";
+ program { name: "state-connecting-stop2";
action: STATE_SET "default" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.1;
- // TODO: something else to notify failure?
+ target: "connecting";
}
- program { name: "state,pulse,0";
- action: STATE_SET "default" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.8;
- after: "state,pulse,1";
- }
- program { name: "state,pulse,1";
- action: STATE_SET "pulse" 0.0;
- target: "state-clipper";
- transition: LINEAR 0.8;
- after: "state,pulse,0";
+ program { name: "state-connecting";
+ action: STATE_SET "connecting" 0.0;
+ target: "connecting";
+ transition: LINEAR 0.5333;
+ after: "state-connecting";
}
}
}
}
+ part { name: "connecting";
+ type: IMAGE;
+ mouse_events: 0;
+ clip_to: "state-inverted-clipper";
+ description {
+ state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ fixed: 1 1;
+ image.normal: "connman-disconnect.png";
+ rel1.to: "technology";
+ rel2.to: "technology";
+ }
+ description { state: "connecting" 0.0;
+ inherit: "default" 0.0;
+ image.tween: "connman-connecting-1.png";
+ image.tween: "connman-connecting-2.png";
+ image.tween: "connman-connecting-3.png";
+ image.normal: "connman-connecting-4.png";
+ }
+ }
+
part { name: "ethernet-visibility";
type: RECT;
mouse_events: 0;