This will allow in the future to differ between driver and passenger.
Bug-AGL: SPEC-2948
.
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: Icd2d61f2a3984ee3e6b591998c5b05aa91949cee
height: parent.height * 0.80
width: height
height: parent.height * 0.80
width: height
+ Image {
+ id: pushToTalkRight
+
+ height: parent.height * 0.80
+ width: height
+
+ anchors.right: parent.right
+ anchors.rightMargin: parent.width / 128
+ anchors.verticalCenter: parent.verticalCenter
+ source: "./images/SpeechChrome/push_to_talk.svg"
+
+ MouseArea {
+ anchors.fill: parent
+ onPressed: speechChromeController.pushToTalk()
+ }
+
+ Behavior on opacity {
+ NumberAnimation { duration: 250 }
+ }
+ }
+
states: [
State {
name: "Idle"
states: [
State {
name: "Idle"
+ target: pushToTalkLeft
+ opacity: 1.0
+ enabled: true
+ }
+ PropertyChanges {
+ target: pushToTalkRight
opacity: 1.0
enabled: true
}
opacity: 1.0
enabled: true
}
+ target: pushToTalkLeft
+ opacity: 0.0
+ enabled: false
+ }
+ PropertyChanges {
+ target: pushToTalkRight
opacity: 0.0
enabled: false
}
opacity: 0.0
enabled: false
}
x: root.width - chromeBarImage.width
}
PropertyChanges {
x: root.width - chromeBarImage.width
}
PropertyChanges {
+ target: pushToTalkLeft
+ opacity: 0.0
+ enabled: false
+ }
+ PropertyChanges {
+ target: pushToTalkRight
opacity: 0.0
enabled: false
}
opacity: 0.0
enabled: false
}
x: (root.width - chromeBarImage.width) * 0.5
}
PropertyChanges {
x: (root.width - chromeBarImage.width) * 0.5
}
PropertyChanges {
+ target: pushToTalkLeft
+ opacity: 0.0
+ enabled: false
+ }
+ PropertyChanges {
+ target: pushToTalkRight
opacity: 0.0
enabled: false
}
opacity: 0.0
enabled: false
}
+ target: pushToTalkLeft
+ opacity: 1.0
+ enabled: true
+ }
+ PropertyChanges {
+ target: pushToTalkRight
opacity: 1.0
enabled: true
}
opacity: 1.0
enabled: true
}