From 0bfa24080bfa8a7fe1011d8a0c8bd0d5f0ea1fd9 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 8 Aug 2012 09:56:02 +0000 Subject: [PATCH] add fullscreen comp theme. SVN revision: 75002 --- data/themes/default.edc | 277 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 277 insertions(+) diff --git a/data/themes/default.edc b/data/themes/default.edc index 5245489c1..6afc89d11 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -39722,6 +39722,283 @@ collections { } } */ +//---- + group { name: "e/comp/fullscreen"; + // a comp shadow can have a data item wanting another object in the + // background behind the comp obj and a fg object just above it + // as well as a screen overlay + data { + item: "screen.bg" "fullscreen.bg"; +// item: "screen.fg" "fullscreen.fg"; +// item: "screen.overlay" "fullscreen.overlay"; + } + images { + image: "comp-sh1.png" COMP; + image: "bg_shadow.png" COMP; + } + parts { + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1 { + relative: -1.0 -1.0; + offset: -9999 -9999; + } + rel2 { + relative: 2.0 2.0; + offset: 9999 9999; + } + } + description { state: "visible1" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description { state: "visible2" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { name: "clipper_sh"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1 { + relative: -1.0 -1.0; + offset: -9999 -9999; + } + rel2 { + relative: 2.0 2.0; + offset: 9999 9999; + } + } + description { state: "visible1" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 100; + } + description { state: "visible2" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "clipper_all"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 1; + } + } + part { name: "scr_shadow"; + mouse_events: 0; + clip_to: "clipper_all"; + description { state: "default" 0.0; + rel1.relative: -1.0 -1.0; + rel2.relative: 2.0 2.0; + image.normal: "bg_shadow.png"; + fill.smooth: 0; + visible: 0; + color: 255 255 255 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + visible: 1; + color: 255 255 255 255; + } + } + part { name: "scr_shade"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 0 0 0 255; + } + } + part { name: "shadow"; + mouse_events: 0; + clip_to: "clipper_sh"; + description { state: "default" 0.0; + image { + normal: "comp-sh1.png"; + border: 18 18 18 18; + middle: 0; + } + fill.smooth: 0; + rel1 { + to: "e.swallow.content"; + relative: 0.0 0.0; + offset: -16 -14; + } + rel2 { + to: "e.swallow.content"; + relative: 1.0 1.0; + offset: 15 17; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "shower"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + } + rel2 { + relative: 0.5 0.5; + offset: -1 -1; + } + } + description { state: "visible1" 0.0; + inherit: "default" 0.0; + rel1 { + relative: 0.1 0.49; + offset: 0 0; + } + rel2 { + relative: 0.9 0.51; + offset: -1 -1; + } + } + description { state: "visible2" 0.0; + inherit: "default" 0.0; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { name: "e.swallow.content"; + type: SWALLOW; + clip_to: "clipper"; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { + to: "shower"; + } + rel2 { + to: "shower"; + } + } + } + part { name: "fader"; + type: RECT; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1.to: "e.swallow.content"; + rel2.to: "e.swallow.content"; + } + description { state: "visible1" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description { state: "visible2" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + } + programs { + program { name: "shadow-on"; + signal: "e,state,shadow,on"; + source: "e"; + action: STATE_SET "default" 0.0; + target: "shadow"; + } + program { name: "shadow-off"; + signal: "e,state,shadow,off"; + source: "e"; + action: STATE_SET "hidden" 0.0; + target: "shadow"; + } + program { name: "show0"; + signal: "e,state,visible,on"; + source: "e"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.25; + target: "scr_shadow"; + target: "scr_shade"; + } + program { name: "show1"; + signal: "e,state,visible,on"; + source: "e"; + action: STATE_SET "visible1" 0.0; + transition: DECELERATE 0.05; + target: "clipper"; + target: "clipper_sh"; + target: "shower"; + target: "fader"; + after: "show2"; + } + program { name: "show2"; + action: STATE_SET "visible2" 0.0; + transition: DECELERATE 0.20; + target: "clipper"; + target: "clipper_sh"; + target: "shower"; + target: "fader"; + after: "show3"; + } + program { name: "show3"; + action: SIGNAL_EMIT "e,action,show,done" "e"; + } + program { name: "hide0"; + signal: "e,state,visible,off"; + source: "e"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.25; + target: "scr_shadow"; + target: "scr_shade"; + } + program { name: "hide1"; + signal: "e,state,visible,off"; + source: "e"; + action: STATE_SET "visible1" 0.0; + transition: DECELERATE 0.20; + target: "clipper"; + target: "clipper_sh"; + target: "shower"; + target: "fader"; + after: "hide2"; + } + program { name: "hide2"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.05; + target: "clipper"; + target: "clipper_sh"; + target: "shower"; + target: "fader"; + after: "hide3"; + } + program { name: "hide3"; + action: SIGNAL_EMIT "e,action,hide,done" "e"; + } + } + } group {