diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2019-08-20 15:15:27 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2019-08-20 12:40:46 +0000 |
commit | 817e0d3434fd161c9b6f389d813148382b0c318e (patch) | |
tree | 36d0066c3b516b881d6d75608370b4680408cd4b | |
parent | 63b4c4754945ffbdc1ec9daca740304f23c80b53 (diff) |
Add microphone activity visualization
Change-Id: I92273e10f9f4599d5f9c5a17c569f2fb37fca72c
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
-rw-r--r-- | app/AlexaView.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/AlexaView.qml b/app/AlexaView.qml index 46fe9c2..d9e9542 100644 --- a/app/AlexaView.qml +++ b/app/AlexaView.qml @@ -245,11 +245,18 @@ Control { anchors.left: parent.left anchors.right: parent.right height: parent.height + Rectangle { + width: interactionButton.width * ( 1.0 + 0.3 * alexaInterface.audioLevel ) + height: width + anchors.centerIn: interactionButton + radius: width / 2 + color: Style.accentColor + } DropShadow { anchors.fill: interactionButton horizontalOffset: Sizes.dp(3) verticalOffset: Sizes.dp(3) - radius: 8.0 + radius: Sizes.dp(8.0) samples: 17 color: "#80000000" source: interactionButton.background |