mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
plugin: add a menu-duration key to the animation settings
This commit is contained in:
parent
ee78e35805
commit
53e7396b01
@ -138,6 +138,10 @@
|
||||
<default>400</default>
|
||||
<summary>Duration of the workspace switch animation</summary>
|
||||
</key>
|
||||
<key type="i" name="menu-duration">
|
||||
<default>150</default>
|
||||
<summary>Duration of the menu mapping animation</summary>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/shadows/" id="org.pantheon.desktop.gala.shadows" gettext-domain="gala">
|
||||
|
@ -450,7 +450,7 @@ namespace Gala
|
||||
actor.scale_x = 0.9f;
|
||||
actor.scale_y = 0.9f;
|
||||
actor.opacity = 0;
|
||||
actor.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 150,
|
||||
actor.animate (Clutter.AnimationMode.EASE_OUT_QUAD, AnimationSettings.get_default ().menu_duration,
|
||||
scale_x:1.0f, scale_y:1.0f, opacity:255)
|
||||
.completed.connect ( () => {
|
||||
|
||||
|
@ -115,6 +115,7 @@ namespace Gala
|
||||
public int close_duration { get; set; }
|
||||
public int minimize_duration { get; set; }
|
||||
public int workspace_switch_duration { get; set; }
|
||||
public int menu_duration { get; set; }
|
||||
|
||||
static AnimationSettings? instance = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user