Commit fd6ca7f2 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/ConferenceManager): in progress

parent 9a1ff583
...@@ -73,7 +73,7 @@ ListView { ...@@ -73,7 +73,7 @@ ListView {
entryWidth: CallsStyle.entry.width entryWidth: CallsStyle.entry.width
Repeater { Repeater {
model: params.actions model: params ? params.actions : []
DropDownStaticMenuEntry { DropDownStaticMenuEntry {
entryName: modelData.name entryName: modelData.name
...@@ -93,10 +93,25 @@ ListView { ...@@ -93,10 +93,25 @@ ListView {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
header: ConferenceControls { header: ConferenceControls {
readonly property bool isSelected: calls.currentIndex === -1 &&
calls._selectedCall == null &&
visible
height: visible ? ConferenceControlsStyle.height : 0 height: visible ? ConferenceControlsStyle.height : 0
width: parent.width width: parent.width
visible: calls.conferenceModel.count > 0 visible: calls.conferenceModel.count > 0
color: isSelected
? CallsStyle.entry.color.selected
: CallsStyle.entry.color.normal
textColor: isSelected
? CallsStyle.entry.usernameColor.selected
: CallsStyle.entry.usernameColor.normal
onClicked: Logic.resetSelectedCall()
onVisibleChanged: !visible && Logic.handleCountChanged(calls.count)
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -155,7 +170,7 @@ ListView { ...@@ -155,7 +170,7 @@ ListView {
SequentialAnimation on color { SequentialAnimation on color {
loops: CallsStyle.entry.endCallAnimation.loops loops: CallsStyle.entry.endCallAnimation.loops
running: $call.status === CallModel.CallStatusEnded running: $call && $call.status === CallModel.CallStatusEnded
ColorAnimation { ColorAnimation {
duration: CallsStyle.entry.endCallAnimation.duration duration: CallsStyle.entry.endCallAnimation.duration
......
...@@ -144,7 +144,7 @@ Rectangle { ...@@ -144,7 +144,7 @@ Rectangle {
width: size width: size
backgroundColor: CallStyle.container.avatar.backgroundColor backgroundColor: CallStyle.container.avatar.backgroundColor
foregroundColor: $call.status === CallModel.CallStatusPaused foregroundColor: $call && $call.status === CallModel.CallStatusPaused
? CallStyle.container.pause.color ? CallStyle.container.pause.color
: 'transparent' : 'transparent'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment