summaryrefslogtreecommitdiff
path: root/res/edc/widget/button.edc
diff options
context:
space:
mode:
Diffstat (limited to 'res/edc/widget/button.edc')
-rwxr-xr-xres/edc/widget/button.edc106
1 files changed, 88 insertions, 18 deletions
diff --git a/res/edc/widget/button.edc b/res/edc/widget/button.edc
index 9374fce..3b46fa8 100755
--- a/res/edc/widget/button.edc
+++ b/res/edc/widget/button.edc
@@ -19,13 +19,14 @@
#define COLOR_TEXT_INDEX 77 77 77 255
#define COLOR_TEXT_FOCUS 255 255 255 255
- #include "../../../include/define.h"
+#include "../../../include/define.h"
group {
data.item: "focus_highlight" "on";
name: "elm/button/base/menu_btn";
images {
image: "icon_button_more_rotation.png" COMP;
+ image: "icon_button_more_rotation_default_2.png" COMP;
}
parts {
part {
@@ -38,12 +39,12 @@ group {
color: 0 119 246 255;
fixed: 1 1;
max: 46 46;
- visible: 1;
+ visible: 0;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- visible: 0;
+ visible: 1;
}
}
part {
@@ -52,21 +53,16 @@ group {
scale: 1;
description {
state: "default" 0.0;
- image.normal: "icon_button_more_rotation.png";
+ image.normal: "icon_button_more_rotation_default_2.png";
align: 0.0 0.0;
fixed: 1 1;
visible: 1;
}
- /*description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "icon_button_more_rotation.png";
- }
description {
state: "focused" 0.0;
inherit: "default" 0.0;
image.normal: "icon_button_more_rotation.png";
- }*/
+ }
}
part {
name: "event";
@@ -78,21 +74,95 @@ group {
}
}
programs {
- /*program {
- name: "disabled";
- signal: SIGNAL_DISABLED;
+ program {
+ name: "focused";
+ signal: SIGNAL_FOCUSED;
source: SOURCE_ELM;
- action: STATE_SET "disabled" 0.0;
+ action: STATE_SET "focused" 0.0;
target: btn_bg;
- target: part_popup_down_btn;
+ target: part_menu_btn;
}
program {
+ name: "unfocused";
+ signal: SIGNAL_UNFOCUSED;
+ source: SOURCE_ELM;
+ action: STATE_SET "default" 0.0;
+ target: btn_bg;
+ target: part_menu_btn;
+ }
+ program {
+ name: "mouse_unclick_after";
+ signal: "mouse,clicked,1";
+ source: "event";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ }
+}
+
+group {
+ data.item: "focus_highlight" "on";
+ name: "elm/button/base/menu_btn_text";
+ parts {
+ part {
+ name: "btn_bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ color: 0 119 246 255;
+ fixed: 1 1;
+ max: 46 46;
+ visible: 0;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "part_menu_btn_text";
+ type: TEXT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ text {
+ font: FONT_TIZENSANS_REGULAR;
+ text: "OK";
+ size: 20;
+ min: 1 1;
+ ellipsis: -1;
+ align: 0.5 0.5;
+ }
+ color: 51 51 51 255;
+ max: 46 46;
+ fixed: 1 1;
+ visible: 1;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part {
+ name: "event";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
name: "focused";
signal: SIGNAL_FOCUSED;
source: SOURCE_ELM;
action: STATE_SET "focused" 0.0;
target: btn_bg;
- target: part_popup_down_btn;
+ target: part_menu_btn_text;
}
program {
name: "unfocused";
@@ -100,8 +170,8 @@ group {
source: SOURCE_ELM;
action: STATE_SET "default" 0.0;
target: btn_bg;
- target: part_popup_down_btn;
- }*/
+ target: part_menu_btn_text;
+ }
program {
name: "mouse_unclick_after";
signal: "mouse,clicked,1";