DEV-170: Increase the speed of the animation when clicking between tabs in Settings

This commit is contained in:
Zach Fox 2019-06-25 11:30:25 -07:00
parent ca797e30e4
commit b7a3d82f0f

View file

@ -91,7 +91,20 @@ Rectangle {
Component {
id: highlightBar
Rectangle {
width: tabListView.currentItem.width
height: tabListView.currentItem.height
color: simplifiedUI.colors.darkBackground
x: tabListView.currentItem.x
Behavior on x {
SmoothedAnimation {
duration: 250
}
}
Behavior on width {
SmoothedAnimation {
duration: 250
}
}
}
}
@ -104,6 +117,7 @@ Rectangle {
orientation: ListView.Horizontal
model: tabListModel
highlight: highlightBar
highlightFollowsCurrentItem: false
interactive: contentItem.width > width
delegate: Item {
visible: model.tabTitle !== "Dev" || (model.tabTitle === "Dev" && root.developerModeEnabled)