From 9bce2a02beb4efbb0676f8e09d7b027c3bf72f4c Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 2 Mar 2021 19:52:26 -0300 Subject: [PATCH] overview: Don't show black panel on startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The back → transparent transition gives it a very bad look when booting and running the startup animation. Use the same transition duration hack to ensure that the panel starts completely transparent. Part-of: --- js/ui/overview.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/overview.js b/js/ui/overview.js index 209be4203..78736e513 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -652,6 +652,8 @@ var Overview = class { } runStartupAnimation(callback) { + Main.panel.style = 'transition-duration: 0ms;'; + this._shown = true; this._visible = true; this._visibleTarget = true; @@ -663,6 +665,7 @@ var Overview = class { this.emit('showing'); this._overview.runStartupAnimation(() => { + Main.panel.style = null; this.emit('shown'); callback(); });