forked from Shinonome/dots-hyprland
cheatsheet: fix weird popup anim
This commit is contained in:
@@ -158,14 +158,20 @@ Scope { // Scope
|
|||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
|
id: contentWidthBehavior
|
||||||
|
enabled: false
|
||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
|
id: contentHeightBehavior
|
||||||
|
enabled: false
|
||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
currentIndex: tabBar.externalTrackedTab
|
currentIndex: tabBar.externalTrackedTab
|
||||||
onCurrentIndexChanged: {
|
onCurrentIndexChanged: {
|
||||||
|
contentWidthBehavior.enabled = true;
|
||||||
|
contentHeightBehavior.enabled = true;
|
||||||
tabBar.enableIndicatorAnimation = true;
|
tabBar.enableIndicatorAnimation = true;
|
||||||
root.selectedTab = currentIndex;
|
root.selectedTab = currentIndex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user