summary refs log tree commit diff
path: root/resources/qml/ActiveCallBar.qml
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-10-27 13:14:06 -0400
committertrilene <trilene@runbox.com>2020-10-27 13:14:06 -0400
commitd1f3a3ef40a69fe50efe6e2b76400e7f5f5dfb6c (patch)
tree1d5eb5645f0aa410ddc22050d3bfb7459989e727 /resources/qml/ActiveCallBar.qml
parentMerge branch 'master' of ssh://github.com/Nheko-Reborn/nheko (diff)
downloadnheko-d1f3a3ef40a69fe50efe6e2b76400e7f5f5dfb6c.tar.xz
Support video calls
Diffstat (limited to 'resources/qml/ActiveCallBar.qml')
-rw-r--r--resources/qml/ActiveCallBar.qml12
1 files changed, 11 insertions, 1 deletions
diff --git a/resources/qml/ActiveCallBar.qml b/resources/qml/ActiveCallBar.qml

index 9344738e..49b5d059 100644 --- a/resources/qml/ActiveCallBar.qml +++ b/resources/qml/ActiveCallBar.qml
@@ -10,6 +10,12 @@ Rectangle { color: "#2ECC71" implicitHeight: rowLayout.height + 8 + MouseArea { + anchors.fill: parent + onClicked: if (TimelineManager.onVideoCall) + stackLayout.currentIndex = stackLayout.currentIndex ? 0 : 1; + } + RowLayout { id: rowLayout @@ -33,7 +39,8 @@ Rectangle { Image { Layout.preferredWidth: 24 Layout.preferredHeight: 24 - source: "qrc:/icons/icons/ui/place-call.png" + source: TimelineManager.onVideoCall ? + "qrc:/icons/icons/ui/video-call.png" : "qrc:/icons/icons/ui/place-call.png" } Label { @@ -58,9 +65,12 @@ Rectangle { callStateLabel.text = "00:00"; var d = new Date(); callTimer.startTime = Math.floor(d.getTime() / 1000); + if (TimelineManager.onVideoCall) + stackLayout.currentIndex = 1; break; case WebRTCState.DISCONNECTED: callStateLabel.text = ""; + stackLayout.currentIndex = 0; } }