summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-04 18:01:40 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-04 18:10:38 +0900
commit8fb3fc166f2e518ec5ed4a0405eb4ded18227255 (patch)
tree0788b75946ab03447c1633057db3f339cf779bc8
parent09aee47f58165a183bf6687143e086a4f42eb8d7 (diff)
theme: Add fade-in/out for block regions (popup & notify)
Those are a bit faster than the content transitions. I believe the popup transition time should be reduced. 500ms is way too long for such animations.
-rw-r--r--data/elementary/themes/edc/elm/notify.edc29
-rw-r--r--data/elementary/themes/edc/elm/popup.edc13
2 files changed, 31 insertions, 11 deletions
diff --git a/data/elementary/themes/edc/elm/notify.edc b/data/elementary/themes/edc/elm/notify.edc
index 3c8448b351..b6e8b99704 100644
--- a/data/elementary/themes/edc/elm/notify.edc
+++ b/data/elementary/themes/edc/elm/notify.edc
@@ -1,14 +1,39 @@
1group { name: "elm/notify/block_events/default"; 1group { name: "elm/notify/block_events/default";
2 data.item: "hide_finished_signal" "on";
2 parts { 3 parts {
3 part { name: "block_events"; type: RECT; 4 part { name: "block_events"; type: RECT;
4 description { state: "default" 0.0; 5 desc { state: "default";
5 color: 0 0 0 64; 6 color: 0 0 0 0;
7 }
8 desc { "visible";
9 color: 0 0 0 64; /* FIXME: color_class */
6 } 10 }
7 } 11 }
8 program { 12 program {
9 signal: "mouse,clicked,1"; source: "block_events"; 13 signal: "mouse,clicked,1"; source: "block_events";
10 action: SIGNAL_EMIT "elm,action,click" "elm"; 14 action: SIGNAL_EMIT "elm,action,click" "elm";
11 } 15 }
16 program {
17 signal: "show"; source: "*";
18 action: STATE_SET "visible";
19 targets: "block_events";
20 transition: DECELERATE 0.3;
21 }
22 program {
23 signal: "hide"; source: "";
24 action: STATE_SET "default" 0.0;
25 target: "block_events";
26 }
27 program {
28 signal: "elm,state,hide"; source: "elm";
29 action: STATE_SET "default" 0.0;
30 target: "block_events";
31 transition: DECELERATE 0.3;
32 after: "hide_finish";
33 }
34 program { name: "hide_finish";
35 action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
36 }
12 } 37 }
13} 38}
14 39
diff --git a/data/elementary/themes/edc/elm/popup.edc b/data/elementary/themes/edc/elm/popup.edc
index 32433bed33..a551d4c602 100644
--- a/data/elementary/themes/edc/elm/popup.edc
+++ b/data/elementary/themes/edc/elm/popup.edc
@@ -1,13 +1,8 @@
1group { name: "elm/notify/block_events/popup/default"; 1group { name: "elm/notify/block_events/popup/default";
2 parts { 2 inherit: "elm/notify/block_events/default";
3 part { name: "base"; type: RECT; 3 parts.part { "block_events";
4 description { state: "default" 0.0; 4 desc { "visible";
5 color: 0 0 0 128; 5 color: 0 0 0 128; /* FIXME: color_class */
6 }
7 }
8 program {
9 signal: "mouse,clicked,1"; source: "base";
10 action: SIGNAL_EMIT "elm,action,click" "elm";
11 } 6 }
12 } 7 }
13} 8}