Browse Source

Adding Eve webbrowser, based on WebKit-EFL.

This is a complete rewrite of the old Eve web browser, using the current WebKit-EFL port
(available from the official WebKit SVN; instructions on how to build it are here[1]).

The interface was designed for mobile devices and is based off the Efenniht theme for E17.

[1] http://trac.webkit.org/wiki/EFLWebKit



SVN revision: 51060
master
Leandro Pereira 12 years ago
commit
73e055e1f9
  1. 3
      AUTHORS
  2. 165
      COPYING
  3. 15
      ChangeLog
  4. 10
      Makefile.am
  5. 0
      NEWS
  6. 6
      README
  7. 16
      autogen.sh
  8. 128
      configure.ac
  9. 2
      data/Makefile.am
  10. 9
      data/desktop/Makefile.am
  11. 9
      data/desktop/eve.desktop
  12. BIN
      data/desktop/eve.png
  13. 1
      data/themes/.gitignore
  14. 56
      data/themes/Makefile.am
  15. BIN
      data/themes/bookmark-list-back-button.png
  16. BIN
      data/themes/bookmark-list-title.png
  17. BIN
      data/themes/bt_back_normal.png
  18. BIN
      data/themes/bt_back_selected.png
  19. BIN
      data/themes/bt_bookmark_normal.png
  20. BIN
      data/themes/bt_bookmark_selected.png
  21. BIN
      data/themes/bt_fav_normal.png
  22. BIN
      data/themes/bt_fav_selected.png
  23. BIN
      data/themes/bt_forward_normal.png
  24. BIN
      data/themes/bt_forward_selected.png
  25. BIN
      data/themes/bt_home_normal.png
  26. BIN
      data/themes/bt_home_selected.png
  27. BIN
      data/themes/bt_reload_normal.png
  28. BIN
      data/themes/bt_reload_selected.png
  29. BIN
      data/themes/bt_tab_normal.png
  30. BIN
      data/themes/bt_tab_selected.png
  31. BIN
      data/themes/cur_box.png
  32. BIN
      data/themes/cur_glow.png
  33. BIN
      data/themes/cur_hi.png
  34. BIN
      data/themes/cur_shad.png
  35. BIN
      data/themes/cur_shine.png
  36. 1036
      data/themes/default.edc
  37. 227
      data/themes/elm-entry.edc
  38. 420
      data/themes/elm-gengrid.edc
  39. 222
      data/themes/elm-list.edc
  40. 146
      data/themes/elm-notify.edc
  41. 122
      data/themes/elm-pager.edc
  42. 398
      data/themes/elm-scroller.edc
  43. BIN
      data/themes/ewebkit.edj
  44. BIN
      data/themes/list-highlight.png
  45. BIN
      data/themes/panel-top-triangle.png
  46. BIN
      data/themes/progress-bar-background.png
  47. BIN
      data/themes/scrollbar-bg.png
  48. BIN
      data/themes/scrollbar-knob.png
  49. BIN
      data/themes/shadow-bottom.png
  50. BIN
      data/themes/tab-add.png
  51. BIN
      data/themes/tab-bg-selected.png
  52. BIN
      data/themes/tab-bg.png
  53. BIN
      data/themes/tab-close.png
  54. BIN
      data/themes/tab-header.png
  55. BIN
      data/themes/toolbar-background-bottom.png
  56. BIN
      data/themes/toolbar-background-top.png
  57. BIN
      data/themes/url-entry.png
  58. 24
      m4/.gitignore
  59. 47
      m4/ac_attribute.m4
  60. 12
      po/.gitignore
  61. 0
      po/LINGUAS
  62. 7
      po/Makevars
  63. 1
      po/POTFILES.in
  64. 6
      src/.gitignore
  65. 2
      src/Makefile.am
  66. 2
      src/bin/.gitignore
  67. 40
      src/bin/Makefile.am
  68. 1369
      src/bin/chrome.c
  69. 295
      src/bin/favorite.c
  70. 43
      src/bin/favorite.h
  71. 268
      src/bin/gettext.h
  72. 311
      src/bin/history.c
  73. 45
      src/bin/history.h
  74. 430
      src/bin/main.c
  75. 98
      src/bin/private.h
  76. 1602
      src/bin/view.c
  77. 18
      test/test-combo.html
  78. 25
      test/test-js-alert.html
  79. 26
      test/test-js-confirm.html
  80. 21
      test/test-js-console-message.html
  81. 23
      test/test-js-prompt.html
  82. 13
      test/test-newindow.html
  83. 23
      test/test-should-interrupt-js.html

