mirror of
https://github.com/elementary/gala.git
synced 2024-11-24 04:21:04 +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 () {
|
||||
var entry = new TransitionGroup ();
|
||||
entry.remove_on_complete = true;
|
||||
entry.progress_mode = AnimationMode.EASE_IN_OUT_CUBIC;
|
||||
entry.duration = 600;
|
||||
entry.duration = 400;
|
||||
|
||||
var opacity_transition = new PropertyTransition ("opacity");
|
||||
opacity_transition.set_from_value (0);
|
||||
opacity_transition.set_to_value (255);
|
||||
|
||||
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_key_frames ({ 0.6 });
|
||||
flip_transition.set_values ({ 10.0 });
|
||||
flip_transition.set_values ({ -10.0 });
|
||||
|
||||
entry.add_transition (opacity_transition);
|
||||
entry.add_transition (flip_transition);
|
||||
@ -319,4 +318,4 @@ namespace Gala.Plugins.Notify
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user