Skip to content

Commit

Permalink
Merge pull request #583 from luckyloogn/fix/flupivot-animation-issues
Browse files Browse the repository at this point in the history
修复FluPivot 切换选中项目时标题下划线动画未能完全关闭的问题
  • Loading branch information
zhuzichu520 authored Jan 2, 2025
2 parents 985e90b + e82000e commit 7204e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions src/Qt5/imports/FluentUI/Controls/FluPivot.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
10 changes: 2 additions & 8 deletions src/Qt6/imports/FluentUI/Controls/FluPivot.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7204e18

Please sign in to comment.