3
AUTHORS

@ -0,0 +1,3 @@
Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
Leandro Augusto Fogolin Pereira <leandro@profusion.mobi>
Lucas De Marchi <lucas.demarchi@profusion.mobi>

165
COPYING

@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

15
ChangeLog

@ -0,0 +1,15 @@
release 0.2.0.0:
better zoom handing:
* auto fit (double-click some element) will keep whole object in
viewport.
* click over links will not go immediately, so it's possible to
click and zoom over links as well
* both auto-fit and interactive zoom modes will not choose or
allow levels of zoom that makes contents smaller than viewport.
release 0.1.0.0:
Initial release.

10
Makefile.am

@ -0,0 +1,10 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src data po
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
config.h.in config.sub configure install-sh \
ltconfig ltmain.sh missing mkinstalldirs \
stamp-h.in acconfig.h depcomp
EXTRA_DIST = README AUTHORS COPYING

6
README

@ -0,0 +1,6 @@
eve
WebKit-EFL demo application
See INSTALL for help on how to install.
See COPYING for software usage, modification and redistribution license.

16
autogen.sh

@ -0,0 +1,16 @@
#!/bin/sh
DIRNAME=`basename $PWD`
if test "x$DIRNAME" = "xelementary-skel"; then
echo "Do not run autogen.sh from inside elementary-skel"
exit 1
fi
find . -name Makefile -delete
find . -name Makefile.in -delete
autoreconf -f -i
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
fi

128
configure.ac

@ -0,0 +1,128 @@
AC_INIT(eve, 0.2.0.0, barbieri@profusion.mobi)
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AC_GNU_SOURCE
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
AM_CONFIG_HEADER(config.h)
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])
define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])
AC_PROG_LIBTOOL
VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
AC_SUBST(VMAJ)
AC_SUBST(version_info)
AC_C_BIGENDIAN
AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_C_CONST
AC_FUNC_ALLOCA
AC_C___ATTRIBUTE__
ALL_LINGUAS=`cat po/LINGUAS | grep -v '^[ ]*#'`
AC_SUBST(ALL_LINGUAS)
AM_GNU_GETTEXT_VERSION([0.12.1])
AM_GNU_GETTEXT([external])
PKG_CHECK_MODULES([ELEMENTARY], [elementary])
PKG_CHECK_MODULES([EWEBKIT], [ewebkit ecore-file])
AC_ARG_WITH([edje-cc],
[AC_HELP_STRING([--with-edje-cc=PATH],
[specify a specific path to edje_cc])],
[edje_cc=$withval;
AC_MSG_NOTICE([edje_cc explicitly set to $edje_cc])
],[edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc])
AC_SUBST(edje_cc)
want_quicklaunch="auto"
AC_ARG_ENABLE([quicklaunch],
[AC_HELP_STRING([--disable-quicklaunch],
[disable build of quicklaunch (default=auto)])],
[if test "x${enableval}" = "xno"; then
want_quicklaunch="no"
elif test "x${enableval}" = "xyes"; then
want_quicklaunch="yes"
else
want_quicklaunch="auto"
fi
],
[want_quicklaunch="auto"])
if test "x${want_quicklaunch}" = "xauto"; then
AC_MSG_CHECKING([checking for elementary_quicklaunch binary...])
if test -x $(pkg-config --variable=prefix elementary)/bin/elementary_quicklaunch; then
AC_MSG_RESULT([found, enable quicklaunch.])
want_quicklaunch="yes"
else
AC_MSG_RESULT([not found, disable quicklaunch.])
want_quicklaunch="no"
fi
fi
if test "x${want_quicklaunch}" = "xyes"; then
AC_ARG_WITH([quicklauncher-libdir],
[AC_HELP_STRING([--with-quicklauncher-libdir=PATH],
[specify a specific path to install quicklauncher binaries])],
[quicklauncher_libdir=$withval;
AC_MSG_NOTICE([quicklauncher_libdir explicitly set to $quicklauncher_libdir])
],
[quicklauncher_libdir=$(pkg-config --variable=libdir elementary)])
AC_SUBST(quicklauncher_libdir)
fi
AM_CONDITIONAL(BUILD_QUICKLAUNCH, test "x${want_quicklaunch}" = "xyes")
AC_OUTPUT([
Makefile
src/Makefile
src/bin/Makefile
data/Makefile
data/desktop/Makefile
data/themes/Makefile
po/Makefile.in
])
cat << EOF
eve configured with:
Flags:
CFLAGS.....(C): $CFLAGS
CXXFLAGS.(C++): $CXXFLAGS
CPPFLAGS.(CPP): $CPPFLAGS
LDFLAGS...(LD): $LDFLAGS
Installation:
PREFIX..............: $prefix
Quick Launcher: ${want_quicklaunch}
EOF
if test "x${want_quicklaunch}" = "xyes"; then
cat << EOF_QL
quicklauncher_libdir: $quicklauncher_libdir
EOF_QL
fi
cat << EOF2
Now type 'make' ('gmake' on some systems) to compile eve, if it
builds successfully then you can 'make install', acquiring required
permissions with 'su' or 'sudo'.
EOF2

