1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 14:55:43 +02:00

callactionbar: add fullscreen button

Also fix a typo causing the icon in the context menu to not update

Change-Id: I8886b45afcc55a3c724494afa10fc125d218d14e
This commit is contained in:
Sébastien Blin 2022-01-14 14:18:00 -05:00
parent f15233b31f
commit 93da093ba6
4 changed files with 21 additions and 2 deletions

View file

@ -50,6 +50,7 @@ Control {
signal shareFileClicked
signal pluginsClicked
signal recordCallClicked
signal fullScreenClicked
Component {
id: buttonDelegate
@ -220,6 +221,17 @@ Control {
icon.color: "white"
text: JamiStrings.chat
},
Action {
id: fullScreenAction
icon.source: layoutManager.isCallFullscreen ?
JamiResources.close_fullscreen_24dp_svg :
JamiResources.open_in_full_24dp_svg
icon.color: "white"
onTriggered: root.fullScreenClicked()
text: layoutManager.isCallFullscreen ?
JamiStrings.exitFullScreen :
JamiStrings.fullScreen
},
Action {
id: resumePauseCallAction
onTriggered: root.resumePauseCallClicked()
@ -345,6 +357,7 @@ Control {
CallOverlayModel.addSecondaryControl(shareAction)
CallOverlayModel.addSecondaryControl(recordAction)
CallOverlayModel.addSecondaryControl(pluginsAction)
CallOverlayModel.addSecondaryControl(fullScreenAction)
overflowItemCount = CallOverlayModel.secondaryModel().rowCount()
muteAudioAction.checked = isAudioMuted

View file

@ -49,6 +49,7 @@ Item {
property bool localHandRaised
signal chatButtonClicked
signal fullScreenClicked
ParticipantsLayer {
id: __participantsLayer
@ -210,6 +211,7 @@ Item {
function onRecordCallClicked() { recordClicked() }
function onShareFileClicked() { jamiFileDialog.open() }
function onPluginsClicked() { openPluginsMenu() }
function onFullScreenClicked() { root.fullScreenClicked() }
}
}

View file

@ -88,10 +88,10 @@ ContextMenuAutoLoader {
GeneralMenuItem {
id: fullScreen
itemName: layoutManager.callIsFullscreen ?
itemName: layoutManager.isCallFullscreen ?
JamiStrings.exitFullScreen :
JamiStrings.fullScreen
iconSource: layoutManager.callIsFullscreen ?
iconSource: layoutManager.isCallFullscreen ?
JamiResources.close_fullscreen_24dp_svg :
JamiResources.open_in_full_24dp_svg
onClicked: {

View file

@ -331,6 +331,10 @@ Rectangle {
closeInCallConversation() :
openInCallConversation()
}
onFullScreenClicked: {
callStackView.toggleFullScreen()
}
}
ColumnLayout {