summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2012-08-29 15:04:21 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2012-08-29 15:04:21 +0900
commitbf69cf56cd08a0f53af793feba8df472c8ad665a (patch)
tree5122152a5ea9198e86afa3ba19a4aed40d312d4f
parent217bc1474edb8e56d2189f4c6e3a78ca895bbcd7 (diff)
downloadefl-theme-tizen-bf69cf56cd08a0f53af793feba8df472c8ad665a.tar.gz
efl-theme-tizen-bf69cf56cd08a0f53af793feba8df472c8ad665a.tar.bz2
efl-theme-tizen-bf69cf56cd08a0f53af793feba8df472c8ad665a.zip
[Layout : Editfield + Searchbar style] add pressed image for clear button
Change-Id: I02ae655e64225ff823596adaad4cc5564c45e482
-rwxr-xr-xthemes/images/tizen-hd/00_EditField_clear_press.pngbin0 -> 3278 bytes
-rwxr-xr-xthemes/images/tizen-hd/00_field_btn_Clear_press.pngbin0 -> 3163 bytes
-rw-r--r--themes/widgets/layout.edc112
3 files changed, 104 insertions, 8 deletions
diff --git a/themes/images/tizen-hd/00_EditField_clear_press.png b/themes/images/tizen-hd/00_EditField_clear_press.png
new file mode 100755
index 00000000..fe9d9cc9
--- /dev/null
+++ b/themes/images/tizen-hd/00_EditField_clear_press.png
Binary files differ
diff --git a/themes/images/tizen-hd/00_field_btn_Clear_press.png b/themes/images/tizen-hd/00_field_btn_Clear_press.png
new file mode 100755
index 00000000..8a74bd79
--- /dev/null
+++ b/themes/images/tizen-hd/00_field_btn_Clear_press.png
Binary files differ
diff --git a/themes/widgets/layout.edc b/themes/widgets/layout.edc
index 9d3c3ed4..10fc6e87 100644
--- a/themes/widgets/layout.edc
+++ b/themes/widgets/layout.edc
@@ -531,6 +531,7 @@
group { name: "elm/layout/editfield/default";
images {
image: "00_EditField_clear.png" COMP;
+ image: "00_EditField_clear_press.png" COMP;
}
parts {
part {
@@ -726,6 +727,11 @@ group { name: "elm/layout/editfield/default";
relative: 0.0 0.5;
to_x : "right2";
}
+ }
+ description {
+ state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
image {
normal: "00_EditField_clear.png";
border: 10 10 10 10;
@@ -733,16 +739,20 @@ group { name: "elm/layout/editfield/default";
}
}
description {
- state: "elm.eraser.show" 0.0;
+ state: "elm.eraser.pressed" 0.0;
inherit: "default" 0.0;
visible: 1;
+ image {
+ normal: "00_EditField_clear_press.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
}
}
part {
name: "eraser";
type: RECT;
mouse_events: 1;
- ignore_flags: ON_HOLD;
description {
state: "default" 0.0;
visible: 0;
@@ -803,12 +813,27 @@ group { name: "elm/layout/editfield/default";
source: "eraser";
action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
}
+ program {
+ name: "eraser_pressed";
+ signal: "mouse,down,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.pressed" 0.0;
+ target: "eraser_image";
+ }
+ program {
+ name: "eraser_unpressed";
+ signal: "mouse,up,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image";
+ }
}
}
group { name: "elm/layout/editfield/title";
images {
image: "00_EditField_clear.png" COMP;
+ image: "00_EditField_clear_press.png" COMP;
}
parts {
part {
@@ -1050,6 +1075,11 @@ group { name: "elm/layout/editfield/title";
to_x : "right2";
to_y : "eraser_base";
}
+ }
+ description {
+ state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
image {
normal: "00_EditField_clear.png";
border: 10 10 10 10;
@@ -1057,16 +1087,20 @@ group { name: "elm/layout/editfield/title";
}
}
description {
- state: "elm.eraser.show" 0.0;
+ state: "elm.eraser.pressed" 0.0;
inherit: "default" 0.0;
visible: 1;
+ image {
+ normal: "00_EditField_clear_press.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
}
}
part {
name: "eraser";
type: RECT;
mouse_events: 1;
- ignore_flags: ON_HOLD;
description {
state: "default" 0.0;
visible: 0;
@@ -1129,12 +1163,27 @@ group { name: "elm/layout/editfield/title";
source: "eraser";
action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
}
+ program {
+ name: "eraser_pressed";
+ signal: "mouse,down,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.pressed" 0.0;
+ target: "eraser_image";
+ }
+ program {
+ name: "eraser_unpressed";
+ signal: "mouse,up,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image";
+ }
}
}
group { name: "elm/layout/searchbar/default";
images {
image: "00_EditField_clear.png" COMP;
+ image: "00_EditField_clear_press.png" COMP;
image: "00_search_input_field_bg.png" COMP;
image: "00_search_icon.png" COMP;
}
@@ -1507,21 +1556,30 @@ group { name: "elm/layout/searchbar/default";
to_x : "right2";
to_y : "bottom2";
}
+ }
+ description { state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
image {
normal: "00_EditField_clear.png";
border: 10 10 10 10;
border_scale: 1;
}
}
- description { state: "elm.eraser.show" 0.0;
+ description {
+ state: "elm.eraser.pressed" 0.0;
inherit: "default" 0.0;
visible: 1;
+ image {
+ normal: "00_EditField_clear_press.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
}
}
part { name: "eraser";
type: RECT;
mouse_events: 1;
- ignore_flags: ON_HOLD;
description { state: "default" 0.0;
visible: 0;
color: 0 0 0 0;
@@ -1608,12 +1666,27 @@ group { name: "elm/layout/searchbar/default";
source: "search_icon";
action: SIGNAL_EMIT "elm,action,click" "";
}
+ program {
+ name: "eraser_pressed";
+ signal: "mouse,down,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.pressed" 0.0;
+ target: "eraser_image";
+ }
+ program {
+ name: "eraser_unpressed";
+ signal: "mouse,up,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image";
+ }
}
}
group { name: "elm/layout/searchbar/cancel_button";
images {
image: "00_EditField_clear.png" COMP;
+ image: "00_EditField_clear_press.png" COMP;
image: "00_search_input_field_bg.png" COMP;
image: "00_search_icon.png" COMP;
}
@@ -2129,21 +2202,30 @@ group { name: "elm/layout/searchbar/cancel_button";
to_x : "right2";
to_y : "bottom2";
}
+ }
+ description { state: "elm.eraser.show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
image {
normal: "00_EditField_clear.png";
border: 10 10 10 10;
border_scale: 1;
}
}
- description { state: "elm.eraser.show" 0.0;
+ description {
+ state: "elm.eraser.pressed" 0.0;
inherit: "default" 0.0;
visible: 1;
+ image {
+ normal: "00_EditField_clear_press.png";
+ border: 8 8 8 8;
+ border_scale: 1;
+ }
}
}
part { name: "eraser";
type: RECT;
mouse_events: 1;
- ignore_flags: ON_HOLD;
description { state: "default" 0.0;
visible: 0;
color: 0 0 0 0;
@@ -2260,6 +2342,20 @@ group { name: "elm/layout/searchbar/cancel_button";
source: "search_icon";
action: SIGNAL_EMIT "elm,action,click" "";
}
+ program {
+ name: "eraser_pressed";
+ signal: "mouse,down,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.pressed" 0.0;
+ target: "eraser_image";
+ }
+ program {
+ name: "eraser_unpressed";
+ signal: "mouse,up,1";
+ source: "eraser";
+ action: STATE_SET "elm.eraser.show" 0.0;
+ target: "eraser_image";
+ }
}
}