summaryrefslogtreecommitdiffstats
path: root/WebKit/efl/DefaultTheme/widget
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/efl/DefaultTheme/widget')
-rw-r--r--WebKit/efl/DefaultTheme/widget/button/button.edc176
-rw-r--r--WebKit/efl/DefaultTheme/widget/check/check.edc181
-rw-r--r--WebKit/efl/DefaultTheme/widget/combo/combo.edc306
-rw-r--r--WebKit/efl/DefaultTheme/widget/entry/entry.edc167
-rw-r--r--WebKit/efl/DefaultTheme/widget/file/file.edc148
-rw-r--r--WebKit/efl/DefaultTheme/widget/radio/radio.edc181
-rw-r--r--WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc317
-rw-r--r--WebKit/efl/DefaultTheme/widget/search/cancel/search_cancel.edc131
-rw-r--r--WebKit/efl/DefaultTheme/widget/search/decoration/search_decoration.edc132
-rw-r--r--WebKit/efl/DefaultTheme/widget/search/field/search_field.edc151
10 files changed, 1890 insertions, 0 deletions
diff --git a/WebKit/efl/DefaultTheme/widget/button/button.edc b/WebKit/efl/DefaultTheme/widget/button/button.edc
new file mode 100644
index 0000000..603daa0
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/button/button.edc
@@ -0,0 +1,176 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+ group {
+ name: "webkit/widget/button";
+
+ images {
+ image: "widget/button/img_button_normal.png" COMP;
+ image: "widget/button/img_button_press.png" COMP;
+ image: "widget/button/img_button_hover.png" COMP;
+ image: "widget/button/img_button_focus.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"button", "default", 0.0);
+ if (get_int(isFocused) == 1) {
+ set_state(PART:"button", "focused", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"button", "pressed", 0.0);
+ }
+ else if (get_int(isHovered) == 1) {
+ set_state(PART:"button", "hovered", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"button", "pressed", 0.0);
+
+ }
+ }
+ else
+ set_state(PART:"button", "disabled", 0.0);
+ }
+ }
+
+ parts {
+
+ part {
+ name: "button";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 25 10;
+ image {
+ normal: "widget/button/img_button_normal.png";
+ border: 6 6 6 6;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/button/img_button_press.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/button/img_button_hover.png";
+ border: 6 6 6 6;
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/button/img_button_focus.png";
+ border: 6 6 6 6;
+ }
+ }
+ }
+
+ part {
+ name: "text_confinement";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 10 5;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -11 -6;
+ }
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "checked";
+ signal: "checked";
+ script {
+ set_int(isChecked, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }
diff --git a/WebKit/efl/DefaultTheme/widget/check/check.edc b/WebKit/efl/DefaultTheme/widget/check/check.edc
new file mode 100644
index 0000000..86490f6
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/check/check.edc
@@ -0,0 +1,181 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+ group {
+
+ name: "webkit/widget/checkbox";
+ min: 14 14;
+
+ images {
+ image: "widget/check/img_check_on.png" COMP;
+ image: "widget/check/img_check_off.png" COMP;
+ image: "widget/check/img_check_off_focus.png" COMP;
+ image: "widget/check/img_check_on_focus.png" COMP;
+ image: "widget/check/img_check_off_hover.png" COMP;
+ image: "widget/check/img_check_on_hover.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"check_button", "default", 0.0);
+ if (get_int(isChecked) == 1) {
+ set_state(PART:"check_button", "enabled_checked", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"check_button", "focus_checked", 0.0);
+ if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
+ set_state(PART:"check_button", "hovered_checked", 0.0);
+ }
+ else {
+ if (get_int(isFocused) == 1)
+ set_state(PART:"check_button", "focused", 0.0);
+ if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
+ set_state(PART:"check_button", "hovered", 0.0);
+ }
+ }
+ else {
+ set_state(PART:"check_button", "disabled", 0.0);
+ if (get_int(isChecked) == 1)
+ set_state(PART:"check_button", "disabled_checked", 0.0);
+ }
+ }
+ }
+
+ parts {
+ part {
+ name: "check_button";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 14 14;
+ max: 14 14;
+ image {
+ normal: "widget/check/img_check_off.png";
+ }
+ }
+ description {
+ state: "enabled_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/check/img_check_on.png";
+ }
+ }
+ description {
+ state: "disabled_checked" 0.0;
+ inherit: "enabled_checked" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/check/img_check_on_hover.png";
+ }
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/check/img_check_off_hover.png";
+ }
+ }
+ description {
+ state: "focus_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/check/img_check_on_focus.png";
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/check/img_check_off_focus.png";
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "checked";
+ signal: "checked";
+ script {
+ set_int(isChecked, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }
diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo.edc b/WebKit/efl/DefaultTheme/widget/combo/combo.edc
new file mode 100644
index 0000000..9c436cc
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/combo/combo.edc
@@ -0,0 +1,306 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "webkit/widget/combo";
+
+ images {
+ image: "widget/combo/combo_normal.png" COMP;
+ image: "widget/combo/combo_normal_button.png" COMP;
+ image: "widget/combo/combo_hover.png" COMP;
+ image: "widget/combo/combo_hover_button.png" COMP;
+ image: "widget/combo/combo_focus.png" COMP;
+ image: "widget/combo/combo_focus_button.png" COMP;
+ image: "widget/combo/combo_press.png" COMP;
+ image: "widget/combo/combo_press_button.png" COMP;
+ image: "widget/combo/icon.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"combo", "default", 0.0);
+ set_state(PART:"combo_button", "default", 0.0);
+ set_state(PART:"combo_button_icon", "default", 0.0);
+ if (get_int(isFocused) == 1) {
+ set_state(PART:"combo", "focused", 0.0);
+ set_state(PART:"combo_button", "focused", 0.0);
+ if (get_int(isPressed) == 1) {
+ set_state(PART:"combo", "pressed", 0.0);
+ set_state(PART:"combo_button", "pressed", 0.0);
+ }
+ }
+ else if (get_int(isHovered) == 1) {
+ set_state(PART:"combo", "hovered", 0.0);
+ set_state(PART:"combo_button", "hovered", 0.0);
+ if (get_int(isPressed) == 1) {
+ set_state(PART:"combo", "pressed", 0.0);
+ set_state(PART:"combo_button", "pressed", 0.0);
+ }
+ }
+ }
+ else {
+ set_state(PART:"combo", "disabled", 0.0);
+ set_state(PART:"combo_button", "disabled", 0.0);
+ set_state(PART:"combo_button_icon", "disabled", 0.0);
+ }
+ }
+ }
+
+ parts {
+ part {
+ name: "clipper";
+ type: RECT;
+ description {
+ min: 35 27;
+ state: "default" 0.0;
+ }
+ }
+
+ part {
+ name: "combo_clipper";
+ type: RECT;
+ clip_to: "clipper";
+ description {
+ state: "default" 0.0;
+ rel1.to: "clipper";
+ rel2 {
+ to: "clipper";
+ offset: -32 -1;
+ }
+ }
+ }
+
+ part {
+ name: "combo";
+ type: IMAGE;
+ clip_to: "combo_clipper";
+ description {
+ state: "default" 0.0;
+ min: 36 20;
+ image {
+ normal: "widget/combo/combo_normal.png";
+ border: 7 7 7 7;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/combo/combo_hover.png";
+ border: 7 7 7 7;
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/combo/combo_focus.png";
+ border: 7 7 7 7;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/combo/combo_press.png";
+ border: 7 7 7 7;
+ }
+ }
+ }
+
+ part {
+ name: "bt_combo_clipper";
+ type: RECT;
+ clip_to: "clipper";
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "combo_clipper";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "clipper";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+
+ part {
+ name: "combo_button";
+ type: IMAGE;
+ clip_to: "bt_combo_clipper";
+ description {
+ state: "default" 0.0;
+ min: 18 20; // 3 + 5 + image width (10), 5 + 5 + image height (10)
+ rel1.to: "bt_combo_clipper";
+ image {
+ normal: "widget/combo/combo_normal_button.png";
+ border: 3 5 5 5;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ rel1.to: "bt_combo_clipper";
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ rel1.to: "bt_combo_clipper";
+ image {
+ normal: "widget/combo/combo_hover_button.png";
+ border: 3 5 5 5;
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ rel1.to: "bt_combo_clipper";
+ image {
+ normal: "widget/combo/combo_focus_button.png";
+ border: 6 7 7 7;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ rel1.to: "bt_combo_clipper";
+ image {
+ normal: "widget/combo/combo_press_button.png";
+ border: 6 8 8 8;
+ }
+ }
+ }
+
+
+ part {
+ name: "combo_button_icon";
+ type: IMAGE;
+ clip_to: "bt_combo_clipper";
+ description {
+ state: "default" 0.0;
+ min: 17 13;
+ max: 17 13;
+ color: 255 255 255 150;
+ rel1 {
+ to: "bt_combo_clipper";
+ relative: 0.5 0.5;
+ offset: 0 1;
+ }
+ rel2 {
+ to: "bt_combo_clipper";
+ relative: 0.5 0.5;
+ }
+ fixed: 1 1;
+ image {
+ normal: "widget/combo/icon.png";
+ border: 5 5 0 0;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 50;
+ image {
+ normal: "widget/combo/icon.png";
+ border: 5 5 0 0;
+ }
+ }
+ }
+
+ part {
+ name: "text_confinement";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1 {
+ to: "combo_clipper";
+ offset: 10 5;
+ }
+ rel2 {
+ to: "combo_clipper";
+ offset: -6 -6;
+ }
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+}
diff --git a/WebKit/efl/DefaultTheme/widget/entry/entry.edc b/WebKit/efl/DefaultTheme/widget/entry/entry.edc
new file mode 100644
index 0000000..613ee59
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/entry/entry.edc
@@ -0,0 +1,167 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+ group {
+ name: "webkit/widget/entry";
+
+ images {
+ image: "widget/entry/img_normal.png" COMP;
+ image: "widget/entry/img_focused.png" COMP;
+ image: "widget/entry/img_hovered.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"entry", "default", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"entry", "pressed", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"entry", "focused", 0.0);
+ if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
+ set_state(PART:"entry", "hovered", 0.0);
+ }
+ else
+ set_state(PART:"entry", "disabled", 0.0);
+ }
+
+ }
+
+ parts {
+ part {
+ name: "entry";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 14 14;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: -1 -1;
+ }
+ image {
+ normal: "widget/entry/img_normal.png";
+ border: 7 7 7 7;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/entry/img_focused.png";
+ border: 7 7 7 7;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "focused" 0.0;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "focused" 0.0;
+ image {
+ normal: "widget/entry/img_hovered.png";
+ border: 7 7 7 7;
+ }
+ }
+ }
+
+ part {
+ name: "text_confinement";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.offset: 4 6; // <- 6 because of the blink cursor
+ rel2.offset: -4 -5; // <- due to the image
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "checked";
+ signal: "checked";
+ script {
+ set_int(isChecked, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }
diff --git a/WebKit/efl/DefaultTheme/widget/file/file.edc b/WebKit/efl/DefaultTheme/widget/file/file.edc
new file mode 100644
index 0000000..40afcc7
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/file/file.edc
@@ -0,0 +1,148 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "webkit/widget/file";
+
+ images {
+ image: "widget/file/file_normal.png" COMP;
+ image: "widget/file/file_hover.png" COMP;
+ image: "widget/file/file_focus.png" COMP;
+ image: "widget/file/file_press.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"file", "default", 0.0);
+ if (get_int(isFocused) == 1) {
+ set_state(PART:"file", "focused", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"file", "pressed", 0.0);
+ }
+ else if (get_int(isHovered) == 1) {
+ set_state(PART:"file", "hovered", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"file", "pressed", 0.0);
+
+ }
+ }
+ else
+ set_state(PART:"file", "disabled", 0.0);
+ }
+ }
+
+ parts {
+ part {
+ name: "file";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ image {
+ normal: "widget/file/file_normal.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/file/file_hover.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/file/file_focus.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/file/file_press.png";
+ border: 8 8 8 8;
+ }
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }
diff --git a/WebKit/efl/DefaultTheme/widget/radio/radio.edc b/WebKit/efl/DefaultTheme/widget/radio/radio.edc
new file mode 100644
index 0000000..38a6da9
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/radio/radio.edc
@@ -0,0 +1,181 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+ group {
+ name: "webkit/widget/radio";
+ min: 16 16;
+
+ images {
+ image: "widget/radio/img_radio_on.png" COMP;
+ image: "widget/radio/img_radio_off.png" COMP;
+ image: "widget/radio/img_radio_on_focus.png" COMP;
+ image: "widget/radio/img_radio_off_focus.png" COMP;
+ image: "widget/radio/img_radio_on_hover.png" COMP;
+ image: "widget/radio/img_radio_off_hover.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"radio_button", "default", 0.0);
+ if (get_int(isChecked) == 1) {
+ set_state(PART:"radio_button", "enabled_checked", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"radio_button", "focus_checked", 0.0);
+ if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
+ set_state(PART:"radio_button", "hovered_checked", 0.0);
+ }
+ else {
+ if (get_int(isFocused) == 1)
+ set_state(PART:"radio_button", "focused", 0.0);
+ if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
+ set_state(PART:"radio_button", "hovered", 0.0);
+ }
+ }
+ else {
+ set_state(PART:"radio_button", "disabled", 0.0);
+ if (get_int(isChecked) == 1)
+ set_state(PART:"radio_button", "disabled_checked", 0.0);
+ }
+ }
+ }
+
+ parts {
+ part {
+ name: "radio_button";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 16 16;
+ max: 16 16;
+ image {
+ normal: "widget/radio/img_radio_off.png";
+ }
+ }
+ description {
+ state: "enabled_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/radio/img_radio_on.png";
+ }
+ }
+ description {
+ state: "disabled_checked" 0.0;
+ inherit: "enabled_checked" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/radio/img_radio_on_hover.png";
+ }
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/radio/img_radio_off_hover.png";
+ }
+ }
+ description {
+ state: "focus_checked" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/radio/img_radio_on_focus.png";
+ }
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/radio/img_radio_off_focus.png";
+ }
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "checked";
+ signal: "checked";
+ script {
+ set_int(isChecked, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }
diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
new file mode 100644
index 0000000..4f59784
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
@@ -0,0 +1,317 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "scrollbar.vertical";
+
+ min: 10 0; /* if > 0, this is the minimum size that will be allocated.
+ * If wants to draw on top, just overflow usign edje's rel1/rel2
+ */
+
+ images {
+ image: "widget/scrollbar/scrollbar_v.png" COMP;
+ image: "widget/scrollbar/scrollbar_knob_v.png" COMP;
+ }
+
+ script {
+ public hide_timer;
+
+ public hide_timer_cb(val) {
+ run_program(PROGRAM:"hide");
+ return 0;
+ }
+
+ public hide_timer_stop() {
+ new id = get_int(hide_timer);
+ if (id <= 0)
+ return;
+
+ cancel_timer(id);
+ set_int(hide_timer, 0);
+ }
+
+ public hide_timer_start() {
+ set_int(hide_timer, timer(1.0, "hide_timer_cb", 0));
+ }
+
+ public message(Msg_Type:type, id, ...) {
+ if ((id == 0) && (type == MSG_FLOAT_SET)) {
+ new Float:vy, Float:sy;
+
+ vy = getfarg(2);
+ sy = getfarg(3);
+
+ if (vy >= 0.0) {
+ set_drag_size(PART:"img.knob", 1.0, sy);
+ set_drag(PART:"img.knob", 0.0, vy);
+ run_program(PROGRAM:"show");
+ } else
+ run_program(PROGRAM:"hide");
+
+ hide_timer_stop();
+ hide_timer_start();
+ }
+ }
+
+ public update_drag_pos() {
+ new Float:x, Float:y;
+ get_drag(PART:"img.knob", x, y);
+ send_message(MSG_FLOAT, 1, y);
+ }
+ }
+
+ parts {
+ part {
+ name: "rect.base";
+ type: RECT;
+ description {
+ min: 10 0;
+ max: 10 999999;
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ }
+ }
+ part {
+ name: "rect.clipper";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description {
+ state: "hidden" 0.0;
+ color: 255 255 255 128;
+ }
+ }
+
+ part {
+ name: "img.scrollbar";
+ type: IMAGE;
+ mouse_events: 0;
+ clip_to: "rect.clipper";
+ description {
+ state: "default" 0.0;
+ image {
+ normal: "widget/scrollbar/scrollbar_v.png";
+ border: 0 0 6 6;
+ }
+ }
+ }
+
+ part {
+ name: "img.knob";
+ type: IMAGE;
+ mouse_events: 1;
+ clip_to: "rect.clipper";
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "rect.base";
+ }
+ description {
+ state: "default" 0.0;
+ min: 10 10;
+ max: 10 999999;
+ image {
+ normal: "widget/scrollbar/scrollbar_knob_v.png";
+ border: 0 0 6 6;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "load";
+ signal: "load";
+ action: STATE_SET "hidden" 0.0;
+ target: "rect.clipper";
+ }
+ program {
+ name: "hide";
+ action: STATE_SET "hidden" 0.0;
+ transition: ACCELERATE 0.5;
+ target: "rect.clipper";
+ }
+
+ program {
+ name: "show";
+ action: STATE_SET "default" 0.0;
+ target: "rect.clipper";
+ }
+
+ program {
+ name: "dragged";
+ signal: "drag";
+ source: "img.knob";
+ script {
+ update_drag_pos();
+ }
+ }
+ }
+}
+
+group {
+ name: "scrollbar.horizontal";
+
+ min: 0 10; /* if > 0, this is the minimum size that will be allocated.
+ * If wants to draw on top, just overflow usign edje's rel1/rel2
+ */
+
+ images {
+ image: "widget/scrollbar/scrollbar_h.png" COMP;
+ image: "widget/scrollbar/scrollbar_knob_h.png" COMP;
+ }
+
+ script {
+ public hide_timer;
+
+ public hide_timer_cb(val) {
+ run_program(PROGRAM:"hide");
+ return 0;
+ }
+
+ public hide_timer_stop() {
+ new id = get_int(hide_timer);
+ if (id <= 0)
+ return;
+
+ cancel_timer(id);
+ set_int(hide_timer, 0);
+ }
+
+ public hide_timer_start() {
+ set_int(hide_timer, timer(1.0, "hide_timer_cb", 0));
+ }
+
+ public message(Msg_Type:type, id, ...) {
+ if ((id == 0) && (type == MSG_FLOAT_SET)) {
+ new Float:vx, Float:sx;
+
+ vx = getfarg(2);
+ sx = getfarg(3);
+
+ if (vx >= 0.0) {
+ set_drag_size(PART:"img.knob", sx, 1.0);
+ set_drag(PART:"img.knob", vx, 0.0);
+ run_program(PROGRAM:"show");
+ } else
+ run_program(PROGRAM:"hide");
+
+ hide_timer_stop();
+ hide_timer_start();
+ }
+ }
+
+ public update_drag_pos() {
+ new Float:x, Float:y;
+ get_drag(PART:"img.knob", x, y);
+ send_message(MSG_FLOAT, 1, x);
+ }
+ }
+
+ parts {
+ part {
+ name: "rect.base";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ min: 0 10;
+ max: 999999 10;
+ color: 255 255 255 0;
+ }
+ }
+ part {
+ name: "rect.clipper";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description {
+ state: "hidden" 0.0;
+ color: 255 255 255 128;
+ }
+ }
+
+ part {
+ name: "img.scrollbar";
+ type: IMAGE;
+ mouse_events: 0;
+ clip_to: "rect.clipper";
+ description {
+ state: "default" 0.0;
+ image {
+ normal: "widget/scrollbar/scrollbar_h.png";
+ border: 6 6 0 0;
+ }
+ }
+ }
+
+ part {
+ name: "img.knob";
+ type: IMAGE;
+ mouse_events: 1;
+ clip_to: "rect.clipper";
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "rect.base";
+ }
+ description {
+ state: "default" 0.0;
+ min: 10 10;
+ image {
+ normal: "widget/scrollbar/scrollbar_knob_h.png";
+ border: 6 6 0 0;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "load";
+ signal: "load";
+ action: STATE_SET "hidden" 0.0;
+ target: "rect.clipper";
+ }
+ program {
+ name: "hide";
+ action: STATE_SET "hidden" 0.0;
+ transition: ACCELERATE 0.5;
+ target: "rect.clipper";
+ }
+
+ program {
+ name: "show";
+ action: STATE_SET "default" 0.0;
+ target: "rect.clipper";
+ }
+
+ program {
+ name: "dragged";
+ signal: "drag";
+ source: "img.knob";
+ script {
+ update_drag_pos();
+ }
+ }
+ }
+}
diff --git a/WebKit/efl/DefaultTheme/widget/search/cancel/search_cancel.edc b/WebKit/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
new file mode 100644
index 0000000..d4a1a20
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
@@ -0,0 +1,131 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "webkit/widget/search/cancel_button";
+ alias: "webkit/widget/search/results_button"; // TODO
+
+ images {
+ image: "widget/search/cancel/cancel_normal_button2.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"cancel_button", "default", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"cancel_button", "focused", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"cancel_button", "pressed", 0.0);
+ if (get_int(isHovered) == 1)
+ set_state(PART:"cancel_button", "hovered", 0.0);
+ }
+ else
+ set_state(PART:"cancel_button", "disabled", 0.0);
+ }
+ }
+
+ parts {
+ part {
+ name: "cancel_button";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 21 20;
+ rel1.offset: 0 -6;
+ rel2.offset: -1 0;
+ image {
+ normal: "widget/search/cancel/cancel_normal_button2.png";
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+}
diff --git a/WebKit/efl/DefaultTheme/widget/search/decoration/search_decoration.edc b/WebKit/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
new file mode 100644
index 0000000..4159138
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
@@ -0,0 +1,132 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "webkit/widget/search/decoration";
+ alias: "webkit/widget/search/results_decoration"; //TODO
+
+ images {
+ image: "widget/search/decoration/decoration_normal_button.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"decoration", "default", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"decoration", "focused", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"decoration", "pressed", 0.0);
+ if (get_int(isHovered) == 1)
+ set_state(PART:"decoration", "hovered", 0.0);
+ }
+ else
+ set_state(PART:"decoration", "disabled", 0.0);
+ }
+ }
+
+ parts {
+ part {
+ name: "decoration";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 20 20;
+ rel1.offset: 0 -4;
+ rel2.offset: -1 0;
+ image {
+ normal: "widget/search/decoration/decoration_normal_button.png";
+ border: 0 0 8 8;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+}
diff --git a/WebKit/efl/DefaultTheme/widget/search/field/search_field.edc b/WebKit/efl/DefaultTheme/widget/search/field/search_field.edc
new file mode 100644
index 0000000..e9be229
--- /dev/null
+++ b/WebKit/efl/DefaultTheme/widget/search/field/search_field.edc
@@ -0,0 +1,151 @@
+/*
+ Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
+ Copyright (C) 2009,2010 ProFUSION embedded systems
+ Copyright (C) 2009,2010 Samsung Electronics
+
+ This file is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+group {
+ name: "webkit/widget/search/field";
+
+ images {
+ image: "widget/search/field/field_normal.png" COMP;
+ image: "widget/search/field/field_focused.png" COMP;
+ image: "widget/search/field/field_hovered.png" COMP;
+ }
+
+ script {
+ public isEnabled;
+ public isPressed;
+ public isChecked;
+ public isFocused;
+ public isHovered;
+
+ public show() {
+ if (get_int(isEnabled) == 1) {
+ set_state(PART:"search_field", "default", 0.0);
+ if (get_int(isFocused) == 1)
+ set_state(PART:"search_field", "focused", 0.0);
+ if (get_int(isPressed) == 1)
+ set_state(PART:"search_field", "pressed", 0.0);
+ if (get_int(isFocused) == 0 && get_int(isHovered) == 1)
+ set_state(PART:"search_field", "hovered", 0.0);
+ }
+ else
+ set_state(PART:"search_field", "disabled", 0.0);
+ }
+ }
+
+ parts {
+ part {
+ name: "search_field";
+ type: IMAGE;
+ description {
+ state: "default" 0.0;
+ min: 89 20;
+ image {
+ normal: "widget/search/field/field_normal.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 150;
+ }
+ description {
+ state: "focused" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "widget/search/field/field_focused.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "hovered" 0.0;
+ inherit: "focused" 0.0;
+ image {
+ normal: "widget/search/field/field_hovered.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "pressed" 0.0;
+ inherit: "focused" 0.0;
+ }
+ }
+
+ part {
+ name: "text_confinement";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.offset: 4 6; // <- 6 because of the blink cursor
+ rel2.offset: -4 -5; // <- due to the image
+ }
+ }
+
+ }
+
+ programs {
+ program {
+ name: "enabled";
+ signal: "enabled";
+ script {
+ set_int(isEnabled, 1);
+ show();
+ }
+ }
+ program {
+ name: "pressed";
+ signal: "pressed";
+ script {
+ set_int(isPressed, 1);
+ show();
+ }
+ }
+ program {
+ name: "focused";
+ signal: "focused";
+ script {
+ set_int(isFocused, 1);
+ show();
+ }
+ }
+ program {
+ name: "hovered";
+ signal: "hovered";
+ script {
+ set_int(isHovered, 1);
+ show();
+ }
+ }
+ program {
+ name: "reset";
+ signal: "reset";
+ script {
+ set_int(isEnabled, 0);
+ set_int(isPressed, 0);
+ set_int(isChecked, 0);
+ set_int(isFocused, 0);
+ set_int(isHovered, 0);
+ show();
+ }
+ }
+ }
+ }