#define ENTRY_BLOCK_HANDLE_SOURCE10 "elm/entry/selection/block_handle_edge_left"
#define ENTRY_BLOCK_HANDLE_SOURCE11 "elm/entry/selection/block_handle_edge_right"
+#define ENTRY_FOCUS_DATA \
+ data.item: "focus_highlight" "on";
+
+#define ENTRY_EDITFIELD_FOCUS_DATA \
+ data.item: "focus_highlight" "off";
+
+#define ENTRY_FOCUS_IMAGE \
+ images { \
+ image: "00_focus.png" COMP; \
+ }
+
+#define ENTRY_EDITFIELD_FOCUS_IMAGE \
+ images { \
+ image: "00_edit_field_focus.png" COMP; \
+ image: "00_eidt_field_bg.png" COMP; \
+ }
+
#define ENTRY_TEXTBLOCK_DEFAULT_REL \
rel1 { \
- relative: 0.0 0.0; \
+ to_x: "focus_left_padding"; \
+ relative: 1.0 0.0; \
} \
rel2 { \
to_x: "editfield_space"; \
#define ENTRY_SWALLOW_PARTS \
part { name: "editfield_space"; \
type: SPACER; \
+ scale: 1; \
description { state: "default" 0.0; \
align: 1.0 0.5; \
min: 0 0; \
max: 0 0; \
- rel1.relative: 1.0 0.0; \
- rel2.relative: 1.0 1.0; \
+ rel1 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 1.0; \
+ } \
} \
description { state: "rename_visible" 0.0; \
inherit: "default" 0.0; \
} \
part { name: "elm.swallow.clear"; \
type: SWALLOW; \
+ scale: 1; \
description { state: "default" 0.0; \
+ align: 1.0 0.5; \
fixed: 1 1; \
- rel1.relative: 1.0 0.0; \
- rel2.relative: 1.0 1.0; \
+ rel1 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 1.0; \
+ } \
visible: 0; \
} \
description { state: "visible" 0.0; \
inherit: "default" 0.0; \
- align: 1.0 0.5; \
visible: 1; \
} \
} \
part { name: "elm.swallow.rename"; \
type: SWALLOW; \
+ scale: 1; \
description { state: "default" 0.0; \
+ align: 1.0 0.5; \
fixed: 1 1; \
+ rel1 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 1.0; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define ENTRY_FOCUS_PARTS \
+ part { name: "focus_bg"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ } \
+ } \
+ part { name: "focus_left_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
+ align: 0.0 0.5; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_right_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
align: 1.0 0.5; \
- rel1.relative: 1.0 0.0; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_image"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ image { \
+ normal: "00_focus.png"; \
+ border: 6 6 6 6; \
+ border_scale: 1; \
+ } \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_FOCUS_PARTS \
+ part { name: "focus_bg"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ image { \
+ normal: "00_edit_field_bg.png"; \
+ border: 8 8 8 8; \
+ border_scale: 1; \
+ } \
+ rel1.relative: 0.0 0.0; \
rel2.relative: 1.0 1.0; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
visible: 0; \
} \
- description { state: "visible" 0.0; \
+ } \
+ part { name: "focus_left_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
+ align: 0.0 0.5; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_right_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
+ align: 1.0 0.5; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_image"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ image { \
+ normal: "00_edit_field_focus.png"; \
+ border: 8 8 8 8; \
+ border_scale: 1; \
+ } \
+ rel1 { \
+ to: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ } \
+ description { state: "focused" 0.0; \
inherit: "default" 0.0; \
visible: 1; \
} \
source: "*"; \
script { \
set_int(scroll_enabled, 1); \
+ set_state(PART:"focus_bg", "hidden", 0.0); \
+ set_state(PART:"focus_left_padding", "hidden", 0.0); \
+ set_state(PART:"focus_right_padding", "hidden", 0.0); \
} \
} \
program { name: "scroll_disabled"; \
source: "*"; \
script { \
set_int(scroll_enabled, 0); \
+ set_state(PART:"focus_bg", "default", 0.0); \
+ set_state(PART:"focus_left_padding", "default", 0.0); \
+ set_state(PART:"focus_right_padding", "default", 0.0); \
} \
} \
program { name: "clear_show"; \
} \
}
+#define ENTRY_FOCUS_PROGRAMS \
+ program { name: "action_focus"; \
+ signal: "elm,action,focus_highlight,show"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_image", "focused", 0.0); \
+ } \
+ } \
+ } \
+ program { name: "action_unfocus"; \
+ signal: "elm,action,focus_highlight,hide"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_image", "default", 0.0); \
+ } \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_FOCUS_PROGRAMS \
+ program { name: "action_focus"; \
+ signal: "elm,state,focus,on"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_image", "focused", 0.0); \
+ } \
+ } \
+ } \
+ program { name: "action_unfocus"; \
+ signal: "elm,state,focus,off"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_image", "default", 0.0); \
+ } \
+ } \
+ }
+
sounds {
sample {
name: "touch_sound" AS_IS;
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_EDITFIELD_FOCUS_DATA
+ ENTRY_EDITFIELD_FOCUS_IMAGE
parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_EDITFIELD_FOCUS_DATA
+ ENTRY_EDITFIELD_FOCUS_IMAGE
parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_EDITFIELD_FOCUS_DATA
+ ENTRY_EDITFIELD_FOCUS_IMAGE
parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
tag: "hilight" "+ font=Tizen:style=Bold";
}
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
data {
item: context_menu_orientation "horizontal";
}
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
tag: "hilight" "+ font=Tizen:style=Bold";
}
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
data {
item: context_menu_orientation "horizontal";
}
+ ENTRY_FOCUS_DATA
+ ENTRY_FOCUS_IMAGE
parts {
+ ENTRY_FOCUS_PARTS
part { name: "elm.guide";
type: TEXTBLOCK;
mouse_events: 0;
action: PLAY_SAMPLE "touch_sound" 1.0;
}
ENTRY_SWALLOW_PROGRAMS
+ ENTRY_FOCUS_PROGRAMS
}
}
alias : "elm/scroller/entry/editfield";
alias : "elm/scroller/entry/editfield/searchbar/default";
data {
- item: "focus_highlight" "off";
+ item: "focus_highlight" "on";
+ }
+ images {
+ image: "00_focus.png" COMP;
}
script {
public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
}
}
parts {
+ part { name: "focus_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part { name: "focus_image";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ image {
+ normal: "00_focus.png";
+ border: 6 6 6 6;
+ border_scale: 1;
+ }
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "focus_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 10 0;
+ max: 10 0;
+ align: 0.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 10 0;
+ max: 10 0;
+ align: 1.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ }
part { name: "bg";
type: RECT;
+ scale: 1;
description { state: "default" 0.0;
visible: 0;
+ rel1 {
+ to_x: "focus_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "focus_right_padding";
+ relative: 0.0 1.0;
+ }
}
}
part { name: "clipper";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "bg";
}
part { name: "editfield_space";
type: SPACER;
+ scale: 1;
description { state: "default" 0.0;
align: 1.0 1.0;
+ min: 0 0;
+ max: 0 0;
rel1.to: "elm.swallow.end";
rel1.relative: 0.0 0.0;
rel2.to: "elm.swallow.end";
}
description { state: "clear_visible" 0.0;
inherit: "default" 0.0;
- align: 1.0 1.0;
min: 9 0;
max: 9 0;
rel1 {
}
part { name: "contentclipper";
type: RECT;
+ scale: 1;
mouse_events: 0;
clip_to: "clipper";
description { state: "default" 0.0;
}
part { name: "elm.swallow.icon";
type: SWALLOW;
+ scale: 1;
clip_to: "clipper";
description { state: "default" 0.0;
+ align: 0.0 0.5;
fixed: 1 1;
rel1 {
to: "bg";
visible: 0;
}
description { state: "visible" 0.0;
- fixed: 1 1;
- align: 0.0 1.0;
- rel1 {
- to: "bg";
- relative: 0.0 0.0;
- }
- rel2 {
- to: "bg";
- relative: 0.0 1.0;
- }
+ inherit: "default" 0.0;
visible: 1;
}
}
part { name: "icon_right_padding";
type: SPACER;
+ scale: 1;
clip_to: "clipper";
description { state: "default" 0.0;
fixed: 1 1;
}
part { name: "elm.swallow.clear";
type: SWALLOW;
+ scale: 1;
clip_to: "clipper";
description { state: "default" 0.0;
+ align: 1.0 0.5;
fixed: 1 1;
rel1 {
to_x: "elm.swallow.end";
}
description { state: "clear_visible" 0.0;
inherit: "default" 0.0;
- align: 1.0 1.0;
visible: 1;
}
}
part { name: "elm.swallow.rename";
type: SWALLOW;
+ scale: 1;
clip_to: "clipper";
description { state: "default" 0.0;
- align: 1.0 1.0;
+ align: 1.0 0.5;
fixed: 1 1;
rel1 {
to_x: "elm.swallow.end";
}
part { name: "elm.swallow.end";
type: SWALLOW;
+ scale: 1;
clip_to: "clipper";
description { state: "default" 0.0;
+ align: 1.0 0.5;
fixed: 1 1;
rel1 {
to: "bg";
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
- align: 1.0 1.0;
visible: 1;
}
}
part { name: "elm.swallow.content";
clip_to: "contentclipper";
+ scale: 1;
type: SWALLOW;
description { state: "default" 0.0;
rel1 {
relative: 1.0 0.0;
}
rel2 {
- to: "editfield_space";
+ to_x: "editfield_space";
relative: 0.0 1.0;
}
}
}
part { name: "sb_vbar_clip_master";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
}
part { name: "sb_vbar_clip";
clip_to: "sb_vbar_clip_master";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
}
}
part { name: "sb_vbar";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
}
part { name: "elm.dragable.vbar";
type: RECT;
+ scale: 1;
clip_to: "sb_vbar_clip";
mouse_events: 0;
dragable {
}
part { name: "sb_hbar_clip_master";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
}
part { name: "sb_hbar_clip";
clip_to: "sb_hbar_clip_master";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
}
}
part { name: "sb_hbar";
type: RECT;
+ scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
}
part { name: "elm.dragable.hbar";
type: RECT;
+ scale: 1;
clip_to: "sb_hbar_clip";
mouse_events: 0;
dragable {
set_int(sbvis_timer, v);
}
}
+ program { name: "action_focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "focus_image";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "focus_image";
+ }
}
}
+group { name: "elm/scroller/entry/editfield";
+ inherit: "elm/scroller/entry/default";
+ data {
+ item: "focus_highlight" "off";
+ }
+ images {
+ image: "00_edit_field_focus.png" COMP;
+ image: "00_edit_field_bg.png" COMP;
+ }
+ parts {
+ part { name: "focus_bg";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ image {
+ normal: "00_edit_field_bg.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part { name: "focus_image";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ image {
+ normal: "00_edit_field_focus.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "focus_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 10 0;
+ max: 10 0;
+ align: 0.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 10 0;
+ max: 10 0;
+ align: 1.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 {
+ to_x: "focus_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "focus_right_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "action_focus";
+ signal: "elm,state,focus,on";
+ source: "*";
+ action: STATE_SET "focused" 0.0;
+ target: "focus_image";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,state,focus,off";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "focus_image";
+ }
+ }
+}
+
+
+