[gnome-shell/gnome-41] panel: Fix corner transition when slowed down



commit d06a4617cb7817ec35bbaf9c74e0a95836aed62e
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 20 19:11:48 2022 +0100

    panel: Fix corner transition when slowed down
    
    Both ease() and CSS durations take the slow-down factor into account,
    so the corners currently end up using the square of the factor in their
    transition.
    
    (cherry picked from commit 6a10f2f2f1cf6082429b1544ec624aeaf4e18b90)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2180>

 js/ui/panel.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index dafba690a5..ce1c493087 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -492,7 +492,8 @@ class PanelCorner extends St.DrawingArea {
         let cornerRadius = node.get_length("-panel-corner-radius");
         let borderWidth = node.get_length('-panel-corner-border-width');
 
-        const transitionDuration = node.get_transition_duration();
+        const transitionDuration =
+            node.get_transition_duration() / St.Settings.get().slow_down_factor;
         const opacity = node.get_double('-panel-corner-opacity');
 
         this.set_size(cornerRadius, borderWidth + cornerRadius);


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