}
group { name: "elm/toolbar/base/default";
- images {
- image: "00_winset_control_toolbar_bg.png" COMP;
- }
parts {
part { name: "base";
+ type: RECT;
mouse_events: 1;
description { state: "default" 0.0;
- image.normal: "00_winset_control_toolbar_bg.png";
+ color: 248 246 239 255;
}
}
part { name: "clipper";
group { name: "elm/toolbar/item/default";
images {
- image: "00_winset_toolbar_press.png" COMP;
+ image: "00_tab_press.png" COMP;
}
data.item: "transition_animation_on" "1";
offset: TOOLBAR_ITEM_BG_REL2_OFFSET_INC;
}
image {
- normal: "00_winset_toolbar_press.png";
+ normal: "00_tab_press.png";
border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
}
image.middle: SOLID;
}
group { name: "elm/toolbar/separator/default";
- images {
- image: "00_winset_divider_line.png" COMP;
- }
parts {
- part { name: "base";
- type: IMAGE;
+ part { name: "divider";
+ type: RECT;
scale: 1;
description { state: "default" 0.0;
- min: 4 48;
+ min: 4 26;
max: 4 9999;
fixed: 1 1;
- rel1.relative: 0.0 0.5;
- rel2.relative: 0.0 0.5;
- image {
- normal: "00_winset_divider_line.png";
- border: 0 0 2 2;
+ rel1 {
+ relative: 0.5 0.5;
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ }
+ }
+ }
+ part { name: "divider_left";
+ type: RECT;
+ clip_to: "divider";
+ description { state: "default" 0.0;
+ color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "divider";
+ }
+ rel2 {
+ relative: 0.5 1.0;
+ to: "divider";
+ }
+ }
+ }
+ part { name: "divider_right";
+ type: RECT;
+ clip_to: "divider";
+ description { state: "default" 0.0;
+ color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
+ rel1 {
+ relative: 0.5 0.0;
+ to: "divider";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "divider";
}
}
}
}
group { name: "elm/toolbar/base/tabbar";
+ images {
+ image: "00_effect_tab_bounce_left.png" COMP;
+ image: "00_effect_tab_bounce_right.png" COMP;
+ }
+ script {
+ public left_timer, right_timer;
+ public l_timer(val) {
+ emit("do-hide-left-shadow", "");
+ set_int(left_timer, 0);
+ return 0;
+ }
+ public r_timer(val) {
+ emit("do-hide-right-shadow", "");
+ set_int(right_timer, 0);
+ return 0;
+ }
+ }
parts {
part { name: "base";
type: RECT;
rel2.to: "clipper";
}
}
- part { name: "event";
+ part { name: "left_shadow_clip";
type: RECT;
- mouse_events: 1;
- repeat_events: 1;
+ mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- }
-}
-
-group { name: "elm/toolbar/more/tabbar";
- images {
- image: "00_winset_control_tab_h_line_h.png" COMP;
- }
- parts {
- part { name: "base";
- type: RECT;
- mouse_events: 1;
- description { state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- color: 248 246 239 255;
- }
- description { state: "open" 0.0;
- inherit: "default" 0.0;
- rel2.relative: 1.0 1.0;
- }
- description { state: "open2" 0.0;
- inherit: "default" 0.0;
- rel2.relative: 1.0 2.0;
- }
- }
- part { name: "clipper";
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- to: "base";
- }
- rel2 {
- to: "base";
- }
- }
- description { state: "open" 0.0;
- inherit: "default" 0.0;
- rel2.relative: 1.0 1.0;
+ visible: 0;
+ color: 255 255 255 0;
}
- description { state: "open2" 0.0;
- inherit: "default" 0.0;
- rel2.relative: 1.0 0.5;
+ description { state: "show" 0.0;
}
}
- part { name: "clipper2";
+ part { name: "right_shadow_clip";
type: RECT;
mouse_events: 0;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.5;
- to: "base";
- }
- rel2 {
- to: "base";
- }
- }
- description { state: "open" 0.0;
- inherit: "default" 0.0;
- rel1.relative: 0.0 1.0;
- }
- description { state: "open2" 0.0;
- inherit: "default" 0.0;
- rel1.relative: 0.0 0.5;
- }
- }
- part { name: "elm.swallow.content";
- clip_to: "clipper";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "clipper";
- rel2.to: "clipper";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
}
- }
- part { name: "elm.swallow.content2";
- clip_to: "clipper2";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "clipper2";
- rel2.to: "clipper2";
+ description { state: "show" 0.0;
}
}
- part { name: "separator";
- clip_to: "clipper";
+ part { name: "shadow_left";
+ clip_to: "left_shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ repeat_events: 1;
description { state: "default" 0.0;
- min: 2 3;
- max: 9999 3;
+ min: 162 0;
fixed: 1 1;
- rel1 {
- relative: 0.0 0.0;
- offset: 0 0;
- to: "clipper";
- }
- rel2 {
- relative: 1.0 0.0;
- offset: -1 3;
- to: "clipper";
- }
- image {
- normal: "00_winset_control_tab_h_line_h.png";
- border: 1 1 1 1;
- }
- fill {
- smooth: 0;
- }
+ align: 0.0 0.5;
+ color: 255 255 255 255;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ image.normal: "00_effect_tab_bounce_left.png";
}
}
- part { name: "separator2";
- clip_to: "clipper2";
+ part { name: "shadow_right";
+ clip_to: "right_shadow_clip";
+ type: IMAGE;
+ scale: 1;
+ repeat_events: 1;
description { state: "default" 0.0;
- min: 2 3;
- max: 9999 3;
+ min: 162 0;
fixed: 1 1;
- rel1 {
- relative: 0.0 0.0;
- offset: 0 0;
- to: "clipper2";
- }
- rel2 {
- relative: 1.0 0.0;
- offset: -1 3;
- to: "clipper2";
- }
- image {
- normal: "00_winset_control_tab_h_line_h.png";
- border: 1 1 1 1;
- }
- fill {
- smooth: 0;
- }
+ align: 1.0 0.5;
+ color: 255 255 255 255;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ image.normal: "00_effect_tab_bounce_right.png";
}
}
}
programs {
- program { name: "open";
- signal: "elm,state,open";
- source: "elm";
- action: STATE_SET "open" 0.0;
- target: "base";
- target: "clipper";
- target: "clipper2";
- transition: LINEAR 0.2;
+ program { name: "load";
+ script {
+ set_int(left_timer, 0);
+ set_int(right_timer, 0);
+ }
}
- program { name: "open2";
- signal: "elm,state,open2";
- source: "elm";
- action: STATE_SET "open2" 0.0;
- target: "base";
- target: "clipper";
- target: "clipper2";
- transition: LINEAR 0.2;
+ program { name: "left_shadow_show";
+ signal: "do-show-left-shadow";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ transition: LINEAR 0.3;
+ target: "left_shadow_clip";
}
- program { name: "close";
- signal: "elm,state,close";
- source: "elm";
+ program { name: "left_shadow_hide";
+ signal: "do-hide-left-shadow";
+ source: "";
action: STATE_SET "default" 0.0;
- target: "base";
- transition: LINEAR 0.2;
+ transition: LINEAR 0.3;
+ target: "left_shadow_clip";
+ }
+ program { name: "right_shadow_show";
+ signal: "do-show-right-shadow";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ transition: LINEAR 0.3;
+ target: "right_shadow_clip";
+ }
+ program { name: "right_shadow_hide";
+ signal: "do-hide-right-shadow";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.3;
+ target: "right_shadow_clip";
+ }
+ program { name: "edge_left";
+ signal: "elm,edge,left";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(left_timer);
+ if (!v) {
+ emit("do-show-left-shadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.5, "l_timer", 0);
+ set_int(left_timer, v);
+ }
+ }
+ program { name: "edge_right";
+ signal: "elm,edge,right";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(right_timer);
+ if (!v) {
+ emit("do-show-right-shadow", "");
+ }
+ if (v > 0) cancel_timer(v);
+ v = timer(0.5, "r_timer", 0);
+ set_int(right_timer, v);
+ }
}
}
}
group { name: "elm/toolbar/item/tabbar";
images {
image: "00_tab_press.png" COMP;
- image: "00_divider_line.png" COMP;
image: "00_badge_bg.png" COMP;
+ image: "00_focus.png" COMP;
}
data.item: "transition_animation_on" "1";
script {
public item_state = ITEM_STATE_ENABLED;
public items_number = 0;
+ public selected = 0;
+ public temp;
}
parts {
part { name: "bg";
mouse_events: 0;
description { state: "default" 0.0;
min: 172 0;
- color: 248 246 239 255;
+ visible: 0;
}
description { state: "icon_text" 0.0;
inherit: "default" 0.0;
min: 229 0;
}
- description { state: "moving" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
}
part { name: "bg_cover";
type: IMAGE;
}
align: 0.5 0.0;
color: 59 115 182 255;
- min: 0 3;
+ min: 0 5;
fixed: 0 1;
visible: 0;
}
scale: 1;
description { state: "default" 0.0;
visible: 0;
- min: 54 48;
+ min: 54 54;
fixed: 1 1;
rel1 {
to: "left.padding.text";
state: "default" 0.0;
visible: 0;
fixed: 1 1;
- min: 13 47;
+ min: 13 54;
rel1 {
to: "elm.text.badge";
relative: 0.0 1.0;
state: "default" 0.0;
visible: 0;
fixed: 1 1;
- min: 8 48;
+ min: 8 54;
rel1 {
to: "padding.badge";
relative: 0.0 1.0;
to: "right.padding.text";
relative: 0.0 1.0;
}
- min: 25 0;
+ min: 33 0;
fixed: 1 0;
align: 1.0 0.5;
color: 10 100 208 255;
}
}
part { name: "divider";
- type: IMAGE;
+ type: RECT;
scale: 1;
description { state: "default" 0.0;
min: 4 26;
relative: 1.0 0.5;
to_y: "elm.swallow.icon";
}
- image {
- normal: "00_divider_line.png";
- border: 0 0 2 2;
- }
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
+ part { name: "divider_left";
+ type: RECT;
+ clip_to: "divider";
+ description { state: "default" 0.0;
+ color: TABBAR_ITEM_DIVIDER_LEFT_COLOR_INC;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "divider";
+ }
+ rel2 {
+ relative: 0.5 1.0;
+ to: "divider";
+ }
+ }
+ }
+ part { name: "divider_right";
+ type: RECT;
+ clip_to: "divider";
+ description { state: "default" 0.0;
+ color: TABBAR_ITEM_DIVIDER_RIGHT_COLOR_INC;
+ rel1 {
+ relative: 0.5 0.0;
+ to: "divider";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "divider";
+ }
+ }
+ }
+ part { name: "highlight";
+ type: IMAGE;
+ description { state: "default" 0.0;
+ visible: 0;
+ image {
+ normal: "00_focus.png";
+ border: 8 8 8 8;
+ }
+ }
+ description { state: "highlighted" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
part { name: "event";
type: RECT;
mouse_events: 1;
+ dragable {
+ x: 1 0 0;
+ y: 1 0 0;
+ }
description { state: "default" 0.0;
color: 0 0 0 0;
}
script{
new st[31];
new Float:vl;
+ set_int(selected, 1);
get_state(PART:"elm.text", st, 30, vl);
- set_state(PART:"elm.text", "selected", vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"elm.text", "selected", vl);
}
}
program { name: "go_passive";
script{
new st[31];
new Float:vl;
+ set_int(selected, 0);
get_state(PART:"elm.text", st, 30, vl);
- set_state(PART:"elm.text", "visible", vl);
+ if (!strcmp(st, "selected"))
+ set_state(PART:"elm.text", "visible", vl);
}
}
program { name: "moving";
signal: "elm,state,moving";
source: "elm";
action: STATE_SET "moving" 0.0;
- target: "bg";
target: "bg_cover";
}
- program { name: "pressed";
+ program { name: "pressed";
signal: "mouse,down,1";
source: "event";
action: STATE_SET "pressed" 0.0;
target: "bg_cover";
}
+ program {
+ name: "drag";
+ signal: "drag";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ new Float:dx, Float:dy;
+ get_state(PART:"bg_cover", st, 30, vl);
+ if (strcmp(st, "moving"))
+ {
+ get_drag(PART:"event", dx, dy);
+ if ((abs(dx)*abs(dx))+(abs(dy)*abs(dy)) > 400)
+ {
+ set_drag(PART:"event", 0.0, 0.0);
+ set_state(PART:"bg_cover", "default", 0.0);
+ }
+ set_drag(PART:"event", 0.0, 0.0);
+ }
+ }
+ }
program { name: "unpressed";
signal: "mouse,up,1";
source: "event";
- action: STATE_SET "default" 0.0;
- target: "bg_cover";
+ script {
+ set_drag(PART:"event", 0.0, 0.0);
+ set_state(PART:"bg_cover", "default", 0.0);
+ }
}
program { name: "go";
signal: "mouse,clicked,1";
source: "event";
action: SIGNAL_EMIT "elm,action,click" "elm";
+ after: "play_sound";
+ }
+ program { name: "play_sound";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
}
program { name: "mouse,in";
signal: "mouse,in";
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "default"))
{
+ if (get_int(selected))
+ set_str(temp, "selected");
+ else
+ set_str(temp, "visible");
+ get_str(temp, st, 31);
+
if (get_int(items_number) <= 2)
- set_state(PART:"elm.text", "visible", 0.30);
+ set_state(PART:"elm.text", st, 0.30);
else if (get_int(items_number) == 3)
- set_state(PART:"elm.text", "visible", 0.28);
+ set_state(PART:"elm.text", st, 0.28);
else if (get_int(items_number) >= 4)
{
get_state(PART:"bg", st, 30, vl);
if (!strcmp(st, "icon_text"))
- set_state(PART:"elm.text", "visible", 0.28);
+ set_state(PART:"elm.text", st, 0.28);
else
- set_state(PART:"elm.text", "visible", 0.24);
+ set_state(PART:"elm.text", st, 0.24);
}
}
}
action: STATE_SET "hidden" 0.0;
target: "divider";
}
+ program { name: "highlight_on";
+ signal: "elm,highlight,on";
+ source: "elm";
+ action: STATE_SET "highlighted" 0.0;
+ target: "highlight";
+ }
+ program { name: "highlight_off";
+ signal: "elm,highlight,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "highlight";
+ }
}
}