mirror of
https://github.com/elementary/gala.git
synced 2024-11-24 12:23:58 +03:00
make notifications appear much faster
This commit is contained in:
parent
0c9a89a8e7
commit
c03dfb41e8
@ -89,18 +89,17 @@ namespace Gala.Plugins.Notify
|
|||||||
public void open () {
|
public void open () {
|
||||||
var entry = new TransitionGroup ();
|
var entry = new TransitionGroup ();
|
||||||
entry.remove_on_complete = true;
|
entry.remove_on_complete = true;
|
||||||
entry.progress_mode = AnimationMode.EASE_IN_OUT_CUBIC;
|
entry.duration = 400;
|
||||||
entry.duration = 600;
|
|
||||||
|
|
||||||
var opacity_transition = new PropertyTransition ("opacity");
|
var opacity_transition = new PropertyTransition ("opacity");
|
||||||
opacity_transition.set_from_value (0);
|
opacity_transition.set_from_value (0);
|
||||||
opacity_transition.set_to_value (255);
|
opacity_transition.set_to_value (255);
|
||||||
|
|
||||||
var flip_transition = new KeyframeTransition ("rotation-angle-x");
|
var flip_transition = new KeyframeTransition ("rotation-angle-x");
|
||||||
flip_transition.set_from_value (-90.0);
|
flip_transition.set_from_value (90.0);
|
||||||
flip_transition.set_to_value (0.0);
|
flip_transition.set_to_value (0.0);
|
||||||
flip_transition.set_key_frames ({ 0.6 });
|
flip_transition.set_key_frames ({ 0.6 });
|
||||||
flip_transition.set_values ({ 10.0 });
|
flip_transition.set_values ({ -10.0 });
|
||||||
|
|
||||||
entry.add_transition (opacity_transition);
|
entry.add_transition (opacity_transition);
|
||||||
entry.add_transition (flip_transition);
|
entry.add_transition (flip_transition);
|
||||||
|
Loading…
Reference in New Issue
Block a user