mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:38:29 +02:00
Merge pull request #15837 from zfox23/SUI/fasterSettingsTabs
DEV-170: Increase the speed of the animation when clicking between tabs in Settings
This commit is contained in:
commit
89db67552f
1 changed files with 14 additions and 0 deletions
|
@ -91,7 +91,20 @@ Rectangle {
|
||||||
Component {
|
Component {
|
||||||
id: highlightBar
|
id: highlightBar
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
width: tabListView.currentItem.width
|
||||||
|
height: tabListView.currentItem.height
|
||||||
color: simplifiedUI.colors.darkBackground
|
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
|
orientation: ListView.Horizontal
|
||||||
model: tabListModel
|
model: tabListModel
|
||||||
highlight: highlightBar
|
highlight: highlightBar
|
||||||
|
highlightFollowsCurrentItem: false
|
||||||
interactive: contentItem.width > width
|
interactive: contentItem.width > width
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
visible: model.tabTitle !== "Dev" || (model.tabTitle === "Dev" && root.developerModeEnabled)
|
visible: model.tabTitle !== "Dev" || (model.tabTitle === "Dev" && root.developerModeEnabled)
|
||||||
|
|
Loading…
Reference in a new issue