spinner on chat message when state idle/in progress

This commit is contained in:
Gaelle Braud 2025-07-31 09:48:17 +02:00
parent 4e37fb70f1
commit 98ad40e750
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M211.18,196.56,139.57,128l71.61-68.56a1.59,1.59,0,0,1,.13-.13A16,16,0,0,0,200,32H56A16,16,0,0,0,44.7,59.31l.12.13L116.43,128,44.82,196.56l-.12.13A16,16,0,0,0,56,224H200a16,16,0,0,0,11.32-27.31A1.59,1.59,0,0,1,211.18,196.56ZM56,48h0v0Zm144,0-72,68.92L56,48ZM56,208l72-68.92L200,208Z"></path></svg>

After

Width:  |  Height:  |  Size: 405 B

View file

@ -312,7 +312,16 @@ Control.Control {
? AppIcons.warningCircle
: mainItem.msgState === LinphoneEnums.ChatMessageState.StateDisplayed
? AppIcons.checks
: ""
: mainItem.msgState === LinphoneEnums.ChatMessageState.StatePendingDelivery
? AppIcons.hourglass
: ""
BusyIndicator {
anchors.fill: parent
z: parent.z + 1
visible: mainItem.msgState === LinphoneEnums.ChatMessageState.StateIdle
|| mainItem.msgState === LinphoneEnums.ChatMessageState.StateInProgress
|| mainItem.msgState === LinphoneEnums.ChatMessageState.StateFileTransferInProgress
}
}
}
}

View file

@ -157,4 +157,5 @@ QtObject {
property string ephemeralSettings: "image://internal/ephemeral-settings.svg"
property string radioOn: "image://internal/radio_on.svg"
property string radioOff: "image://internal/radio_off.svg"
property string hourglass: "image://internal/hourglass-simple.svg"
}