diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 17:36:25 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 18:05:09 -0500 |
commit | b57a3197dad42bdd7a72266aaa160341573b0627 (patch) | |
tree | 9c93f21d65d3fbac75693d5fa01afa4cd10b5ccd /homescreen/qml/SpeechChrome.qml | |
parent | 7dcc687d179c645f4ccf7fffdb507e18b8d562c4 (diff) |
Display Alexa specific chrome when it is used
Add logic to key off the voiceagent name and display Alexa specific
chrome (the required Alexa icon) when it is used.
Bug-AGL: SPEC-3075
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I4bacad2e3906ee1e8221ed3e6bfe92b340d65aab
Diffstat (limited to 'homescreen/qml/SpeechChrome.qml')
-rw-r--r-- | homescreen/qml/SpeechChrome.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/homescreen/qml/SpeechChrome.qml b/homescreen/qml/SpeechChrome.qml index ab46cb6..123928c 100644 --- a/homescreen/qml/SpeechChrome.qml +++ b/homescreen/qml/SpeechChrome.qml @@ -7,6 +7,7 @@ Item { clip: true property bool agentPresent: speechChromeController.agentPresent + property string agentName: speechChromeController.agentName visible: agentPresent @@ -33,7 +34,7 @@ Item { anchors.left: parent.left anchors.leftMargin: parent.width / 128 anchors.verticalCenter: parent.verticalCenter - source: "./images/SpeechChrome/push_to_talk.svg" + source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg" MouseArea { anchors.fill: parent @@ -54,7 +55,7 @@ Item { anchors.right: parent.right anchors.rightMargin: parent.width / 128 anchors.verticalCenter: parent.verticalCenter - source: "./images/SpeechChrome/push_to_talk.svg" + source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg" MouseArea { anchors.fill: parent |