@@ -26,6 +26,7 @@ MainView {
2626 readonly property int currentMenuIndex : tabs.selectedTabIndex
2727 backgroundColor: "#221e1c" // FIXME not in palette yet
2828 property int contentReleaseInterval: 20000
29+ property bool activeHeader: false
2930
3031 width: units.gu(40)
3132 height: units.gu(42)
@@ -37,7 +38,11 @@ MainView {
3738
3839 function setCurrentMenuIndex(index) {
3940 if (currentMenuIndex !== index) {
41+ if (currentMenuIndex == -1) {
42+ tabs.tabBar.animate = false;
43+ }
4044 tabs.selectedTabIndex = index;
45+ tabs.tabBar.animate = true;
4146 }
4247 }
4348
@@ -52,6 +57,11 @@ MainView {
5257 }
5358 }
5459
60+ onActiveHeaderChanged: {
61+ tabs.tabBar.active = activeHeader;
62+ tabs.tabBar.alwaysActive = activeHeader;
63+ }
64+
5565 Tabs {
5666 id: tabs
5767 anchors.fill: parent