respect the global disable animation option

This commit is contained in:
dwuggh
2025-10-12 03:37:26 +08:00
parent 62000eec1e
commit afcad54fec
+3 -2
View File
@@ -26,8 +26,9 @@ Variants {
property bool peekHovered: false
// Controls PanelWindow visibility while auto-hide is enabled
property bool barWindowVisible: !autoHide
readonly property int hideDelay: 500
readonly property int showDelay: 120
// Respect global animation toggle: no delays when animations are disabled
readonly property int hideDelay: Settings.data.general.animationDisabled ? 0 : 500
readonly property int showDelay: Settings.data.general.animationDisabled ? 0 : 120
readonly property int hideAnimationDuration: Style.animationNormal
readonly property int showAnimationDuration: Style.animationNormal