mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Add small orange fad-in animation for NavigationItem
This commit is contained in:
parent
52e05b3444
commit
89170d3698
@ -11,7 +11,7 @@ Item {
|
||||
property string name: "value"
|
||||
property bool enabled: true
|
||||
onEnabledChanged: {
|
||||
if(!enabled){
|
||||
if (!enabled) {
|
||||
navigationItem.width = 0
|
||||
navigationItem.opacity = 0
|
||||
}
|
||||
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user