summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-09-01 14:07:13 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-09-01 14:07:13 +0100
commited74c7338657e5ac36f26aaefb9767e8ca2d48b0 (patch)
tree871c1b37fa19904669757dc1078ede9e00aa3996 /data
parentec250b84878179a0bf6970cd4e5a805b77bd4d63 (diff)
add basic chat module
Diffstat (limited to 'data')
-rw-r--r--data/themes/chat_basic.edc35
-rw-r--r--data/themes/chat_basic.mk16
2 files changed, 51 insertions, 0 deletions
diff --git a/data/themes/chat_basic.edc b/data/themes/chat_basic.edc
new file mode 100644
index 0000000..6f963cc
--- /dev/null
+++ b/data/themes/chat_basic.edc
@@ -0,0 +1,35 @@
1collections {
2 group { name: "chat";
3 data.item: "markup/header/timestamp" "[%H:%M:%S] ";
4 data.item: "markup/header/send" "<color=#00FF01>%s</color>";
5 data.item: "markup/header/receive" "<color=#0001FF>%s</color>";
6 data.item: "markup/header/name" "<b>%s: </b>";
7 parts {
8 part { name: "base"; type: RECT;
9 description { state: "default";
10 color: 0 0 0 255;
11 }
12 }
13 part { name: "swallow.bar"; type: SWALLOW;
14 description { state: "default";
15 fixed: 0 1;
16 }
17 }
18 part { name: "swallow.chat"; type: SWALLOW;
19 description { state: "default";
20 rel1 {
21 relative: 0 1;
22 offset: 0 2;
23 to_y: "swallow.bar";
24 }
25 }
26 }
27 }
28 }
29#define ICON(Name, Min, Max, Rel1, Rel2) \
30 group { name: "chat_basic/"##Name##""; min: Min Min; max: Max Max; \
31 images.image: Name##".png" COMP; parts { part { name: "base"; \
32 description { aspect: 1.0 1.0; aspect_preference: BOTH; rel1.offset: Rel1 Rel1; rel2.offset: Rel2 Rel2; \
33 image.normal: Name##".png"; } } } }
34 ICON("userunknown", 16, 0, 5, -6);
35}
diff --git a/data/themes/chat_basic.mk b/data/themes/chat_basic.mk
new file mode 100644
index 0000000..c5b4e31
--- /dev/null
+++ b/data/themes/chat_basic.mk
@@ -0,0 +1,16 @@
1EDJE_FLAGS = -id $(top_srcdir)/data/themes
2
3chat_basic_filesdir = $(datadir)/s2
4chat_basic_files_DATA = data/themes/chat_basic.edj
5
6images = \
7data/themes/userunknown.png
8
9EXTRA_DIST += \
10data/themes/chat_basic.edc \
11$(images)
12
13data/themes/chat_basic.edj: $(images) data/themes/chat_basic.edc
14 @edje_cc@ $(EDJE_FLAGS) \
15 $(top_srcdir)/data/themes/chat_basic.edc \
16 $(top_builddir)/data/themes/chat_basic.edj