diff --git a/assets/images/video_call_disabled.svg b/assets/images/video_call_disabled.svg new file mode 100644 index 000000000..aa08ecbe6 --- /dev/null +++ b/assets/images/video_call_disabled.svg @@ -0,0 +1,15 @@ + + + + video_call_default + Created with Sketch. + + + + + + + + + + diff --git a/resources.qrc b/resources.qrc index 9e47c852f..a6767c3d8 100644 --- a/resources.qrc +++ b/resources.qrc @@ -196,6 +196,7 @@ assets/images/video_call_accept_hovered.svg assets/images/video_call_accept_normal.svg assets/images/video_call_accept_pressed.svg + assets/images/video_call_disabled.svg assets/images/video_call_hovered.svg assets/images/video_call_normal.svg assets/images/video_call_pressed.svg diff --git a/ui/views/App/Main/Contacts.qml b/ui/views/App/Main/Contacts.qml index 3cd7cfcf7..f3435e7a7 100644 --- a/ui/views/App/Main/Contacts.qml +++ b/ui/views/App/Main/Contacts.qml @@ -131,6 +131,7 @@ ColumnLayout { iconSize: ContactsStyle.contact.actionButtonsSize ActionButton { + enabled: SettingsModel.videoSupported icon: 'video_call' onClicked: actions.itemAt(0).open() } diff --git a/ui/views/App/Main/Conversation.qml b/ui/views/App/Main/Conversation.qml index 07d4317d3..233806dd9 100644 --- a/ui/views/App/Main/Conversation.qml +++ b/ui/views/App/Main/Conversation.qml @@ -74,6 +74,7 @@ ColumnLayout { iconSize: ConversationStyle.bar.actions.call.iconSize ActionButton { + enabled: SettingsModel.videoSupported icon: 'video_call' onClicked: CallsListModel.launchVideoCall(conversation.sipAddress) }