summaryrefslogtreecommitdiff
path: root/res/edc/widget
diff options
context:
space:
mode:
Diffstat (limited to 'res/edc/widget')
-rwxr-xr-xres/edc/widget/button.edc106
-rwxr-xr-xres/edc/widget/genlist.edc89
2 files changed, 129 insertions, 66 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";
diff --git a/res/edc/widget/genlist.edc b/res/edc/widget/genlist.edc
index 71a296d..f2e69f9 100755
--- a/res/edc/widget/genlist.edc
+++ b/res/edc/widget/genlist.edc
@@ -14,24 +14,18 @@
* limitations under the License.
*/
-#define SOURCE_EDC "edc"
-#define SIGNAL_ITEM_SELECTED "item,selected"
#define COLOR_TEXT_TITLE 51 51 51 255
#define COLOR_TEXT_FOCUS 255 255 255 255
-#define COLOR_TEXT_INFO 153 153 153 255
-#define COLOR_ITEM_DEFAULT 119 169 202 255
-#define COLOR_ITEM_FOCUS 0 119 246 255
-#define COLOR_ITEM_FOCUS_0 0 119 246 0
-#define COLOR_ITEM_BG 255 255 255 255
-#define COLOR_ITEM_BORDER 194 194 194 255
-#define FONT_REGULAR "BreezeSans"
+#define COLOR_BG_COLOR 0 119 246 255
+#define COLOR_BORDER_COLOR 204 204 204 255
+#define PADDING_LEFT 40
#include "../../../include/define.h"
group {
name: "elm/genlist/item/custom_folder/default";
data.item: "texts" "elm.text.folder";
- data.item: "contents" "elm.swallow.icon";
+ data.item: "contents" "elm.swallow.icon padding.top.left";
data.item: "focus_highlight" "on";
parts {
@@ -41,7 +35,7 @@ group {
scale: 1;
description {
state: "default" 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
min: 0 80;
visible: 0;
}
@@ -59,7 +53,7 @@ group {
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
align: 0.0 1.0;
- color: 204 204 204 255;
+ color: COLOR_BORDER_COLOR;
min: 0 1;
fixed: 1 1;
visible: 1;
@@ -67,14 +61,14 @@ group {
}
part {
name: "padding.top.left";
- type: SPACER;
+ type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- min: 40 20;
- fixed: 1 1;
- align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ fixed: 1 0;
+ align: 0.0 0.5;
}
}
part {
@@ -97,11 +91,11 @@ group {
state : "default" 0.0;
rel1 {
to: "padding.top.left";
- relative: 1.0 1.0;
+ relative: 1.0 0.3;
}
rel2 {
to: "padding.top.left";
- relative: 1.0 1.0;
+ relative: 1.0 0.3;
}
min: 40 40;
align: 0.0 0.0;
@@ -144,13 +138,13 @@ group {
ellipsis: 1;
}
min: 0 40;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -211,7 +205,7 @@ group {
scale: 1;
description {
state: "default" 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
min: 0 80;
visible: 0;
}
@@ -229,7 +223,7 @@ group {
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
align: 0.0 1.0;
- color: 204 204 204 255;
+ color: COLOR_BORDER_COLOR;
min: 0 1;
fixed: 1 1;
visible: 1;
@@ -313,7 +307,7 @@ group {
rel1.relative: 1.0 1.0;
rel2.to: "padding.bottom.right";
rel2.relative: 0.0 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
visible: 0;
}
description {
@@ -339,13 +333,13 @@ group {
ellipsis: 1;
}
min: 0 40;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -365,13 +359,13 @@ group {
ellipsis: 1;
}
min: 0 24;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -391,13 +385,13 @@ group {
ellipsis: 1;
}
min: 0 24;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -470,7 +464,7 @@ group {
scale: 1;
description {
state: "default" 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
min: 0 80;
visible: 0;
}
@@ -488,7 +482,7 @@ group {
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
align: 0.0 1.0;
- color: 204 204 204 255;
+ color: COLOR_BORDER_COLOR;
min: 0 1;
fixed: 1 1;
visible: 1;
@@ -606,7 +600,7 @@ group {
rel1.relative: 1.0 1.0;
rel2.to: "padding.icon.text.right";
rel2.relative: 0.0 1.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
visible: 0;
}
description {
@@ -632,13 +626,13 @@ group {
ellipsis: 1;
}
min: 0 40;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -658,13 +652,13 @@ group {
ellipsis: 1;
}
min: 0 24;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -684,13 +678,13 @@ group {
ellipsis: 1;
}
min: 0 24;
- color: 51 51 51 255;
+ color: COLOR_TEXT_TITLE;
visible: 1;
}
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -754,7 +748,7 @@ group {
group {
name: "elm/genlist/item/custom_file_target/default";
data.item: "texts" "elm.text.file";
- data.item: "contents" "elm.swallow.icon elm.swallow.end";
+ data.item: "contents" "elm.swallow.icon elm.swallow.end padding.top.left";
data.item: "focus_highlight" "on";
parts {
@@ -764,7 +758,7 @@ group {
scale: 1;
description {
state: "default" 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
visible: 0;
min: 0 80;
}
@@ -783,19 +777,18 @@ group {
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
align: 0.0 1.0;
- color: 204 204 204 255;
+ color: COLOR_BORDER_COLOR;
min: 0 1;
visible: 1;
}
}
part {
name: "padding.top.left";
- type: SPACER;
+ type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
rel2.relative: 0.0 0.0;
- min: 40 20;
fixed: 1 1;
align: 0.0 0.0;
}
@@ -879,7 +872,7 @@ group {
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {
@@ -972,7 +965,7 @@ group {
scale: 1;
description {
state: "default" 0.0;
- color: 0 119 246 255;
+ color: COLOR_BG_COLOR;
visible: 0;
}
description {
@@ -989,7 +982,7 @@ group {
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
align: 0.0 1.0;
- color: 204 204 204 255;
+ color: COLOR_BORDER_COLOR;
min: 0 3;
fixed: 1 1;
visible: 1;
@@ -1041,7 +1034,7 @@ group {
description {
state: "focused" 0.0;
inherit: "default" 0.0;
- color: 255 255 255 255;
+ color: COLOR_TEXT_FOCUS;
}
}
part {