[gnome-shell/gbsneto/new-lock-screen-part2: 16/36] screenShield: Lift the unlock dialog
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 16/36] screenShield: Lift the unlock dialog
- Date: Mon, 10 Feb 2020 22:32:27 +0000 (UTC)
commit e42700a308f99e38fb2c9977ae6800a0211cef0a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Nov 29 12:24:17 2019 -0300
screenShield: Lift the unlock dialog
Instead of scaling it, lift the unlock dialog when unlocking,
and vice-versa.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
js/ui/screenShield.js | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 0dc95caedb..5908ff5477 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -396,6 +396,12 @@ var ScreenShield = class {
translation_y: -h,
duration,
mode: Clutter.AnimationMode.EASE_IN_QUAD,
+ });
+
+ this._lockDialogGroup.ease({
+ translation_y: -h,
+ duration,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => this._hideLockScreenComplete(),
});
} else {
@@ -447,9 +453,6 @@ var ScreenShield = class {
if (this._lockScreenState != MessageTray.State.HIDDEN)
return;
- this._lockDialogGroup.scale_x = 1;
- this._lockDialogGroup.scale_y = 1;
-
this._lockScreenGroup.show();
this._lockScreenState = MessageTray.State.SHOWING;
@@ -462,6 +465,14 @@ var ScreenShield = class {
translation_y: 0,
duration: MANUAL_FADE_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
+ this._lockDialogGroup.translation_y = -global.screen_height;
+ this._lockDialogGroup.remove_all_transitions();
+ this._lockDialogGroup.ease({
+ translation_y: 0,
+ duration: Overview.ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
this._lockScreenShown({ fadeToBlack, animateFade: true });
},
@@ -565,9 +576,8 @@ var ScreenShield = class {
}
this._lockDialogGroup.ease({
- scale_x: 0,
- scale_y: 0,
- duration: animate ? Overview.ANIMATION_TIME : 0,
+ translation_y: -global.screen_height,
+ duration: Overview.ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => this._completeDeactivate(),
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]