From a7bab90efb5ea713122b151d0c3a82cdc75c5d34 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Tue, 29 Jul 2025 16:54:58 +0200 Subject: [PATCH] Fix various display issues in CallView --- Linphone/UI/Call/CallView.swift | 1 - .../UI/Call/Fragments/CallsListFragment.swift | 197 ++++++++---------- .../Fragments/ParticipantsListFragment.swift | 2 +- .../UI/Call/ViewModel/CallViewModel.swift | 2 + 4 files changed, 89 insertions(+), 113 deletions(-) diff --git a/Linphone/UI/Call/CallView.swift b/Linphone/UI/Call/CallView.swift index 16dd3f410..d5712a771 100644 --- a/Linphone/UI/Call/CallView.swift +++ b/Linphone/UI/Call/CallView.swift @@ -221,7 +221,6 @@ struct CallView: View { HStack {} .onAppear { callViewModel.resetCallView() - callViewModel.getCallsList() } } } diff --git a/Linphone/UI/Call/Fragments/CallsListFragment.swift b/Linphone/UI/Call/Fragments/CallsListFragment.swift index fbf8f02bd..2c670cb87 100644 --- a/Linphone/UI/Call/Fragments/CallsListFragment.swift +++ b/Linphone/UI/Call/Fragments/CallsListFragment.swift @@ -171,14 +171,12 @@ struct CallsListFragment: View { HStack { Image((callViewModel.selectedCall!.state == .PausedByRemote || callViewModel.selectedCall!.state == .Pausing - || callViewModel.selectedCall!.state == .Paused) ? String(localized: "call_action_resume_call") : String(localized: "call_action_pause_call")) + || callViewModel.selectedCall!.state == .Paused) ? "play" : "pause") .resizable() .frame(width: 30, height: 30) } - .frame(width: 35, height: 30) - .background(.clear) - .cornerRadius(40) + .frame(width: 35, height: 35) Text((callViewModel.selectedCall!.state == .PausedByRemote || callViewModel.selectedCall!.state == .Pausing @@ -209,13 +207,10 @@ struct CallsListFragment: View { Image("phone-disconnect") .renderingMode(.template) .resizable() - .foregroundStyle(.white) - .frame(width: 20, height: 20) - + .foregroundStyle(Color.redDanger500) + .frame(width: 30, height: 30) } - .frame(width: 35, height: 30) - .background(Color.redDanger500) - .cornerRadius(40) + .frame(width: 35, height: 35) Text("call_action_hang_up") .foregroundStyle(Color.redDanger500) @@ -246,113 +241,62 @@ struct CallsListFragment: View { var callsList: some View { VStack { List { - ForEach(0..