panel: Use a constant for the panel startup animation time
https://bugzilla.gnome.org/show_bug.cgi?id=643804
This commit is contained in:
parent
c64242c276
commit
6fbf8fa9e4
@ -25,6 +25,8 @@ const PANEL_HEIGHT = 26;
|
|||||||
|
|
||||||
const PANEL_ICON_SIZE = 24;
|
const PANEL_ICON_SIZE = 24;
|
||||||
|
|
||||||
|
const STARTUP_ANIMATION_TIME = 0.2;
|
||||||
|
|
||||||
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
|
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
|
||||||
|
|
||||||
const BUTTON_DND_ACTIVATION_TIMEOUT = 250;
|
const BUTTON_DND_ACTIVATION_TIMEOUT = 250;
|
||||||
@ -1046,7 +1048,7 @@ Panel.prototype = {
|
|||||||
this.actor.y = oldY - this.actor.height;
|
this.actor.y = oldY - this.actor.height;
|
||||||
Tweener.addTween(this.actor,
|
Tweener.addTween(this.actor,
|
||||||
{ y: oldY,
|
{ y: oldY,
|
||||||
time: 0.2,
|
time: STARTUP_ANIMATION_TIME,
|
||||||
transition: 'easeOutQuad'
|
transition: 'easeOutQuad'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user