#define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
#define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
#define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
-#define CTXPOPUP_ENTRY_FONT_COLOR 255 255 255 255
-#define CTXPOPUP_ENTRY_SEPARATOR_COLOR 0 0 0 0
-#define CTXPOPUP_ENTRY_ITEM_HEIGHT 44
-#define CTXPOPUP_ENTRY_ICON_SIZE 40
+
+#define CTXPOPUP_ENTRY_SEPARATOR_WIDTH 1
+#define CTXPOPUP_ENTRY_SEPARATOR_HEIGHT 30
+#define CTXPOPUP_ENTRY_ITEM_HEIGHT 46
+#define CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH 10
+#define CTXPOPUP_ENTRY_ICON_SIZE 36
#define CTXPOPUP_ENTRY_ITEM_WIDTH_MAX 150
#define CTXPOPUP_ENTRY_LIST_SHADOW_PADDING 3
#define CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR 200 200 200 127
-#define CTXPOPUP_ENTRY_ARROW_SIZE 14
+#define CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 15
+#define CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH 30
///////////////////////////////////////////////////////////////////////////////////////
group {
name: "elm/ctxpopup/base/extended/entry";
alias: "elm/ctxpopup/base/extended/entry/pass_event";
images {
- image: "ctxpopup_bg.png" COMP;
- image: "ctxpopup_shadow.png" COMP;
- image: "copypaste_btn_bg.png" COMP;
+ image: "copy&paste_bg_center.png" COMP;
}
parts {
part {
- name:"frame_shadow_left_top_padding";
- type:RECT;
+ name: "ctxpopup_frame";
+ type: RECT;
scale: 1;
- mouse_events: 0;
description {
- min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
- max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
- align: 0 0;
- fixed: 1 1;
visible: 0;
+ rel1 {
+ to: "frame_left_padding";
+ relative: 0 0;
+ }
+ rel2 {
+ to: "frame_right_padding";
+ relative: 1 1;
+ }
}
}
part {
- name:"frame_shadow_right_bottom_padding";
+ name:"frame_left_padding";
type:RECT;
scale: 1;
mouse_events: 0;
description {
- min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
- max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
- rel1{relative: 1 1;}
+ visible: 0;
+ min: 7 1;
+ max: 7 1;
+ rel2 {
+ relative: 0 0;
+ to: "elm.swallow.content";
+ }
align: 0 0;
fixed: 1 1;
- visible: 0;
}
}
part {
- name: "frame_shadow";
- type: IMAGE;
+ name:"frame_right_padding";
+ type:RECT;
scale: 1;
mouse_events: 0;
description {
- state: "default" 0.0;
- rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
- rel2 {to:"frame_shadow_right_bottom_padding";}
- image {
- normal: "ctxpopup_shadow.png";
- border: 10 10 10 10;
- border_scale: 1;
+ visible: 0;
+ min: 7 1;
+ max: 7 1;
+ rel1 {
+ relative: 1 1;
+ to: "elm.swallow.content";
}
- color: 255 255 255 0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
+ align: 1 1;
+ fixed: 1 1;
}
}
+
part {
- name: "ctxpopup_frame";
+ name: "ctxpopup_frame_rect";
type: IMAGE;
scale: 1;
description {
visible: 1;
- rel2 {offset: -1 11;}
image {
- normal: "copypaste_btn_bg.png";
- border: 0 0 0 0;
+ normal: "copy&paste_bg_center.png";
+ border: 5 9 0 7;
border_scale: 1;
}
- }
- }
- part {
- name: "ctxpopup_frame_rect";
- type: RECT;
- scale: 1;
- description {
- visible: 0;
- color: 0 0 0 255;
- }
- }
- part {
- name:"list_shadow_right_bottom_padding";
- type:RECT;
- scale: 1;
- mouse_events: 0;
- description {
- min: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING;
- max: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING;
- align: 0 0;
- fixed: 1 1;
- visible: 0;
- rel1 {to:"elm.swallow.content"; relative: 1 1;}
- }
- }
- part {
- name: "ctxpopup_list";
- type: IMAGE;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 {to: "elm.swallow.content";}
- rel2 {to: "list_shadow_right_bottom_padding";}
- color: 255 255 255 0;
- }
- description {
- state: "show" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part {
- name:"content_left_top_padding";
- type:RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP;
- max: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP;
- align: 0 0;
- fixed: 1 1;
- visible: 0;
+ rel2 { offset: 9 7; }
}
}
part {
scale: 1;
mouse_events: 0;
description {
- min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
- max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
- rel1 { relative: 1 1;}
- rel2 { relative: 1 1;}
+ visible: 0;
+ min: 4 7; // shadow 4 7
+ max: 4 7;
+ rel1 {to: "ctxpopup_frame_rect"; relative: 1 1;}
+ rel2 {to: "ctxpopup_frame_rect"; relative: 1 1;}
align: 1 1;
fixed: 1 1;
- visible: 0;
}
}
part {
type: SWALLOW;
description {
state: "default" 0.0;
- rel1 {to:"content_left_top_padding"; relative: 1 1;}
- rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
+ rel1 {to: "ctxpopup_frame_rect"; relative: 0 0; }
+// rel1 {to: "content_left_padding"; relative: 1 0;}
+ rel2 {to: "content_right_bottom_padding"; relative: 0 0; }
}
}
}
name: "elm/ctxpopup/arrow/extended/entry";
alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
images {
- image: "copypaste_btn_arrow_left.png" COMP;
- image: "copypaste_btn_arrow_right.png" COMP;
- image: "copypaste_btn_arrow_top.png" COMP;
- image: "copypaste_btn_arrow_bottom.png" COMP;
+ image: "copy&paste_arrow_up.png" COMP;
+ image: "copy&paste_arrow_left.png" COMP;
+ image: "copy&paste_arrow_right.png" COMP;
+ image: "copy&paste_arrow_down.png" COMP;
}
parts {
part {
scale: 1;
description {
state: "default" 0.0;
- min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
- max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
+ min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
+ max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
fixed: 1 1;
visible: 0;
align: 0.5 0.5;
}
description {
state: "left" 0.0;
- min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
- max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
+ min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
+ max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
fixed: 1 1;
align: 0.0 0.5;
image {
- normal: "copypaste_btn_arrow_left.png";
+ normal: "copy&paste_arrow_left.png";
}
}
description {
state: "right" 0.0;
- min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
- max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
+ min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
+ max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
fixed: 1 1;
align: 1.0 0.5;
image {
- normal: "copypaste_btn_arrow_right.png";
+ normal: "copy&paste_arrow_right.png";
}
}
description {
state: "top" 0.0;
- min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
- max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
+ min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
+ max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
fixed: 1 1;
align: 0.5 0.0;
image {
- normal: "copypaste_btn_arrow_top.png";
+ normal: "copy&paste_arrow_up.png";
}
}
description {
state: "bottom" 0.0;
- min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
- max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
+ min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
+ max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
fixed: 1 1;
- align: 0.5 1.0;
+ align: 0.5 0;
+ rel1.offset: 0 0;
+ rel2.offset: 0 0;
image {
- normal: "copypaste_btn_arrow_bottom.png";
+ normal: "copy&paste_arrow_down.png";
}
}
}
}
}
///////////////////////////////////////////////////////////////////////////////////////
+#define CTXPOPUP_ENTRY_ITEM_BG_PART \
+ part {\
+ name: "bg";\
+ mouse_events: 0;\
+ type: IMAGE;\
+ description {\
+ state: "default" 0.0;\
+ visible: 0;\
+ rel1 {to:"left_bg_padding"; relative: 1 0;}\
+ rel2 {to:"right_bg_padding"; relative: 0 1;}\
+ image {\
+ normal: "copy&paste_press_center.png";\
+ border: 0 0 0 0;\
+ }\
+ }\
+ description {\
+ state: "clicked" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ image {\
+ normal: "copy&paste_press_center.png";\
+ border: 0 0 0 0;\
+ }\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART \
+ part {\
+ name: "left_bg_padding";\
+ type: IMAGE;\
+ scale: 1;\
+ mouse_events: 0;\
+ description {\
+ state: "default" 0.0;\
+ visible: 0;\
+ min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ align: 0 0.5;\
+ fixed: 1 0;\
+ rel1 { to: "event_blocker"; relative: 0 0; }\
+ rel2 { to: "event_blocker"; relative: 0 1; }\
+ image {\
+ normal: "copy&paste_press_left.png";\
+ border: 6 0 0 0;\
+ }\
+ }\
+ description {\
+ state: "clicked" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ image {\
+ normal: "copy&paste_press_left.png";\
+ border: 6 0 0 0;\
+ }\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART \
+ part {\
+ name: "right_bg_padding";\
+ type: IMAGE;\
+ scale: 1;\
+ mouse_events: 0;\
+ description {\
+ state: "default" 0.0;\
+ visible: 0;\
+ min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ fixed: 1 0;\
+ align: 1.0 0.5;\
+ rel1 { to: "event_blocker"; relative: 1 0; }\
+ rel2 { to: "event_blocker"; relative: 1 1; }\
+ image {\
+ normal: "copy&paste_press_right.png";\
+ border: 0 6 0 0;\
+ }\
+ }\
+ description {\
+ state: "clicked" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ image {\
+ normal: "copy&paste_press_right.png";\
+ border: 0 6 0 0;\
+ }\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART \
+ part {\
+ name: "left_padding";\
+ type: RECT;\
+ scale: 1;\
+ mouse_events: 0;\
+ description {\
+ state: "default" 0.0;\
+ visible: 0;\
+ min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ align: 0 0.5;\
+ fixed: 1 0;\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART \
+ part {\
+ name: "right_padding";\
+ type: RECT;\
+ scale: 1;\
+ mouse_events: 0;\
+ description {\
+ state: "default" 0.0;\
+ visible: 0;\
+ min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
+ fixed: 1 0;\
+ align: 1.0 0.5;\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART \
+ part {\
+ name: "left_separator";\
+ mouse_events: 0;\
+ type: RECT;\
+ scale: 1;\
+ description {\
+ state: "default" 0.0;\
+ visible: 1;\
+ color: CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_COLOR;\
+ min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
+ max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
+ fixed: 1 1;\
+ rel1.to: "left_padding";\
+ rel2 {\
+ to: "left_padding";\
+ relative: 0 1;\
+ }\
+ }\
+ }
+#define CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART \
+ part {\
+ name: "right_separator";\
+ mouse_events: 0;\
+ type: RECT;\
+ scale: 1;\
+ description {\
+ state: "default" 0.0;\
+ visible: 1;\
+ color: CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_COLOR;\
+ min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
+ max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
+ fixed: 1 1;\
+ rel1 {\
+ to: "right_padding";\
+ relative: 1 0;\
+ offset: -1 0;\
+ }\
+ rel2 {\
+ to: "right_padding";\
+ offset: -1 0;\
+ }\
+ }\
+ }
+///////////////////////////////////////////////////////////////////////////////////////
+
group {
name: "elm/ctxpopup/text_style_item/extended/entry";
alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
images {
- image: "copypaste_btn_normal.png" COMP;
- image: "copypaste_btn_press.png" COMP;
+ image: "copy&paste_press_center.png" COMP;
+ image: "copy&paste_press_left.png" COMP;
+ image: "copy&paste_press_right.png" COMP;
}
parts {
part {
color: 0 0 0 0;
}
}
- part {
- name: "left_bg_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- align: 0 0.5;
- fixed: 1 1;
- visible: 0;
- }
- }
- part {
- name: "right_bg_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- visible: 0;
- min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- part {
- name: "bg";
- mouse_events: 0;
- type: IMAGE;
- description {
- state: "default" 0.0;
- rel1 {to:"left_bg_padding"; relative: 1 0;}
- rel2 {to:"right_bg_padding"; relative: 0 1;}
- image {
- normal: "copypaste_btn_normal.png";
- border: 3 3 3 3;
- border_scale: 1;
- }
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "copypaste_btn_press.png";
- border: 3 3 3 3;
- border_scale: 1;
- }
- }
- }
- part {
- name: "left_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- align: 0 0.5;
- fixed: 1 1;
- visible: 0;
- }
- }
- part {
- name: "bottom_separator";
- mouse_events: 0;
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- visible: 0;
- color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
- align: 0.5 1;
- min: 0 1;
- max: 999999 1;
- }
- }
- part {
- name: "right_separator";
- mouse_events: 0;
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
- align: 1 0.5;
- min: 1 0;
- max: 1 999999;
- }
- }
+ CTXPOPUP_ENTRY_ITEM_BG_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
+ CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
part {
name: "elm.text";
type: TEXT;
align: 0.5 0.5;
rel1 {relative: 1.0 0.0; to: "left_padding";}
rel2 {relative: 0.0 1.0; to: "right_padding";}
- color: CTXPOPUP_ENTRY_FONT_COLOR;
+ color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
text {
font: "SLP:style=Roman";
- size: 20;
+ size: 18;
align: 0.5 0.5;
min: 1 1;
}
description {
state: "clicked" 0.0;
inherit: "default" 0.0;
- color: CTXPOPUP_CLICKED_FONT_COLOR;
- }
- }
- part {
- name: "right_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- visible: 0;
- min: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- fixed: 1 0;
- align: 1.0 0.5;
+ color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
}
}
part {
script {
set_state(PART:"elm.text", "clicked", 0.0);
set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"left_bg_padding", "clicked", 0.0);
+ set_state(PART:"right_bg_padding", "clicked", 0.0);
}
}
- }
- program {
- name: "item_unclick2";
- signal: "mouse,up,1";
- source: "over2";
- script {
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"bg", "default", 0.0);
+ program {
+ name: "item_unclick2";
+ signal: "mouse,up,1";
+ source: "over2";
+ script {
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"left_bg_padding", "default", 0.0);
+ set_state(PART:"right_bg_padding", "default", 0.0);
+ }
}
}
}
group {
name: "elm/ctxpopup/icon_style_item/extended/entry";
images {
- image: "copypaste_btn_normal.png" COMP;
- image: "copypaste_btn_press.png" COMP;
+ image: "copy&paste_press_center.png" COMP;
+ image: "copy&paste_press_left.png" COMP;
+ image: "copy&paste_press_right.png" COMP;
}
parts {
part {
color: 0 0 0 0;
}
}
- part {
- name: "left_bg_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- align: 0 0.5;
- fixed: 1 1;
- visible: 0;
- }
- }
- part {
- name: "right_bg_padding";
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- visible: 0;
- min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- part {
- name: "bg";
- mouse_events: 0;
- type: IMAGE;
- description {
- state: "default" 0.0;
- rel1 {to:"left_bg_padding"; relative: 1 0;}
- rel2 {to:"right_bg_padding"; relative: 0 1;}
- image {
- normal: "copypaste_btn_normal.png";
- border: 3 3 3 3;
- border_scale: 1;
- }
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "copypaste_btn_press.png";
- border: 3 3 3 3;
- border_scale: 1;
- }
- }
- }
- part {
- name: "left_top_padding";
- type: RECT;
- scale: 1;
- description {
- min: 6 2;
- max: 6 2;
- visible: 0;
- align: 0 0;
- fixed: 1 1;
- color: 255 0 0 255;
- }
- }
- part {
- name: "right_bottom_padding";
- type: RECT;
- scale: 1;
- description {
- min: 6 2;
- max: 6 2;
- visible: 0;
- align: 1 1;
- fixed: 1 1;
- color: 0 0 255 255;
- }
- }
- part {
- name: "right_separator";
- mouse_events: 0;
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
- align: 1 0.5;
- min: 1 0;
- max: 1 999999;
- }
- }
+ CTXPOPUP_ENTRY_ITEM_BG_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
+ CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
part {
name: "elm.swallow.icon";
type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
- min: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE;
- max: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE;
+ min: 36 36;
+ max: 36 36;
+ fixed: 0 1;
align: 0.5 0.5;
- aspect: 1.0 1.0;
- rel1 { to: "left_top_padding"; relative: 1 1; }
- rel2 { to: "right_bottom_padding"; relative: 0 0; }
+// aspect: 1.0 1.0;
+ rel1 {relative: 1.0 0.0; to: "left_padding";}
+ rel2 {relative: 0.0 1.0; to: "right_padding";}
}
}
part {
target: "disclip";
}
program {
- name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disclip";
- }
- program {
name: "item_click2";
signal: "mouse,down,1";
source: "over2";
script {
set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"left_bg_padding", "clicked", 0.0);
+ set_state(PART:"right_bg_padding", "clicked", 0.0);
}
}
program {
source: "over2";
script {
set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"left_bg_padding", "default", 0.0);
+ set_state(PART:"right_bg_padding", "default", 0.0);
}
}
}