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



commit 5cc4678c59f4801bd9ea4122e7beef89fcdb2a4a
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/2181>

 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 1474886ef0..495a2d4ae5 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -616,7 +616,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]