rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=9ea5471925f7c38ce0a08fecc76ba2719fc4f047
commit 9ea5471925f7c38ce0a08fecc76ba2719fc4f047 Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Tue Jun 7 22:15:23 2016 +0300 Tizen theme: add style for tooltip. --- data/themes/tizen/default.edc | 1 + data/themes/tizen/images/text_box_02.png | Bin 0 -> 1198 bytes data/themes/tizen/widgets/styles.edc | 6 +- data/themes/tizen/widgets/tooltip.edc | 113 +++++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+), 1 deletion(-) diff --git a/data/themes/tizen/default.edc b/data/themes/tizen/default.edc index f5d76de..31209ce 100644 --- a/data/themes/tizen/default.edc +++ b/data/themes/tizen/default.edc @@ -2,6 +2,7 @@ data.item: "version" "110"; collections { #include "../../macros.edc" + #include "widgets/tooltip.edc" #include "color_classes.edc" #include "widgets/styles.edc" #include "widgets/bg.edc" diff --git a/data/themes/tizen/images/text_box_02.png b/data/themes/tizen/images/text_box_02.png new file mode 100644 index 0000000..91e9f2e Binary files /dev/null and b/data/themes/tizen/images/text_box_02.png differ diff --git a/data/themes/tizen/widgets/styles.edc b/data/themes/tizen/widgets/styles.edc index f495ad5..9b9f033 100644 --- a/data/themes/tizen/widgets/styles.edc +++ b/data/themes/tizen/widgets/styles.edc @@ -201,5 +201,9 @@ base: "font="FN_B" font_size=13 color=#d6d6d6 wrap=none text_class=label align=c style { name: "frame"; base: "font="FN" font_size=13 font_style=Normal color=#d6d6d6ff shadow_color=#FFF glow_color=#FFF glow2_color=#FFF backing_color=#FFF align=middle left_margin=6 right_margin=6"; } - + style { name: "tooltip_text"; + base: "font="FN" font_size=10 color=#727272ff wrap=word text_class=entry ellipsis=-1.0"; + TEXTBLOCK_TAGS_ENABLED + } + } diff --git a/data/themes/tizen/widgets/tooltip.edc b/data/themes/tizen/widgets/tooltip.edc new file mode 100644 index 0000000..81e4856 --- /dev/null +++ b/data/themes/tizen/widgets/tooltip.edc @@ -0,0 +1,113 @@ +group { name: "elm/label/base/tooltip/default"; + alias: "elm/label/base/tooltip"; + parts { + part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + text { + style: "tooltip_text"; + min: 1 1; + ellipsis: -1; + } + } + } + } +} + +group { name: "elm/tooltip/base/default"; + min: 30 30; + data.item: "pad_x" "0"; + data.item: "pad_y" "0"; + data.item: "pad_border_x" "1"; + data.item: "pad_border_y" "1"; + data.item: "hide_timeout" "0.35"; + // if in a window... it's transparent! + data.item: "transparent" "enabled"; + images.image: "text_box_02.png" COMP; + parts { + part { name: "clipper"; type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { to: "pop"; offset: -5 -5; } + rel2 { to: "pop"; offset: 5 5; } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "pop"; mouse_events: 0; + clip_to: "clipper"; + scale: 1; + description { state: "default" 0.0; + min: 200 30; + image { + normal: "text_box_02.png"; + border: 10 10 10 10; + } + } + } + part { name: "clipper_content"; type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.content"; type: SWALLOW; + clip_to: "clipper_content"; + description { state: "default" 0.0; + rel1.to: "pop"; + rel2.to: "pop"; + rel1.offset: 10 10; + rel2.offset: -11 -19; + } + } + programs { + program { name: "show0"; + signal: "elm,action,show"; source: "elm"; + action: ACTION_STOP; + target: "hide0"; + target: "hide2"; + target: "hide3"; + after: "show1"; + after: "show2"; + } + program { name: "show1"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.15; + target: "clipper"; + } + program { name: "show2"; + in: 0.1 0.0; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.15; + target: "clipper_content"; + } + program { name: "hide0"; + signal: "elm,action,hide"; source: "elm"; + action: ACTION_STOP; + target: "show0"; + target: "show1"; + target: "show2"; + after: "hide2"; + after: "hide3"; + } + program { name: "hide2"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.1; + target: "clipper_content"; + } + program { name: "hide3"; + in: 0.1 0.0; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.1; + target: "clipper"; + } + } + } +} --