Commit e9071f4c authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/Calls/IncallAvatar): remove tabs

parent f0edd36f
...@@ -8,35 +8,35 @@ import App.Styles 1.0 ...@@ -8,35 +8,35 @@ import App.Styles 1.0
// ============================================================================= // =============================================================================
Avatar { Avatar {
property var call property var call
readonly property var _sipAddressObserver: SipAddressesModel.getSipAddressObserver(call.sipAddress) readonly property var _sipAddressObserver: SipAddressesModel.getSipAddressObserver(call.sipAddress)
readonly property var _username: LinphoneUtils.getContactUsername(_sipAddressObserver.contact || call.sipAddress) readonly property var _username: LinphoneUtils.getContactUsername(_sipAddressObserver.contact || call.sipAddress)
backgroundColor: CallStyle.container.avatar.backgroundColor backgroundColor: CallStyle.container.avatar.backgroundColor
foregroundColor: call.status === CallModel.CallStatusPaused foregroundColor: call.status === CallModel.CallStatusPaused
? CallStyle.container.pause.color ? CallStyle.container.pause.color
: 'transparent' : 'transparent'
image: { image: {
var contact = _sipAddressObserver.contact var contact = _sipAddressObserver.contact
return contact && contact.vcard.avatar return contact && contact.vcard.avatar
} }
username: call.status === CallModel.CallStatusPaused ? '' : _username username: call.status === CallModel.CallStatusPaused ? '' : _username
Text { Text {
anchors.fill: parent anchors.fill: parent
color: CallStyle.container.pause.text.color color: CallStyle.container.pause.text.color
// `|| 1` => `pointSize` must be greater than 0. // `|| 1` => `pointSize` must be greater than 0.
font.pointSize: (width / CallStyle.container.pause.text.pointSizeFactor) || 1 font.pointSize: (width / CallStyle.container.pause.text.pointSizeFactor) || 1
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
text: '▐ ▌' text: '▐ ▌'
textFormat: Text.RichText textFormat: Text.RichText
visible: call.status === CallModel.CallStatusPaused visible: call.status === CallModel.CallStatusPaused
} }
} }
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