diff --git a/data/themes/default.edc b/data/themes/default.edc index d06e4e2..47d9590 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -44,6 +44,14 @@ collections { images.image: "icon_volume2.png" COMP; images.image: "icon_spanner2.png" COMP; + images.image: "tv-bg.png" COMP; + images.image: "tv-over.png" COMP; + images.image: "r-0.png" COMP; + images.image: "r-1.png" COMP; + images.image: "r-2.png" COMP; + images.image: "r-3.png" COMP; + images.image: "r-4.png" COMP; + script { public pos_visible; public pos_timer; @@ -1138,6 +1146,75 @@ collections { signal: "action,pause"; source: "rage"; action: SIGNAL_EMIT "mouse,move" "event"; } + + part { name: "tv-bg"; + clip_to: "tv-clip"; + description { state: "default" 0.0; + rel1.to: "tv"; + rel1.relative: (40/256) (120/256); + rel2.to: "tv"; + rel2.relative: (174/256) (222/256); + image.normal: "tv-bg.png"; + } + } + part { name: "tv-anim"; + clip_to: "tv-clip"; + description { state: "default" 0.0; + rel1.to: "tv-bg"; + rel2.to: "tv-bg"; + image.tween: "r-4.png"; + image.tween: "r-3.png"; + image.tween: "r-2.png"; + image.tween: "r-1.png"; + image.normal: "r-0.png"; + } + } + part { name: "tv"; + clip_to: "tv-clip"; + description { state: "default" 0.0; + aspect: 1.0 1.0; aspect_preference: BOTH; + max: 256 256; + image.normal: "tv-over.png"; + } + } + program { + signal: "mouse,clicked,1"; source: "tv"; + action: SIGNAL_EMIT "about,hide" "rage"; + } + part { name: "tv-clip"; type: RECT; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + description { state: "visible" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + program { + signal: "about,show"; source: "rage"; + action: STATE_SET "visible" 0.0; + transition: SINUSOIDAL 0.5; + target: "tv-clip"; + } + program { + signal: "about,hide"; source: "rage"; + action: STATE_SET "default" 0.0; + transition: SINUSOIDAL 1.0; + target: "tv-clip"; + after: "tv-hide2"; + } + program { name: "tv-hide2"; + action: ACTION_STOP; + target: "tv-anim"; + } + program { name: "tv-anim"; + signal: "about,show"; source: "rage"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "tv-anim"; + after: "tv-anim"; + } } } diff --git a/data/themes/images/Makefile.am b/data/themes/images/Makefile.am index ddf0fed..7700642 100644 --- a/data/themes/images/Makefile.am +++ b/data/themes/images/Makefile.am @@ -32,4 +32,12 @@ bg_bevel.png \ win_glow.png \ win_shadow.png \ bg_glint.png \ -bg_shine.png +bg_shine.png \ +tv-bg.png \ +tv-over.png \ +r-0.png \ +r-1.png \ +r-2.png \ +r-3.png \ +r-4.png + diff --git a/data/themes/images/r-0.png b/data/themes/images/r-0.png new file mode 100644 index 0000000..df7cef7 Binary files /dev/null and b/data/themes/images/r-0.png differ diff --git a/data/themes/images/r-1.png b/data/themes/images/r-1.png new file mode 100644 index 0000000..2a887a2 Binary files /dev/null and b/data/themes/images/r-1.png differ diff --git a/data/themes/images/r-2.png b/data/themes/images/r-2.png new file mode 100644 index 0000000..e8b6ad7 Binary files /dev/null and b/data/themes/images/r-2.png differ diff --git a/data/themes/images/r-3.png b/data/themes/images/r-3.png new file mode 100644 index 0000000..f98f46d Binary files /dev/null and b/data/themes/images/r-3.png differ diff --git a/data/themes/images/r-4.png b/data/themes/images/r-4.png new file mode 100644 index 0000000..50623f0 Binary files /dev/null and b/data/themes/images/r-4.png differ diff --git a/data/themes/images/tv-bg.png b/data/themes/images/tv-bg.png new file mode 100644 index 0000000..96157fe Binary files /dev/null and b/data/themes/images/tv-bg.png differ diff --git a/data/themes/images/tv-over.png b/data/themes/images/tv-over.png new file mode 100644 index 0000000..5887bb0 Binary files /dev/null and b/data/themes/images/tv-over.png differ diff --git a/src/bin/controls.c b/src/bin/controls.c index a9b5e6e..55d6c23 100644 --- a/src/bin/controls.c +++ b/src/bin/controls.c @@ -43,7 +43,9 @@ _cb_pos_pause(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EIN static void _cb_options(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) { -// win_do_options(data); + Inf *inf = evas_object_data_get(data, "inf"); + elm_layout_signal_emit(inf->lay, "about,show", "rage"); + // win_do_options(data); } static void