From b7a3d82f0f0977344b303ee81cbd0fe5274a603f Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 25 Jun 2019 11:30:25 -0700 Subject: [PATCH] DEV-170: Increase the speed of the animation when clicking between tabs in Settings --- .../hifi/simplifiedUI/settingsApp/SettingsApp.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/interface/resources/qml/hifi/simplifiedUI/settingsApp/SettingsApp.qml b/interface/resources/qml/hifi/simplifiedUI/settingsApp/SettingsApp.qml index 1f48d1d753..a9199ff5f1 100644 --- a/interface/resources/qml/hifi/simplifiedUI/settingsApp/SettingsApp.qml +++ b/interface/resources/qml/hifi/simplifiedUI/settingsApp/SettingsApp.qml @@ -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)