2
data/Makefile.am

@ -0,0 +1,2 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = desktop themes

9
data/desktop/Makefile.am

@ -0,0 +1,9 @@
MAINTAINERCLEANFILES = Makefile.in
desktopdir = $(datadir)/applications
desktop_DATA = eve.desktop
icondir = $(datadir)/icons
icon_DATA = eve.png
EXTRA_DIST = eve.desktop eve.png

9
data/desktop/eve.desktop

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Name=eve
Comment=WebKit-EFL demo application
Exec=eve
Icon=eve
Terminal=false
Type=Application
Categories=Application;Utility;

BIN
data/desktop/eve.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

1
data/themes/.gitignore vendored

@ -0,0 +1 @@
default.edj

56
data/themes/Makefile.am

@ -0,0 +1,56 @@
MAINTAINERCLEANFILES = Makefile.in
EDJE_CC = @edje_cc@
EDJE_FLAGS = -v -id $(top_srcdir)/data/themes -fd $(top_srcdir)/data/themes
filesdir = $(datadir)/$(PACKAGE)
files_DATA = ewebkit.edj default.edj
images = \
bookmark-list-back-button.png \
bookmark-list-title.png \
bt_back_normal.png \
bt_back_selected.png \
bt_bookmark_normal.png \
bt_bookmark_selected.png \
bt_fav_normal.png \
bt_fav_selected.png \
bt_forward_normal.png \
bt_forward_selected.png \
bt_home_normal.png \
bt_home_selected.png \
bt_reload_normal.png \
bt_reload_selected.png \
bt_tab_normal.png \
bt_tab_selected.png \
panel-top-triangle.png \
scrollbar-bg.png \
scrollbar-knob.png \
shadow-bottom.png \
tab-add.png \
tab-bg.png \
tab-bg-selected.png \
tab-close.png \
tab-header.png \
toolbar-background-bottom.png \
toolbar-background-top.png \
url-entry.png \
list-highlight.png \
cur_box.png \
cur_hi.png \
cur_shine.png \
cur_glow.png \
cur_shad.png \
progress-bar-background.png
fonts =
EXTRA_DIST = ewebkit.edj default.edc $(images) $(fonts)
default.edj: Makefile $(images) $(fonts) default.edc
$(EDJE_CC) $(EDJE_FLAGS) \
$(top_srcdir)/data/themes/default.edc \
$(top_builddir)/data/themes/default.edj
clean-local:
rm -f default.edj

BIN
data/themes/bookmark-list-back-button.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

BIN
data/themes/bookmark-list-title.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

BIN
data/themes/bt_back_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
data/themes/bt_back_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
data/themes/bt_bookmark_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
data/themes/bt_bookmark_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
data/themes/bt_fav_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
data/themes/bt_fav_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
data/themes/bt_forward_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
data/themes/bt_forward_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
data/themes/bt_home_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
data/themes/bt_home_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
data/themes/bt_reload_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
data/themes/bt_reload_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
data/themes/bt_tab_normal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
data/themes/bt_tab_selected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
data/themes/cur_box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

BIN
data/themes/cur_glow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

BIN
data/themes/cur_hi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

BIN
data/themes/cur_shad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

BIN
data/themes/cur_shine.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

1036
data/themes/default.edc

File diff suppressed because it is too large Load Diff

227
data/themes/elm-entry.edc

@ -0,0 +1,227 @@
group { name: "elm/entry/base-single/ewebkit/url";
styles
{
style { name: "entry_single_textblock_style";
base: "font=Sans font_size=10 align=left color=#787878 wrap=none";
tag: "br" "\n";
tag: "tab" "\t";
tag: "em" "+ font=Sans:style=Oblique";
tag: "b" "+ font=Sans:style=Bold";
tag: "link" "+ color=#800 underline=on underline_color=#8008";
tag: "hilight" "+ font=Sans:style=Bold";
}
style { name: "entry_single_textblock_disabled_style";
base: "font=Sans font_size=10 align=left color=#00000080 wrap=none";
tag: "br" "\n";
tag: "tab" "\t";
tag: "em" "+ font=Sans:style=Oblique";
tag: "b" "+ font=Sans:style=Bold";
tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
tag: "hilight" "+ font=Sans:style=Bold";
}
}
parts {
part { name: "elm.text";
type: TEXTBLOCK;
mouse_events: 1;
scale: 1;
entry_mode: EDITABLE;
select_mode: EXPLICIT;
multiline: 0;
source: "elm/entry/selection/ewebkit/url"; // selection under
source4: "elm/entry/cursor/ewebkit/url"; // cursorover
source5: "elm/entry/anchor/default"; // anchor under
description { state: "default" 0.0;
text {
style: "entry_single_textblock_style";
min: 1 1;
max: 0 1;
}
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
text {
style: "entry_single_textblock_disabled_style";
}
}
}
}
programs {
program { name: "focus";
signal: "load";
source: "";
action: FOCUS_SET;
target: "elm.text";
}
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
action: STATE_SET "disabled" 0.0;
target: "elm.text";
}
program { name: "enable";
signal: "elm,state,enabled";
source: "elm";
action: STATE_SET "default" 0.0;
target: "elm.text";
}
}
}
group { name: "elm/entry/selection/ewebkit/url";
parts {
part { name: "bg";
type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
color: 128 128 128 128;
}
}
}
}
group { name: "elm/entry/cursor/ewebkit/url";
images {
image: "cur_box.png" COMP;
image: "cur_hi.png" COMP;
image: "cur_shad.png" COMP;
image: "cur_shine.png" COMP;
image: "cur_glow.png" COMP;
}
parts {
part { name: "clip2";
type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "clip";
rel2.to: "clip";
visible: 0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
}
}
part { name: "clip";
type: RECT;
mouse_events: 0;
clip_to: "clip2";
description { state: "default" 0.0;
rel1.offset: -10 0;
rel2.offset: 9 9;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "bg";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1.to: "base";
rel1.offset: -2 0;
rel2.to: "base";
rel2.offset: 1 1;
image.border: 2 2 2 2;
image.normal: "cur_shad.png";
}
}
part { name: "base";
mouse_events: 0;
scale: 1;
clip_to: "clip";
description { state: "default" 0.0;
min: 2 2;
align: 0.5 1.0;
rel1.relative: 0.0 1.0;
rel1.offset: 0 -1;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
image.normal: "cur_box.png";
}
}
part { name: "hi";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.5;
image.normal: "cur_hi.png";
}
}
part { name: "shine";
mouse_events: 0;
clip_to: "clip";
clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.75;
image.border: 2 2 1 0;
image.normal: "cur_shine.png";
fill.smooth: 0;
}
}
part { name: "glow";
mouse_events: 0;
clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel1.relative: 0.0 -2.0;
rel1.offset: -2 0;
rel2.to: "base";
rel2.relative: 1.0 0.0;
rel2.offset: 1 1;
image.border: 2 2 0 4;
image.normal: "cur_glow.png";
fill.smooth: 0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
}
}
}
programs {
program { name: "show";
signal: "show";
source: "";
action: STATE_SET "hidden" 0.0;
in: 1.0 0.0;
transition: DECELERATE 2.0;
target: "glow";
after: "show2";
}
program { name: "show2";
action: STATE_SET "hidden" 0.0;
in: 0.2 0.0;
target: "clip";
after: "show3";
}
program { name: "show3";
action: STATE_SET "default" 0.0;
in: 0.5 0.0;
target: "clip";
after: "show4";
}
program { name: "show4";
action: STATE_SET "default" 0.0;
in: 0.5 0.0;
transition: DECELERATE 0.5;
target: "glow";
after: "show";
}
program { name: "focused";
signal: "elm,action,focus";
source: "elm";
action: STATE_SET "focused" 0.0;
target: "clip2";
}
program { name: "unfocused";
signal: "elm,action,unfocus";
source: "elm";
action: STATE_SET "default" 0.0;
target: "clip2";
}
}
}

420
data/themes/elm-gengrid.edc

@ -0,0 +1,420 @@
group { name: "elm/gengrid/item/default/ewebkit";
alias: "elm/gengrid/item/default_style/ewebkit";
data.item: "labels" "elm.text";
data.item: "icons" "elm.swallow.icon elm.swallow.end";
images {
image: "tab-bg.png" COMP;
image: "tab-bg-selected.png" COMP;
image: "tab-close.png" COMP;
}
parts {
part {
name: "event";
repeat_events: 1;
description {
state: "default" 0.0;
}
}
part { name: "bg";
clip_to: "disclip";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: -5 -5;
}
rel2 {
relative: 1.0 1.0;
offset: 4 4;
}
image {
normal: "tab-bg.png";
border: 28 28 20 20;
}
fill.smooth: 0;
}
}
part { name: "elm.swallow.pad";
type: SWALLOW;
description { state: "default" 0.0;
visible: 0;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
relative: 0.0 1.0;
offset: 0 -10;
}
rel2 {
to_y: "elm.text";
relative: 0.0 0.0;
offset: -1 -1;
}
}
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 0;
align: 0.5 0.5;
rel1 {
relative: 0.0 0.0;
offset: 22 13;
}
rel2 {
to_y: "elm.text";
relative: 1.0 0.0;
offset: -24 -4;
}
}
}
part { name: "elm.swallow.end";
clip_to: "disclip";
type: SWALLOW;
description { state: "default" 0.0;
visible: 0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 0.0 0.0;
offset: 0 0;
}
}
}
part { name: "elm.text";
clip_to: "disclip";
type: TEXT;
mouse_events: 0;
scale: 1;
description {
state: "default" 0.0;
rel1 {
relative: 0.0 1.0;
offset: 18 0;
}
rel2 {
relative: 1.0 1.0;
offset: -21 -44;
}
color: 120 120 120 255;
text {
font: "Sans";
size: 9;
min: 0 1;
align: 0.5 0.0;
}
}
}
part { name: "disclip";
type: RECT;
description { state: "default" 0.0;
rel1.to: "bg";
rel2.to: "bg";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
color: 255 255 255 64;
}
}
part { name: "bg-selected-border";
clip_to: "disclip";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
color: 255 255 255 0;
image {
normal: "tab-bg-selected.png";
border: 8 8 8 8;
}
fill.smooth: 0;
}
description { state: "selected" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: 15 5;
}
rel2 {
relative: 1.0 1.0;
offset: -16 -6;
}
image {
normal: "tab-bg-selected.png";
border: 8 8 8 8;
}
}
}
part { name: "close-button";
type: IMAGE;
description { state: "default" 0.0;
min: 15 15;
max: 15 15;
rel1 {
relative: 1.0 1.0;
offset: -40 1;
}
rel2 {
relative: 1.0 1.0;
offset: 29 -41;
}
image.normal: "tab-close.png";
}
description { state: "selected" 0.0;
inherit: "default" 0.0;
color: 255 166 2 255;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "close-button-dedones";
type: RECT;
clip_to: "disclip";
description { state: "default" 0.0;
rel1 {
to: "close-button";
relative: 0.0 0.0;
offset: -10 -10;
}
rel2 {
to: "close-button";
relative: 1.0 1.0;
offset: 5 11;
}
color: 255 255 255 0;
}
}
}
programs {
// signal: elm,state,%s,active
// a "check" item named %s went active
// signal: elm,state,%s,passive
// a "check" item named %s went passive
// default is passive
program {
name: "tab_close_down";
signal: "tab,close,hide";
action: STATE_SET "hidden" 0.0;
target: "close-button";
}
program {
name: "tab_down";
signal: "mouse,down,*";
source: "close-button-dedones";
action: STATE_SET "selected" 0.0;
target: "close-button";
transition: ACCELERATE 0.2;
}
program {
name: "tab_clicked";
signal: "mouse,clicked,*";
source: "close-button-dedones";
action: SIGNAL_EMIT "tab,close" "";
}
program {
name: "tab_up";
signal: "mouse,up,*";
source: "close-button-dedones";
action: STATE_SET "default" 0.0;
target: "close-button";
transition: DECELERATE 0.2;
}
program {
name: "go_active";
signal: "elm,state,selected";
source: "elm";
action: STATE_SET "selected" 0.0;
target: "bg-selected-border";
transition: ACCELERATE 0.1;
}
program {
name: "go_passive";
signal: "elm,state,unselected";
source: "elm";
action: STATE_SET "default" 0.0;
target: "bg-selected-border";
transition: DECELERATE 0.1;
}
}
}
group { name: "elm/gengrid/item/new_page/ewebkit";
data.item: "labels" "elm.text";
data.item: "icons" "elm.swallow.icon elm.swallow.end";
images {
image: "tab-bg.png" COMP;
image: "tab-bg-selected.png" COMP;
image: "tab-add.png" COMP;
}
parts {
part {
name: "event";
repeat_events: 1;
description {
state: "default" 0.0;
}
}
part { name: "bg";
clip_to: "disclip";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: -5 -5;
}
rel2 {
relative: 1.0 1.0;
offset: 4 4;
}
image {
normal: "tab-bg.png";
border: 28 28 20 20;
}
fill.smooth: 0;
}
}
part { name: "elm.swallow.pad";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
relative: 0.0 1.0;
offset: 0 -10;
}
rel2 {
to_y: "elm.text";
relative: 0.0 0.0;
offset: -1 -1;
}
}
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 0;
align: 0.5 0.5;
rel1 {
relative: 0.0 0.0;
offset: 20 11;
}
rel2 {
to_y: "elm.text";
relative: 1.0 0.0;
offset: -24 -4;
}
}
}
part { name: "elm.swallow.end";
clip_to: "disclip";
type: SWALLOW;
description { state: "default" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 0.0 0.0;
offset: 0 0;
}
}
}
part { name: "elm.text";
clip_to: "disclip";
type: RECT;
description { state: "default" 0.0;
visible: 0;
}
}
part { name: "disclip";
type: RECT;
description { state: "default" 0.0;
rel1.to: "bg";
rel2.to: "bg";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
color: 255 255 255 64;
}
}
part { name: "add-img";
type: IMAGE;
description { state: "default" 0.0;
min: 23 23;
max: 23 23;
rel1 {
relative: 1.0 1.0;
offset: -54 1;
}
rel2 {
relative: 1.0 1.0;
offset: -6 -43;
}
image.normal: "tab-add.png";
}
}
part { name: "bg-selected-border";
clip_to: "disclip";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
color: 255 255 255 0;
image {
normal: "tab-bg-selected.png";
border: 8 8 8 8;
}
fill.smooth: 0;
}
description { state: "selected" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: 15 5;
}
rel2 {
relative: 1.0 1.0;
offset: -16 -6;
}
image {
normal: "tab-bg-selected.png";
border: 8 8 8 8;
}
}
}
}
programs {
// signal: elm,state,%s,active
// a "check" item named %s went active
// signal: elm,state,%s,passive
// a "check" item named %s went passive
// default is passive
program {
name: "go_active";
signal: "elm,state,selected";
source: "elm";
action: STATE_SET "selected" 0.0;
target: "bg-selected-border";
transition: ACCELERATE 0.1;
}
program {
name: "go_passive";
signal: "elm,state,unselected";
source: "elm";
action: STATE_SET "default" 0.0;
target: "bg-selected-border";
transition: DECELERATE 0.1;
}
}
}

222
data/themes/elm-list.edc

@ -0,0 +1,222 @@
group { name: "elm/list/item/ewebkit";
alias: "elm/list/item_odd/ewebkit";
data.item: "stacking" "above";
images {
image: "list-highlight.png" COMP;
}
parts {
part {
name: "event";
type: RECT;
repeat_events: 1;
description {
state: "default" 0.0;
color: 0 0 0 0;
}
}
part { name: "bg";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
rel1 {
relative: 0.0 0.0;
offset: -10 -10;
}
rel2 {
relative: 1.0 1.0;
offset: 9 9;
}
image {
normal: "list-highlight.png";
border: 6 6 6 6;
}
image.middle: SOLID;
}
description { state: "selected" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: 0 -1;
}
rel2 {
relative: 1.0 1.0;
offset: -1 1;
}
}
}
part { name: "elm.swallow.icon";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
relative: 0.0 0.0;
offset: 4 4;
}
rel2 {
relative: 0.0 1.0;
offset: 4 -5;
}
}
}
part { name: "elm.swallow.end";
type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 0;
align: 1.0 0.5;
rel1 {
relative: 1.0 0.0;
offset: -5 4;
}
rel2 {
relative: 1.0 1.0;
offset: -5 -5;
}
}
}
part { name: "elm.text";
type: TEXT;
effect: SOFT_SHADOW;
mouse_events: 0;
scale: 1;
description {
state: "default" 0.0;
// min: 16 16;
rel1 {
to_x: "elm.swallow.icon";
relative: 1.0 0.0;
offset: 38 0;
}
rel2 {
to_x: "elm.swallow.end";
relative: 0.0 1.0;
offset: -1 -1;
}
color: 190 190 190 255;
color3: 0 0 0 0;
text {
font: "Sans";
size: 11;
min: 1 1;
// min: 0 1;
align: 0.0 0.35;
}
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
}
}
}
programs {
program {
name: "go_active";
signal: "elm,state,selected";
source: "elm";
action: STATE_SET "selected" 0.0;
target: "bg";
target: "elm.text";
transition: ACCELERATE 0.2;
}
program {
name: "go_passive";
signal: "elm,state,unselected";
source: "elm";
action: STATE_SET "default" 0.0;
target: "bg";
target: "elm.text";
transition: DECELERATE 0.1;
}
}
}
group { name: "elm/list/separator/ewebkit";
data.item: "stacking" "above";
parts {
part {
name: "event";
type: RECT;
repeat_events: 1;
description {
state: "default" 0.0;
color: 0 0 0 0;
}
}
part { name: "bg";
mouse_events: 0;
description { state: "default" 0.0;
visible: 0;
color: 255 255 255 0;
rel1 {
relative: 0.0 0.0;
offset: -5 -5;
}
rel2 {
relative: 0.5 1.0;
offset: 4 4;
}
}
description { state: "selected" 0.0;
inherit: "default" 0.0;
visible: 0;
color: 255 255 255 128;
rel1 {
relative: 0.0 0.0;
offset: -2 -2;
}
rel2 {
relative: 0.5 1.0;
offset: 1 1;
}
}
}
part { name: "elm.swallow.icon";
type: SWALLOW;
description { state: "default" 0.0;
visible: 0;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
relative: 0.0 0.0;
offset: 4 4;
}
rel2 {
relative: 0.0 1.0;
offset: 4 -5;
}
}
}
part { name: "elm.swallow.end";
type: SWALLOW;
description { state: "default" 0.0;
visible: 0;
fixed: 1 0;
align: 1.0 0.5;
rel1 {
relative: 1.0 0.0;
offset: -5 4;
}
rel2 {
relative: 1.0 1.0;
offset: -5 -5;
}
}
}
part { name: "elm.text";
type: TEXT;
effect: SOFT_SHADOW;
mouse_events: 0;
scale: 1;
description {
state: "default" 0.0;
visible: 0;
}
description {
state: "selected" 0.0;
inherit: "default" 0.0;
}
}
}
}

146
data/themes/elm-notify.edc

@ -0,0 +1,146 @@
group { name: "elm/notify/block_events/ewebkit";
images.image: "shadow-bottom.png" COMP;
images.image: "tab-header.png" COMP;
parts {
part { name: "bg";
type: RECT;
description { state: "default" 0.0;
rel1.relative: 0.0 1.0;
rel1.offset: 0 -310;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
color: 0 0 0 255;
}
}
part { name: "shadow";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "shadow-bottom.png";
rel1 {
relative: 0.0 1.0;
offset: 0 -326;
}
rel2 {
relative: 1.0 1.0;
offset: -1 -311;
}
}
}
part { name: "border";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "tab-header.png";
max: 99999 14;
rel1 {
to: "shadow";
relative: 0.0 1.0;
offset: 0 -21;
}
rel2 {
to: "shadow";
relative: 1.0 1.0;
offset: -1 15;
}
}
}
part { name: "block_events";
type: RECT;
description { state: "default" 0.0;
color: 0 0 0 128;
visible: 1;
rel1.relative: 0.0 0.0;
rel1.offset: 0 0;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -311;
}
}
}
programs {
program {
name: "block_clicked";
signal: "mouse,clicked,1";
source: "block_events";
action: SIGNAL_EMIT "elm,action,clicked" "elm";
}
}
}
group { name: "elm/notify/bottom/ewebkit";
min: 400 300;
parts {
part { name: "base";
type: RECT;
mouse_events: 0;
repeat_events: 1;
description { state: "default" 0.0;
visible: 0;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
}
}
part { name: "shad";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "elm.swallow.content";
rel1.offset: -64 -64;
rel2.to: "elm.swallow.content";
rel2.offset: 63 63;
}
}
part { name: "pop";
mouse_events: 1;
description { state: "default" 0.0;
rel1.to: "elm.swallow.content";
rel1.offset: -5 -5;
rel2.to: "elm.swallow.content";
rel2.offset: 4 4;
}
}
part { name: "popover";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "pop";
rel2.to: "pop";
rel2.relative: 1.0 0.5;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
}
}
}
programs {
program { name: "show";
signal: "elm,action,show";
source: "elm";
action: STATE_SET "visible" 0.0;
target: "base";
}
program { name: "show_2";
signal: "show";
action: STATE_SET "default" 0.0;
target: "base";
after: "show_3";
}
program { name: "show_3";
signal: "show";
action: STATE_SET "visible" 0.0;
target: "base";
transition: ACCELERATE 0.2;
}
program { name: "hide";
signal: "elm,action,hide";
source: "elm";
action: STATE_SET "default" 0.0;
target: "base";
}
}
}

122
data/themes/elm-pager.edc

@ -0,0 +1,122 @@
group { name: "elm/pager/base/ewebkit";
data.item: "onshow" "raise";
// other options