[gnome-shell/gbsneto/new-lock-screen: 6/13] screenShield: Translate the dialog group



commit 0af44904a2e7345fb1ee73db0cac12915aac99d4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Oct 7 16:54:07 2019 -0300

    screenShield: Translate the dialog group
    
    Instead of the screen lock group, which is now
    empty and soon will be removed.

 js/ui/screenShield.js | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index d1dbf4cefd..3e69055088 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -602,8 +602,6 @@ var ScreenShield = class {
             return;
 
         this._ensureLockScreen();
-        this._lockDialogGroup.scale_x = 1;
-        this._lockDialogGroup.scale_y = 1;
 
         this._lockScreenGroup.show();
         this._lockScreenState = MessageTray.State.SHOWING;
@@ -611,10 +609,10 @@ var ScreenShield = class {
         let fadeToBlack = params.fadeToBlack;
 
         if (params.animateLockScreen) {
-            this._lockScreenGroup.y = -global.screen_height;
-            this._lockScreenGroup.remove_all_transitions();
-            this._lockScreenGroup.ease({
-                y: 0,
+            this._lockDialogGroup.translation_y = -global.screen_height;
+            this._lockDialogGroup.remove_all_transitions();
+            this._lockDialogGroup.ease({
+                translation_y: 0,
                 duration: MANUAL_FADE_TIME,
                 mode: Clutter.AnimationMode.EASE_OUT_QUAD,
                 onComplete: () => {
@@ -755,9 +753,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: CURTAIN_SLIDE_TIME,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,
             onComplete: () => this._completeDeactivate()
         });


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