1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Add small orange fad-in animation for NavigationItem

This commit is contained in:
Elias 2019-01-31 18:14:57 +01:00
parent 52e05b3444
commit 89170d3698

View File

@ -11,7 +11,7 @@ Item {
property string name: "value"
property bool enabled: true
onEnabledChanged: {
if(!enabled){
if (!enabled) {
navigationItem.width = 0
navigationItem.opacity = 0
}
@ -46,7 +46,7 @@ Item {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
navigationItem.pageClicked(navigationItem.name)
navigationItem.pageClicked(navigationItem.name)
}
Item {
@ -66,7 +66,6 @@ Item {
anchors.verticalCenter: parent.verticalCenter
font.family: "Roboto"
font.weight: Font.Normal
}
Image {
@ -146,15 +145,27 @@ Item {
transitions: [
Transition {
from: "*"
to: "active"
NumberAnimation {
properties: "anchors.bottomMargin"
duration: 100
duration: 200
easing.type: Easing.OutQuart
}
},
Transition {
from: "*"
to: "disabled"
NumberAnimation {
properties: "anchors.bottomMargin"
duration: 200
easing.type: Easing.OutQuart
}
},
Transition {
from: "*"
to: "inactive"
NumberAnimation {