forked from Shinonome/dots-hyprland
sidebar: calendar: animated navrail selection
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user