[gnome-shell] loginDialog: Retain native logo dimensions



commit ffb8bd5fa7704ce70ce7d053e03549dd15dce5ae
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Mon Mar 16 18:05:53 2020 +0800

    loginDialog: Retain native logo dimensions
    
    So that the same logo may be used during boot and keeps its
    dimensions on the login screen, appearing to never move.
    
    Related to: https://bugs.launchpad.net/bugs/1867133
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1101

 js/gdm/loginDialog.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index b60d971a25..b19f1c6628 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -35,7 +35,6 @@ const UserWidget = imports.ui.userWidget;
 const _FADE_ANIMATION_TIME = 250;
 const _SCROLL_ANIMATION_TIME = 500;
 const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
-const _LOGO_ICON_HEIGHT = 48;
 
 var UserListItem = GObject.registerClass({
     Signals: { 'activate': {} },
@@ -813,7 +812,7 @@ var LoginDialog = GObject.registerClass({
         if (this._logoFile && this._logoBin.resource_scale > 0) {
             let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
             this._logoBin.add_child(this._textureCache.load_file_async(this._logoFile,
-                                                                       -1, _LOGO_ICON_HEIGHT,
+                                                                       -1, -1,
                                                                        scaleFactor,
                                                                        this._logoBin.resource_scale));
         }


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