From ffb8bd5fa7704ce70ce7d053e03549dd15dce5ae Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Mon, 16 Mar 2020 18:05:53 +0800 Subject: [PATCH] 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 b60d971a2..b19f1c662 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)); }