make notifications appear much faster

This commit is contained in:
Daniel Foré 2014-07-18 18:30:46 -07:00
parent 0c9a89a8e7
commit c03dfb41e8

View File

@ -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);