diff options
Diffstat (limited to 'homescreen/qml')
-rw-r--r-- | homescreen/qml/SpeechChrome.qml | 5 | ||||
-rw-r--r-- | homescreen/qml/images/SpeechChrome/push_to_talk_alexa.png | bin | 0 -> 1544 bytes | |||
-rw-r--r-- | homescreen/qml/images/SpeechChrome/speechchrome.qrc | 1 |
3 files changed, 4 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 diff --git a/homescreen/qml/images/SpeechChrome/push_to_talk_alexa.png b/homescreen/qml/images/SpeechChrome/push_to_talk_alexa.png Binary files differnew file mode 100644 index 0000000..f45218e --- /dev/null +++ b/homescreen/qml/images/SpeechChrome/push_to_talk_alexa.png diff --git a/homescreen/qml/images/SpeechChrome/speechchrome.qrc b/homescreen/qml/images/SpeechChrome/speechchrome.qrc index 42357f1..c5a9690 100644 --- a/homescreen/qml/images/SpeechChrome/speechchrome.qrc +++ b/homescreen/qml/images/SpeechChrome/speechchrome.qrc @@ -2,5 +2,6 @@ <qresource prefix="/images/SpeechChrome"> <file>bar.png</file> <file>push_to_talk.svg</file> + <file>push_to_talk_alexa.png</file> </qresource> </RCC> |