sidebar: calendar: animated navrail selection

This commit is contained in:
end-4
2025-06-19 00:37:53 +02:00
parent 7fba4b72bf
commit 66bd690b66
@@ -130,15 +130,17 @@ Rectangle {
Layout.topMargin: 10 Layout.topMargin: 10
width: tabBar.width width: tabBar.width
// Navigation rail buttons // Navigation rail buttons
ColumnLayout { NavigationRailTabArray {
id: tabBar
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 5 anchors.leftMargin: 5
id: tabBar currentIndex: root.selectedTab
spacing: 8 expanded: false
Repeater { Repeater {
model: root.tabs model: root.tabs
NavigationRailButton { NavigationRailButton {
showToggledHighlight: false
toggled: root.selectedTab == index toggled: root.selectedTab == index
buttonText: modelData.name buttonText: modelData.name
buttonIcon: modelData.icon buttonIcon: modelData.icon