2008-08-31 18:01:36 +00:00
|
|
|
// incall.edc
|
|
|
|
// this is a theme for epydial, a pyneo dialer
|
|
|
|
//
|
|
|
|
// TODO: make the font colors shinier :)
|
|
|
|
//
|
2008-09-07 14:52:44 +00:00
|
|
|
// Signal1: "dialer_incall_send"
|
|
|
|
// Parameter1.1: "Accept Call"
|
|
|
|
// Parameter1.2: "Hangup Call"
|
2008-08-31 18:01:36 +00:00
|
|
|
|
|
|
|
data {
|
|
|
|
item: "author" "thomasg [thomas (a) gstaedtner (.) net]";
|
|
|
|
item: "version" "prototype";
|
|
|
|
item: "name" "epydial_default";
|
|
|
|
}
|
|
|
|
|
2008-09-07 14:52:44 +00:00
|
|
|
images {
|
|
|
|
image: "yes.png" COMP;
|
|
|
|
image: "no.png" COMP;
|
|
|
|
image: "caller.png" COMP;
|
|
|
|
}
|
|
|
|
|
2008-08-31 18:01:36 +00:00
|
|
|
color_classes {
|
|
|
|
color_class {
|
|
|
|
name: "button_inactive";
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 25 215 0 255;
|
|
|
|
color3: 25 215 0 255;
|
|
|
|
}
|
|
|
|
color_class {
|
|
|
|
name: "button_active";
|
|
|
|
color: 0 0 0 255;
|
|
|
|
color2: 0 0 0 255;
|
|
|
|
color3: 0 0 0 255;
|
|
|
|
}
|
2008-09-07 14:52:44 +00:00
|
|
|
color_class {
|
|
|
|
name: "active";
|
|
|
|
color: 255 255 255 128;
|
|
|
|
color2: 128 128 128 255;
|
|
|
|
color3: 128 128 128 255;
|
|
|
|
}
|
2008-08-31 18:01:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
spectra {
|
|
|
|
spectrum {
|
|
|
|
name: "background";
|
|
|
|
color: 80 80 80 255 1;
|
|
|
|
color: 210 210 210 255 1;
|
|
|
|
}
|
|
|
|
spectrum {
|
|
|
|
name: "button";
|
|
|
|
color: 5 5 5 255 1;
|
|
|
|
color: 110 110 110 255 1;
|
|
|
|
color: 10 10 10 255 1;
|
|
|
|
}
|
|
|
|
spectrum {
|
|
|
|
name: "button_active";
|
|
|
|
color: 15 170 0 255 1;
|
|
|
|
color: 130 255 0 255 1;
|
|
|
|
color: 20 200 0 255 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#define BUTTON(button_number, rel1x, rel1y, rel2x, rel2y, button_caption) \
|
|
|
|
part { \
|
|
|
|
name: "button_"button_number; \
|
|
|
|
type: GRADIENT; \
|
|
|
|
description { \
|
|
|
|
state: "default" 0; \
|
|
|
|
gradient { \
|
|
|
|
spectrum: "button"; \
|
|
|
|
rel1 { relative: 0 0; offset: 0 0; }; \
|
|
|
|
rel2 { relative: 0 0.75; offset: 0 0; }; \
|
|
|
|
} \
|
|
|
|
fill { \
|
|
|
|
spread: 1; \
|
|
|
|
angle: 1; \
|
|
|
|
size { relative: 1 0; offset: 0 0; }; \
|
|
|
|
} \
|
|
|
|
rel1 { relative: rel1x rel1y; offset: 0 0; }; \
|
|
|
|
rel2 { relative: rel2x rel2y; offset: 0 0; }; \
|
|
|
|
} \
|
|
|
|
description { \
|
|
|
|
state: "default" 0.5; \
|
|
|
|
inherit: "default" 0; \
|
|
|
|
gradient.spectrum: "button_active"; \
|
|
|
|
rel1.offset: 0 -5; \
|
|
|
|
rel2.offset: 0 5; \
|
|
|
|
} \
|
|
|
|
description { \
|
|
|
|
state: "default" 1; \
|
|
|
|
inherit: "default" 0; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
part { \
|
|
|
|
name: "button_accent_"button_number; \
|
|
|
|
type: RECT; \
|
|
|
|
description { \
|
|
|
|
state: "default" 0; \
|
|
|
|
color: 25 215 0 255; \
|
|
|
|
rel1 { \
|
|
|
|
to: "button_"button_number; \
|
|
|
|
relative: 0 0.95; \
|
|
|
|
} \
|
|
|
|
rel2.to: "button_"button_number; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
part { \
|
|
|
|
name: "button_"button_number"_caption"; \
|
|
|
|
type: TEXT; \
|
|
|
|
mouse_events: 0; \
|
|
|
|
effect: GLOW; \
|
|
|
|
description { \
|
|
|
|
state: "default" 0; \
|
|
|
|
color_class: "button_inactive"; \
|
|
|
|
rel1 { \
|
|
|
|
to: "button_"button_number; \
|
|
|
|
relative: 0 0; \
|
|
|
|
} \
|
|
|
|
rel2 { \
|
|
|
|
to: "button_"button_number; \
|
|
|
|
relative: 1 1; \
|
|
|
|
} \
|
|
|
|
text { \
|
|
|
|
text: button_caption; \
|
|
|
|
size: 18; \
|
|
|
|
font: "Sans:style=Bold,Edje-Vera"; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
program { \
|
|
|
|
name: "button_"button_number"_signal_emit"; \
|
|
|
|
signal: "mouse,down,*"; \
|
|
|
|
source: "button_"button_number; \
|
|
|
|
action: SIGNAL_EMIT "dialer_send" button_caption; \
|
|
|
|
} \
|
|
|
|
program { \
|
|
|
|
name: "button_"button_number"_animation"; \
|
|
|
|
signal: "mouse,down,*"; \
|
|
|
|
source: "button_"button_number; \
|
|
|
|
action: STATE_SET "default" 0.5; \
|
|
|
|
target: "button_"button_number; \
|
|
|
|
} \
|
|
|
|
program { \
|
|
|
|
name: "button_"button_number"_animation_end"; \
|
|
|
|
signal: "mouse,up,*"; \
|
|
|
|
source: "button_"button_number; \
|
|
|
|
action: STATE_SET "default" 1; \
|
|
|
|
target: "button_"button_number; \
|
|
|
|
transition: DECELERATE 0.1; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DESIGN_STRIPE(stripe_number, rel1x, rel1y, rel2x, rel2y) \
|
|
|
|
part { \
|
|
|
|
name: "design_stripe_"stripe_number; \
|
|
|
|
type: RECT; \
|
|
|
|
description { \
|
|
|
|
state: "default" 0; \
|
|
|
|
color: 0 0 0 255; \
|
|
|
|
rel1 { relative: rel1x rel1y; offset: 0 0; }; \
|
|
|
|
rel2 { relative: rel2x rel2y; offset: 0 0; }; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DESIGN_SEPERATOR(seperator_number, rel1x, rel1y, rel2x, rel2y) \
|
|
|
|
part { \
|
|
|
|
name: "design_seperator_"seperator_number; \
|
|
|
|
type: RECT; \
|
|
|
|
description { \
|
|
|
|
state: "defeault" 0; \
|
|
|
|
color: 255 255 255 100; \
|
|
|
|
rel1 { relative: rel1x rel1y; offset: -0.5 7; }; \
|
|
|
|
rel2 { relative: rel2x rel2y; offset: 0.5 -9; }; \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
collections {
|
|
|
|
group {
|
|
|
|
name: "pyneo/dialer/incall";
|
|
|
|
min: 100 100;
|
|
|
|
max: 800 800;
|
|
|
|
parts {
|
|
|
|
part {
|
|
|
|
name: "background";
|
2008-09-07 14:52:44 +00:00
|
|
|
type: RECT;
|
2008-08-31 18:01:36 +00:00
|
|
|
description {
|
2008-09-07 14:52:44 +00:00
|
|
|
color_class: "active";
|
2008-08-31 18:01:36 +00:00
|
|
|
state: "default" 0;
|
2008-09-07 14:52:44 +00:00
|
|
|
rel1 { relative: 0 6/20; };
|
|
|
|
rel2 { relative: 1 14/20; };
|
2008-08-31 18:01:36 +00:00
|
|
|
}
|
|
|
|
}
|
2008-09-07 14:52:44 +00:00
|
|
|
part {
|
|
|
|
name: "number_incall_text";
|
|
|
|
type: TEXT;
|
|
|
|
description {
|
|
|
|
color_class: "button_inactive";
|
|
|
|
state: "default" 0;
|
|
|
|
rel1 { relative: 0 6/20; }
|
|
|
|
rel2 { relative: 1 8/20; }
|
|
|
|
text { text, "number"; font: "Sans"; size, 1; align, 0.5 0.5; fit, 0 1; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "image_incall";
|
|
|
|
type: IMAGE;
|
|
|
|
description {
|
|
|
|
rel1 { relative: 1/2 1/2;
|
|
|
|
offset: -80 -80;
|
|
|
|
}
|
|
|
|
rel2 { relative: 1/2 1/2;
|
|
|
|
offset: 80 80;
|
|
|
|
}
|
|
|
|
image { normal: "caller.png"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "incall_yes";
|
|
|
|
type: IMAGE;
|
|
|
|
description {
|
|
|
|
rel1 {
|
|
|
|
relative: 1/8 0.7;
|
|
|
|
offset: -50 -110;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1/8 0.7;
|
|
|
|
offset: 50 -10;
|
|
|
|
}
|
|
|
|
image { normal: "yes.png"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { \
|
|
|
|
name: "button_incall_yes_signal_emit"; \
|
|
|
|
signal: "mouse,down,*"; \
|
|
|
|
source: "incall_yes"; \
|
|
|
|
action: SIGNAL_EMIT "dialer_incall_send" "Accept Call"; \
|
|
|
|
} \
|
|
|
|
part {
|
|
|
|
name: "incall_no";
|
|
|
|
type: IMAGE;
|
|
|
|
description {
|
|
|
|
rel1 {
|
|
|
|
relative: 7/8 0.7;
|
|
|
|
offset: -50 -110;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 7/8 0.7;
|
|
|
|
offset: 50 -10;
|
|
|
|
}
|
|
|
|
image { normal: "no.png"; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { \
|
|
|
|
name: "button_incall_no_signal_emit"; \
|
|
|
|
signal: "mouse,down,*"; \
|
|
|
|
source: "incall_no"; \
|
|
|
|
action: SIGNAL_EMIT "dialer_incall_send" "Hangup Call"; \
|
|
|
|
} \
|
2008-08-31 18:01:36 +00:00
|
|
|
|
2008-09-07 14:52:44 +00:00
|
|
|
/*
|
2008-08-31 18:01:36 +00:00
|
|
|
BUTTON(1, 0.1, 0.2, 0.9, 0.4, "End Call");
|
|
|
|
BUTTON(2, 0.1, 0.45, 0.9, 0.65, "Back To Dialer");
|
|
|
|
BUTTON(3, 0.1, 0.7, 0.9, 0.9, "Hold Call");
|
2008-09-07 14:52:44 +00:00
|
|
|
DESIGN_SEPERATOR(1, 1/3, 25/70, 1/3, 35/70);
|
|
|
|
DESIGN_SEPERATOR(2, 2/3, 25/70, 2/3, 35/70); */
|
2008-08-31 18:01:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|