diff options
author | Thiep Ha <thiepha@gmail.com> | 2017-08-29 19:04:15 +0900 |
---|---|---|
committer | Thiep Ha <thiepha@gmail.com> | 2017-08-29 19:07:01 +0900 |
commit | b0d185ac127297f5dd73cb8b58966fd0256611d7 (patch) | |
tree | 46e22e25126d2ffebe7b522d365a119a921338e3 /data | |
parent | d8f1ea44fd3ef9bdd70387383b9c68849713cfed (diff) |
Introduce text on path widget
Text on path (textpath) allows application to make text follow a path.
The path can be a efl_gfx_path or a circle.
Thank hermet for initializing this work.
@feature
Diffstat (limited to 'data')
-rw-r--r-- | data/elementary/themes/Makefile.am | 1 | ||||
-rw-r--r-- | data/elementary/themes/default.edc | 2 | ||||
-rw-r--r-- | data/elementary/themes/edc/elm/textpath.edc | 24 |
3 files changed, 27 insertions, 0 deletions
diff --git a/data/elementary/themes/Makefile.am b/data/elementary/themes/Makefile.am index d7632d7641..ab354a0e9c 100644 --- a/data/elementary/themes/Makefile.am +++ b/data/elementary/themes/Makefile.am | |||
@@ -146,6 +146,7 @@ elementary/themes/edc/elm/separator.edc \ | |||
146 | elementary/themes/edc/elm/slider.edc \ | 146 | elementary/themes/edc/elm/slider.edc \ |
147 | elementary/themes/edc/elm/slideshow.edc \ | 147 | elementary/themes/edc/elm/slideshow.edc \ |
148 | elementary/themes/edc/elm/spinner.edc \ | 148 | elementary/themes/edc/elm/spinner.edc \ |
149 | elementary/themes/edc/elm/textpath.edc \ | ||
149 | elementary/themes/edc/elm/thumb.edc \ | 150 | elementary/themes/edc/elm/thumb.edc \ |
150 | elementary/themes/edc/elm/toolbar.edc \ | 151 | elementary/themes/edc/elm/toolbar.edc \ |
151 | elementary/themes/edc/elm/tooltip.edc \ | 152 | elementary/themes/edc/elm/tooltip.edc \ |
diff --git a/data/elementary/themes/default.edc b/data/elementary/themes/default.edc index 936df6b321..2a28c4a647 100644 --- a/data/elementary/themes/default.edc +++ b/data/elementary/themes/default.edc | |||
@@ -74,6 +74,8 @@ collections { | |||
74 | #include "edc/elm/cursor.edc" | 74 | #include "edc/elm/cursor.edc" |
75 | #include "edc/elm/code.edc" | 75 | #include "edc/elm/code.edc" |
76 | #include "edc/elm/ews.edc" | 76 | #include "edc/elm/ews.edc" |
77 | #include "edc/elm/textpath.edc" | ||
78 | |||
77 | 79 | ||
78 | // desktop in general | 80 | // desktop in general |
79 | #include "edc/wallpaper.edc" | 81 | #include "edc/wallpaper.edc" |
diff --git a/data/elementary/themes/edc/elm/textpath.edc b/data/elementary/themes/edc/elm/textpath.edc new file mode 100644 index 0000000000..17c2baa4f9 --- /dev/null +++ b/data/elementary/themes/edc/elm/textpath.edc | |||
@@ -0,0 +1,24 @@ | |||
1 | group { name: "elm/textpath/base/default"; | ||
2 | styles { | ||
3 | style { name: "textpath_style"; | ||
4 | base: "font="FN" font_size=16 text_class=tb_plain wrap=none align=left color=#ffffffff style=shadow,bottom shadow_color=#00000080"; | ||
5 | tag: "br" "\n"; | ||
6 | tag: "b" "+ font="FNBD" text_class=tb_light"; | ||
7 | ENABLED_TEXTBLOCK_TAGS | ||
8 | } | ||
9 | } | ||
10 | parts { | ||
11 | part { name: "elm.text"; | ||
12 | type: TEXTBLOCK; | ||
13 | scale: 1; | ||
14 | description { state: "default" 0.0; | ||
15 | align: 0.0 0.0; | ||
16 | text { | ||
17 | style: "textpath_style"; | ||
18 | min: 0 1; | ||
19 | align: 0.0 0.5; | ||
20 | } | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | } | ||