diff --git a/src/Qt5/imports/FluentUI/Controls/FluPivot.qml b/src/Qt5/imports/FluentUI/Controls/FluPivot.qml index ce45429a..21a302ee 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluPivot.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluPivot.qml @@ -31,21 +31,15 @@ Page { interactive: false orientation: ListView.Horizontal highlightMoveDuration: FluTheme.animationEnabled ? 167 : 0 + highlightResizeDuration: FluTheme.animationEnabled ? 167 : 0 highlight: Item{ clip: true Rectangle{ height: 3 radius: 1.5 color: FluTheme.primaryColor - width: nav_list.currentItem ? nav_list.currentItem.width : 0 + width: nav_list.currentItem.width y:d.tabY - Behavior on width { - enabled: FluTheme.animationEnabled - NumberAnimation{ - duration: 167 - easing.type: Easing.OutCubic - } - } } } delegate: Button{ diff --git a/src/Qt6/imports/FluentUI/Controls/FluPivot.qml b/src/Qt6/imports/FluentUI/Controls/FluPivot.qml index 7c0a9681..aa87558d 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluPivot.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluPivot.qml @@ -32,21 +32,15 @@ Page { interactive: false orientation: ListView.Horizontal highlightMoveDuration: FluTheme.animationEnabled ? 167 : 0 + highlightResizeDuration: FluTheme.animationEnabled ? 167 : 0 highlight: Item{ clip: true Rectangle{ height: 3 radius: 1.5 color: FluTheme.primaryColor - width: nav_list.currentItem ? nav_list.currentItem.width : 0 + width: nav_list.currentItem.width y:d.tabY - Behavior on width { - enabled: FluTheme.animationEnabled - NumberAnimation{ - duration: 167 - easing.type: Easing.OutCubic - } - } } } delegate: Button{