From 87103374fd4ba203a35fbfe86e5b1148d3ef21d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 6 Aug 2020 20:50:09 +0200 Subject: [PATCH] overview: Increase SHADE_ANIMATION_TIME a bit The SHADE_ANIMATION_TIME variable sets the duration of the animation of the background shading that is done when showing the overview. As explained in the code-comment, that value must be smaller than the animation time of the overview. Now since we're going to start animating the background color of the panel when showing the overview and we're going to use the overviews animation time for that, we want to make sure the shading of the background image and the animation of the panel are kept "in sync", otherwise the transitions would look bad. So slightly increase the value of SHADE_ANIMATION_TIME to 240 (the overviews animation time is 250) to make sure those happen in the same timeframe. Part-of: --- js/ui/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/overview.js b/js/ui/overview.js index 9682f8e14..042e80a0a 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -21,7 +21,7 @@ const WorkspaceThumbnail = imports.ui.workspaceThumbnail; // Must be less than ANIMATION_TIME, since we switch to // or from the overview completely after ANIMATION_TIME, // and don't want the shading animation to get cut off -var SHADE_ANIMATION_TIME = 200; +var SHADE_ANIMATION_TIME = 240; var DND_WINDOW_SWITCH_TIMEOUT = 750;