[gnome-shell/gbsneto/new-lock-screen-part2: 14/22] screenShield: Only animate the unlock dialog



commit 1f5d730d10372e69b1dfa7fa7b419087f0c70785
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Nov 29 12:29:41 2019 -0300

    screenShield: Only animate the unlock dialog
    
    Remove the slide-up-down animation from the lock shield.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872

 js/ui/screenShield.js | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 28f81da6d9..848e5ad884 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -366,7 +366,7 @@ var ScreenShield = class {
 
         this._lockScreenState = MessageTray.State.HIDING;
 
-        this._lockScreenGroup.remove_all_transitions();
+        this._lockDialogGroup.remove_all_transitions();
 
         if (animate) {
             // Tween the lock screen out of screen
@@ -378,12 +378,6 @@ var ScreenShield = class {
             let velocity = global.stage.height / CURTAIN_SLIDE_TIME;
             let duration = delta / velocity;
 
-            this._lockScreenGroup.ease({
-                translation_y: -h,
-                duration,
-                mode: Clutter.AnimationMode.EASE_IN_QUAD,
-            });
-
             this._lockDialogGroup.ease({
                 translation_y: -h,
                 duration,
@@ -445,14 +439,6 @@ var ScreenShield = class {
         let fadeToBlack = params.fadeToBlack;
 
         if (params.animateLockScreen) {
-            this._lockScreenGroup.translation_y = -global.screen_height;
-            this._lockScreenGroup.remove_all_transitions();
-            this._lockScreenGroup.ease({
-                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({


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]