-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
/* | ||
Copyright (C) 2018 Léo Andrès <[email protected]> | ||
Copyright (C) 2019 hslbck <[email protected]> | ||
Copyright (C) 2019-2021 hslbck <[email protected]> | ||
This file is distributed under the same license as the gnome-shell-extension-radio package. | ||
*/ | ||
const St = imports.gi.St; | ||
const GObject = imports.gi.GObject; | ||
const ModalDialog = imports.ui.modalDialog; | ||
const Extension = imports.misc.extensionUtils.getCurrentExtension(); | ||
const Tweener = imports.tweener.tweener; | ||
|
||
const DIALOG_GROW_TIME = 0.1; | ||
|
||
|
@@ -50,13 +49,14 @@ var ChannelCreator = GObject.registerClass( | |
let [errorBoxMinHeight, errorBoxNaturalHeight] = this._errorBox.get_preferred_height(-1); | ||
let parentActor = this._errorBox.get_parent(); | ||
|
||
Tweener.addTween(parentActor, | ||
{ height: parentActor.height + errorBoxNaturalHeight, | ||
time: DIALOG_GROW_TIME, | ||
transition: 'easeOutQuad', | ||
let height = parentActor.height + errorBoxNaturalHeight; | ||
parentActor.ease({ | ||
height, | ||
duration: DIALOG_GROW_TIME, | ||
mode: Clutter.AnimationMode.EASE_OUT_QUAD, | ||
onComplete: () => { | ||
parentActor.set_height(-1); | ||
this._errorBox.show(); | ||
parentActor.set_height(-1); | ||
this._errorBox.show(); | ||
} | ||
}); | ||
} | ||
|