Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
1dce1fef
Commit
1dce1fef
authored
Jun 09, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/views/App/Calls/Incall): remove letters when call is paused on avatar
parent
98af40d8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
38 deletions
+52
-38
resources.qrc
linphone-desktop/resources.qrc
+1
-0
Conference.qml
linphone-desktop/ui/views/App/Calls/Conference.qml
+7
-16
Incall.qml
linphone-desktop/ui/views/App/Calls/Incall.qml
+2
-22
IncallAvatar.qml
linphone-desktop/ui/views/App/Calls/IncallAvatar.qml
+42
-0
No files found.
linphone-desktop/resources.qrc
View file @
1dce1fef
...
@@ -370,6 +370,7 @@
...
@@ -370,6 +370,7 @@
<file>
ui/views/App/Calls/Dialogs/CallTransfer.qml
</file>
<file>
ui/views/App/Calls/Dialogs/CallTransfer.qml
</file>
<file>
ui/views/App/Calls/Dialogs/ConferenceManager.qml
</file>
<file>
ui/views/App/Calls/Dialogs/ConferenceManager.qml
</file>
<file>
ui/views/App/Calls/EndedCall.qml
</file>
<file>
ui/views/App/Calls/EndedCall.qml
</file>
<file>
ui/views/App/Calls/IncallAvatar.qml
</file>
<file>
ui/views/App/Calls/IncallFullscreenWindow.qml
</file>
<file>
ui/views/App/Calls/IncallFullscreenWindow.qml
</file>
<file>
ui/views/App/Calls/Incall.js
</file>
<file>
ui/views/App/Calls/Incall.js
</file>
<file>
ui/views/App/Calls/Incall.qml
</file>
<file>
ui/views/App/Calls/Incall.qml
</file>
...
...
linphone-desktop/ui/views/App/Calls/Conference.qml
View file @
1dce1fef
...
@@ -135,7 +135,7 @@ Rectangle {
...
@@ -135,7 +135,7 @@ Rectangle {
username
:
LinphoneUtils
.
getContactUsername
(
parent
.
sipAddressObserver
.
contact
||
parent
.
sipAddress
)
username
:
LinphoneUtils
.
getContactUsername
(
parent
.
sipAddressObserver
.
contact
||
parent
.
sipAddress
)
}
}
Avatar
{
Incall
Avatar
{
readonly
property
int
size
:
Math
.
min
(
readonly
property
int
size
:
Math
.
min
(
parent
.
width
,
parent
.
width
,
parent
.
height
-
contactDescription
.
height
-
parent
.
spacing
parent
.
height
-
contactDescription
.
height
-
parent
.
spacing
...
@@ -143,29 +143,20 @@ Rectangle {
...
@@ -143,29 +143,20 @@ Rectangle {
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
call
:
$call
height
:
size
height
:
size
width
:
size
width
:
size
backgroundColor
:
CallStyle
.
container
.
avatar
.
backgroundColor
BusyIndicator
{
foregroundColor
:
$call
&&
$call
.
status
===
CallModel
.
CallStatusPaused
anchors
{
?
CallStyle
.
container
.
pause
.
color
horizontalCenter
:
parent
.
horizontalCenter
:
'
transparent
'
verticalCenter
:
parent
.
verticalCenter
image
:
{
var
contact
=
parent
.
sipAddressObserver
.
contact
if
(
contact
)
{
return
contact
.
vcard
.
avatar
}
}
}
username
:
contactDescription
.
username
BusyIndicator
{
color
:
CallStyle
.
header
.
busyIndicator
.
color
color
:
CallStyle
.
header
.
busyIndicator
.
color
height
:
CallStyle
.
header
.
busyIndicator
.
height
height
:
CallStyle
.
header
.
busyIndicator
.
height
width
:
CallStyle
.
header
.
busyIndicator
.
width
width
:
CallStyle
.
header
.
busyIndicator
.
width
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
visible
:
$call
&&
$call
.
status
===
CallModel
.
CallStatusOutgoing
visible
:
$call
&&
$call
.
status
===
CallModel
.
CallStatusOutgoing
}
}
...
...
linphone-desktop/ui/views/App/Calls/Incall.qml
View file @
1dce1fef
...
@@ -200,31 +200,11 @@ Rectangle {
...
@@ -200,31 +200,11 @@ Rectangle {
Component
{
Component
{
id
:
avatar
id
:
avatar
Avatar
{
IncallAvatar
{
backgroundColor
:
CallStyle
.
container
.
avatar
.
backgroundColor
call
:
incall
.
call
foregroundColor
:
incall
.
call
.
status
===
CallModel
.
CallStatusPaused
?
CallStyle
.
container
.
pause
.
color
:
'
transparent
'
image
:
_sipAddressObserver
.
contact
&&
_sipAddressObserver
.
contact
.
vcard
.
avatar
username
:
contactDescription
.
username
height
:
Logic
.
computeAvatarSize
(
CallStyle
.
container
.
avatar
.
maxSize
)
height
:
Logic
.
computeAvatarSize
(
CallStyle
.
container
.
avatar
.
maxSize
)
width
:
height
width
:
height
Text
{
anchors.fill
:
parent
color
:
CallStyle
.
container
.
pause
.
text
.
color
// `|| 1` => `pointSize` must be greater than 0.
font.pointSize
:
(
width
/
CallStyle
.
container
.
pause
.
text
.
pointSizeFactor
)
||
1
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
'
▐ ▌
'
textFormat
:
Text
.
RichText
visible
:
incall
.
call
.
status
===
CallModel
.
CallStatusPaused
}
}
}
}
}
...
...
linphone-desktop/ui/views/App/Calls/IncallAvatar.qml
0 → 100644
View file @
1dce1fef
import
QtQuick
2.7
import
Linphone
1.0
import
LinphoneUtils
1.0
import
App
.
Styles
1.0
// =============================================================================
Avatar
{
property
var
call
readonly
property
var
_sipAddressObserver
:
SipAddressesModel
.
getSipAddressObserver
(
call
.
sipAddress
)
readonly
property
var
_username
:
LinphoneUtils
.
getContactUsername
(
_sipAddressObserver
.
contact
||
call
.
sipAddress
)
backgroundColor
:
CallStyle
.
container
.
avatar
.
backgroundColor
foregroundColor
:
call
.
status
===
CallModel
.
CallStatusPaused
?
CallStyle
.
container
.
pause
.
color
:
'
transparent
'
image
:
{
var
contact
=
_sipAddressObserver
.
contact
return
contact
&&
contact
.
vcard
.
avatar
}
username
:
call
.
status
===
CallModel
.
CallStatusPaused
?
''
:
_username
Text
{
anchors.fill
:
parent
color
:
CallStyle
.
container
.
pause
.
text
.
color
// `|| 1` => `pointSize` must be greater than 0.
font.pointSize
:
(
width
/
CallStyle
.
container
.
pause
.
text
.
pointSizeFactor
)
||
1
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
'
▐ ▌
'
textFormat
:
Text
.
RichText
visible
:
call
.
status
===
CallModel
.
CallStatusPaused
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment