aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2011-02-09 16:30:36 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2011-02-09 16:30:36 +0000
commitfb3f351534e06c45b03c6336d34b2f80eb5e95a4 (patch)
treead01d259e8494c84c0e64c4b7eec32d86b8458bf
parentdetour-elm : improve the button (diff)
downloaddetour-elm-fb3f351534e06c45b03c6336d34b2f80eb5e95a4.tar.gz
detour-elm: add entry and improve some widgets
SVN revision: 56847
-rw-r--r--Makefile2
-rw-r--r--entry_text.edc644
-rw-r--r--images.edc6
-rw-r--r--images/entry_im0.pngbin0 -> 633 bytes
-rw-r--r--images/entry_im1.pngbin0 -> 507 bytes
-rw-r--r--images/shelf_def_im0.pngbin343 -> 274 bytes
-rw-r--r--images/win_background.pngbin194 -> 321 bytes
-rw-r--r--main.edc165
8 files changed, 796 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index da9828e..0c879c8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ HEAD = /usr/bin/head
RM = /bin/rm -f
TAIL = /usr/bin/tail
COMPILE = $(CC) $(EDJE_CC_FLAGS)
-SRC = main.edc
+SRC = main.edc entry_text.edc
OUT = detour-elm.edj
PATH_INSTALL = $(HOME)/.elementary/themes
diff --git a/entry_text.edc b/entry_text.edc
new file mode 100644
index 0000000..b3d0d5d
--- /dev/null
+++ b/entry_text.edc
@@ -0,0 +1,644 @@
+
+ group { name: "elm/entry/base/default";
+ styles
+ {
+ style { name: "entry_textblock_style";
+ base: "font=DejaVuSans font_size=11 color=#000 wrap=word text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font=Sans-Bold";
+ }
+ style { name: "entry_textblock_disabled_style";
+ base: "font=DejaVuSans font_size=11 color=#00000080 wrap=word text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font=Sans-Bold";
+ }
+ }
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: EXPLICIT;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ fixed: 0 0;
+ text {
+ style: "entry_textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ 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/base-charwrap/default";
+ styles
+ {
+ style { name: "entry_textblock_style_charwrap";
+ base: "font=DejaVuSans font_size=11 color=#000 wrap=char text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font=DejaVuSans-Bold";
+ }
+ style { name: "entry_textblock_disabled_style_charwrap";
+ base: "font=DejaVuSans font_size=11 color=#00000080 wrap=char text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font=DejaVuSans-Bold";
+ }
+ }
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: EXPLICIT;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+// source2: "X"; // selection over
+// source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+// source6: "X"; // anchor over
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style_charwrap";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style_charwrap";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ 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/base-nowrap/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: EXPLICIT;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ text {
+ style: "entry_textblock_style";
+ min: 1 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+/*
+ part { name: "sel";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ max: 16 16;
+ aspect: 1.0 1.0;
+ color: 255 0 0 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 0 0 50;
+ }
+ }
+ */
+ }
+ 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";
+ }
+/*
+ program { name: "selmode0";
+ signal: "elm,state,select,on";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "sel";
+ }
+ program { name: "selmode1";
+ signal: "elm,state,select,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sel";
+ }
+ */
+ }
+ }
+
+ group { name: "elm/entry/base-single/default";
+ styles
+ {
+ style { name: "entry_single_textblock_style";
+ base: "font=DejaVuSans font_size=11 color=#000 wrap=none text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font=DejaVuSans-Bold";
+ }
+ style { name: "entry_single_textblock_disabled_style";
+ base: "font=DejaVuSans font_size=11 color=#00000080 wrap=none text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font=DejaVuSans-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/default"; // selection under
+ source4: "elm/entry/cursor/default"; // 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/base-single-noedit/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: EXPLICIT;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ 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/base-noedit/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: EXPLICIT;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_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/base-noedit-charwrap/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: EXPLICIT;
+
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style_charwrap";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style_charwrap";
+ }
+ }
+ }
+ }
+ 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/base-nowrap-noedit/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: EXPLICIT;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ text {
+ style: "entry_textblock_style";
+ min: 1 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_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/base-password/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PASSWORD;
+ select_mode: EXPLICIT;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ description { state: "default" 0.0;
+ text {
+ style: "entry_single_textblock_style";
+ repch: "*";
+ 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/cursor/default";
+ parts {
+ part {
+ name: "cursor";
+ type: RECT;
+
+ description {
+ state: "default" 0.0;
+ color: 60 60 60 255;
+ visible: 0;
+ }
+
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ 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;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "cursor_show";
+ action: STATE_SET "visible" 0.0;
+ target: "cursor";
+ after: "cursor_show_timer";
+ }
+
+ program {
+ name: "cursor_hide";
+ action: STATE_SET "default" 0.0;
+ target: "cursor";
+ after: "cursor_hide_timer";
+ }
+
+ program {
+ name: "cursor_show_timer";
+ in: 1.0 0.0;
+ after: "cursor_hide";
+ }
+
+ program {
+ name: "cursor_hide_timer";
+ in: 0.25 0.0;
+ after: "cursor_show";
+ }
+ program { name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ after: "cursor_show";
+ }
+ program { name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "cursor_show";
+ target: "cursor_hide";
+ target: "cursor_show_timer";
+ target: "cursor_hide_timer";
+ after: "cursor_hide_def";
+ }
+ program {
+ name: "cursor_hide_def";
+ action: STATE_SET "default" 0.0;
+ target: "cursor";
+ }
+
+ }
+ }
+
+ group { name: "elm/entry/selection/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 128 128 128 128;
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/anchor/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 128 0 0 64;
+ }
+ }
+ }
+ }
+
+
diff --git a/images.edc b/images.edc
index 8481f93..b06b78c 100644
--- a/images.edc
+++ b/images.edc
@@ -14,6 +14,11 @@ image: "images/progress_trough.png" COMP;
//~ Window
image: "images/win_background.png" COMP; /* background */
+//~ entry
+image: "images/entry_im0.png" COMP; /* base */
+image: "images/entry_im1.png" COMP; /* focus */
+
+
//~ button
image: "images/button_im0.png" COMP; /* base */
image: "images/button_im1.png" COMP; /* enabled */
@@ -42,6 +47,7 @@ image: "images/arrow_down.png" COMP; /* down arrow */
//~ scrollframe
image: "images/scrollframe_im1.png" COMP; /* inset */
+image: "images/scrollframe_im2.png" COMP; /* focus */
image: "images/scrollframe-bar_im0.png" COMP; /* vertical bar */
image: "images/scrollframe-bar_im1.png" COMP; /* vertical bar */
image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */
diff --git a/images/entry_im0.png b/images/entry_im0.png
new file mode 100644
index 0000000..328888d
--- /dev/null
+++ b/images/entry_im0.png
Binary files differ
diff --git a/images/entry_im1.png b/images/entry_im1.png
new file mode 100644
index 0000000..a9d060f
--- /dev/null
+++ b/images/entry_im1.png
Binary files differ
diff --git a/images/shelf_def_im0.png b/images/shelf_def_im0.png
index 0106971..5c5a196 100644
--- a/images/shelf_def_im0.png
+++ b/images/shelf_def_im0.png
Binary files differ
diff --git a/images/win_background.png b/images/win_background.png
index 0c977f8..62447ee 100644
--- a/images/win_background.png
+++ b/images/win_background.png
Binary files differ
diff --git a/main.edc b/main.edc
index 57f149c..420a609 100644
--- a/main.edc
+++ b/main.edc
@@ -34,6 +34,7 @@ styles
collections {
+#include "entry_text.edc"
///////////////////////////////////////////////////////////////////////////////
group {
name: "elm/bg/base/default";
@@ -44,18 +45,11 @@ collections {
image.normal: "images/win_background.png";
}
}
- part {
- name: "popover";
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1.offset: -20 -20;
- rel2.relative: 1.0 0.5;
- rel2.offset: 20 0;
- image {
- normal: "images/button_im4.png";
- border: 4 4 4 0;
- }
+ part { name: "base2";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 100;
}
}
part { name: "elm.swallow.background";
@@ -142,6 +136,22 @@ collections {
fill.smooth : 0;
}
}
+ part { name: "focus";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "images/scrollframe_im2.png";
+ border: 7 7 7 7;
+ }
+ color: 255 255 255 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "sb_vbar_clip_master";
type: RECT;
mouse_events: 0;
@@ -362,7 +372,22 @@ collections {
set_int(sbvis_timer, 0);
}
}
-
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ transition: DECELERATE 0.5;
+ target: "focus";
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.5;
+ target: "focus";
+ }
program { name: "vbar_show";
signal: "elm,action,show,vbar";
source: "elm";
@@ -500,20 +525,119 @@ collections {
set_int(sbvis_timer, v);
}
}
+
+
}
}
+ group {
+ name: "elm/scroller/entry/default";
+ script {
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
+ public timer0(val) {
+ new v;
+ v = get_int(sbvis_v);
+ if (v) {
+ v = get_int(sbalways_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ v = get_int(sbvis_h);
+ if (v) {
+ v = get_int(sbalways_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ set_int(sbvis_timer, 0);
+ return 0;
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.offset: 10 5;
+ rel2.offset: -11 -6;
+ }
+ }
+ part { name: "base";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "images/entry_im0.png";
+ border: 5 5 5 5;
+ middle: 1;
+ }
+ fill.smooth : 0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ clip_to: "clipper";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.offset: 10 5;
+ rel2.offset: -11 -6;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ }
+ }
+
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(2.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ }
+ }
+
///////////////////////////////////////////////////////////////////////////////
group {
name: "elm/label/base/default";
styles
{
style { name: "textblock_style";
- base: "font=DejaVuSans.ttf font_size=10 align=left color=#000 wrap=word";
+ base: "font=DejaVuSans font_size=10 align=left color=#000 wrap=word";
tag: "br" "\n";
- tag: "hilight" "+ font=DejaVuSans-Bold.ttf";
- tag: "b" "+ font=DejaVuSans-Bold.ttf";
+ tag: "hilight" "+ font=DejaVuSans-Bold";
+ tag: "b" "+ font=DejaVuSans-Bold";
tag: "tab" "\t";
+ tag: "title" "+ font_size=12 font=DejaVuSans-Bold";
}
}
parts {
@@ -561,7 +685,7 @@ collections {
mouse_events: 0;
description {
state: "default" 0.0;
- min: 50 26;
+ min: 32 32;
rel1 {
offset: 3 4;
}
@@ -1013,7 +1137,7 @@ collections {
mouse_events: 0;
description {
state: "default" 0.0;
- min: 50 26;
+ min: 26 26;
rel1 {
offset: 3 4;
}
@@ -2159,7 +2283,7 @@ collections {
offset: -5 -1;
}
text {
- text: "Frame Label";
+ text: "";
font: "DejaVuSans-Bold";
size: 11;
min: 1 1;
@@ -3600,6 +3724,7 @@ collections {
name: "left_arrow";
type: IMAGE;
mouse_events: 1;
+ repeat_events: 1;
description {
state: "default" 0.0;
min: 22 22;
@@ -3623,6 +3748,7 @@ collections {
name: "right_arrow";
type: IMAGE;
mouse_events: 1;
+ repeat_events: 1;
description {
state: "default" 0.0;
min: 22 22;
@@ -6912,6 +7038,5 @@ collections {
}
}
}
-
}