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;
}
}
|