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
3484ad6a
Commit
3484ad6a
authored
May 12, 2017
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added message delivery notification
parent
4a495b42
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
121 additions
and
29 deletions
+121
-29
chat_delivered.svg
linphone-desktop/assets/images/chat_delivered.svg
+15
-0
chat_error.svg
linphone-desktop/assets/images/chat_error.svg
+9
-5
chat_read.svg
linphone-desktop/assets/images/chat_read.svg
+15
-0
en.ts
linphone-desktop/assets/languages/en.ts
+15
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+15
-0
resources.qrc
linphone-desktop/resources.qrc
+2
-0
Colors.qml
linphone-desktop/ui/modules/Common/Constants/Colors.qml
+2
-0
OutgoingMessage.qml
...hone-desktop/ui/modules/Linphone/Chat/OutgoingMessage.qml
+46
-23
ChatStyle.qml
...one-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml
+2
-1
No files found.
linphone-desktop/assets/images/chat_delivered.svg
0 → 100644
View file @
3484ad6a
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"24px"
height=
"24px"
viewBox=
"0 0 24 24"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
<title>
chat_delivered
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Symbols"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"chat_delivered"
>
<g
id=
"Group-2"
>
<circle
id=
"Oval"
fill=
"#A7A7A7"
cx=
"12"
cy=
"12"
r=
"12"
></circle>
<path
d=
"M6.939201,10.9955745 C6.48364091,10.4768681 5.69384187,10.4256779 5.17513548,10.881238 C4.65642909,11.3367981 4.6052389,12.1265972 5.060799,12.6453035 L10.19145,18.4871267 C10.7237015,19.0931548 11.6820676,19.0439283 12.1494245,18.3865553 L19.0187735,8.72429318 C19.4187896,8.16164012 19.2869462,7.3812426 18.7242932,6.98122652 C18.1616401,6.58121045 17.3812426,6.71305377 16.9812265,7.27570682 L11.0273089,15.6503451 L6.939201,10.9955745 Z"
id=
"chat_message_delivered"
fill=
"#FFFFFF"
fill-rule=
"nonzero"
></path>
</g>
</g>
</g>
</svg>
linphone-desktop/assets/images/chat_error.svg
View file @
3484ad6a
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"
12px"
height=
"10px"
viewBox=
"0 0 12 10
"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 4
0.3 (33839
) - http://www.bohemiancoding.com/sketch -->
<svg
width=
"
24px"
height=
"24px"
viewBox=
"0 0 24 24
"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 4
2 (36781
) - http://www.bohemiancoding.com/sketch -->
<title>
chat_error
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Symbols"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"chat_error"
>
<polygon
id=
"Path-1067"
fill=
"#FF0000"
points=
"6.05012213 3.64153152e-14 0 10 12 10"
></polygon>
<path
d=
"M6,6 L6,3.5"
id=
"chat_message_delivered-copy-4"
stroke=
"#FFFFFF"
stroke-width=
"1.4"
stroke-linecap=
"round"
stroke-linejoin=
"round"
></path>
<ellipse
id=
"Oval-24"
fill=
"#FFFFFF"
cx=
"6.03499979"
cy=
"8.13500017"
rx=
"0.834999979"
ry=
"0.834999979"
></ellipse>
<g
id=
"Group-3"
>
<circle
id=
"Oval"
fill=
"#FF0000"
cx=
"12"
cy=
"12"
r=
"12"
></circle>
<g
id=
"Group-2"
transform=
"translate(10.000000, 4.600000)"
stroke=
"#FFFFFF"
fill=
"#FFFFFF"
>
<polygon
id=
"Path-1067"
stroke-width=
"0.8"
stroke-linejoin=
"round"
transform=
"translate(2.000000, 4.880676) rotate(-180.000000) translate(-2.000000, -4.880676) "
points=
"2 1.77635684e-15 0.5 9.76135254 3.5 9.76135254"
></polygon>
<ellipse
id=
"Oval-24"
stroke-width=
"0.5"
cx=
"2.00000036"
cy=
"13.4"
rx=
"1.39999998"
ry=
"1.39999998"
></ellipse>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
linphone-desktop/assets/images/chat_read.svg
0 → 100644
View file @
3484ad6a
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"24px"
height=
"24px"
viewBox=
"0 0 24 24"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
<title>
chat_read
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Symbols"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"chat_read"
>
<g
id=
"Group-2"
>
<circle
id=
"Oval"
fill=
"#18A7AF"
cx=
"12"
cy=
"12"
r=
"12"
></circle>
<path
d=
"M6.939201,10.9955745 C6.48364091,10.4768681 5.69384187,10.4256779 5.17513548,10.881238 C4.65642909,11.3367981 4.6052389,12.1265972 5.060799,12.6453035 L10.19145,18.4871267 C10.7237015,19.0931548 11.6820676,19.0439283 12.1494245,18.3865553 L19.0187735,8.72429318 C19.4187896,8.16164012 19.2869462,7.3812426 18.7242932,6.98122652 C18.1616401,6.58121045 17.3812426,6.71305377 16.9812265,7.27570682 L11.0273089,15.6503451 L6.939201,10.9955745 Z"
id=
"chat_message_delivered"
fill=
"#FFFFFF"
fill-rule=
"nonzero"
></path>
</g>
</g>
</g>
</svg>
linphone-desktop/assets/languages/en.ts
View file @
3484ad6a
...
...
@@ -809,6 +809,21 @@ your friend's SIP address or username.</translation>
<
translation
>
Select
you
active
account
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
OutgoingMessage
<
/name
>
<
message
>
<
source
>
Error
<
/source
>
<
translation
>
Error
<
/translation
>
<
/message
>
<
message
>
<
source
>
Read
<
/source
>
<
translation
>
Read
<
/translation
>
<
/message
>
<
message
>
<
source
>
Delivered
<
/source
>
<
translation
>
Delivered
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Presence
<
/name
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
3484ad6a
...
...
@@ -808,6 +808,21 @@ un chat ou ajouter un contact.</translation>
<
translation
>
S
é
lectionner
votre
compte
principal
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
OutgoingMessage
<
/name
>
<
message
>
<
source
>
Error
<
/source
>
<
translation
>
Erreur
<
/translation
>
<
/message
>
<
message
>
<
source
>
Read
<
/source
>
<
translation
>
Lu
<
/translation
>
<
/message
>
<
message
>
<
source
>
Delivered
<
/source
>
<
translation
>
D
é
livr
é
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
Presence
<
/name
>
<
message
>
...
...
linphone-desktop/resources.qrc
View file @
3484ad6a
...
...
@@ -48,10 +48,12 @@
<file>
assets/images/camera_on_updating.svg
</file>
<file>
assets/images/chat_amount.svg
</file>
<file>
assets/images/chat_count.svg
</file>
<file>
assets/images/chat_delivered.svg
</file>
<file>
assets/images/chat_error.svg
</file>
<file>
assets/images/chat_hovered.svg
</file>
<file>
assets/images/chat_normal.svg
</file>
<file>
assets/images/chat_pressed.svg
</file>
<file>
assets/images/chat_read.svg
</file>
<file>
assets/images/chat_send.svg
</file>
<file>
assets/images/collapse.svg
</file>
<file>
assets/images/contact_add_hovered.svg
</file>
...
...
linphone-desktop/ui/modules/Common/Constants/Colors.qml
View file @
3484ad6a
...
...
@@ -40,4 +40,6 @@ QtObject {
property
color
z
:
'
#17A81A
'
property
color
error
:
'
#FF0000
'
property
color
read
:
'
#18A7AF
'
property
color
delivered
:
'
#A7A7A7
'
}
linphone-desktop/ui/modules/Linphone/Chat/OutgoingMessage.qml
View file @
3484ad6a
...
...
@@ -32,6 +32,24 @@ Item {
Component
{
id
:
icon
RowLayout
{
Text
{
property
bool
isNotDelivered
:
Utils
.
includes
([
ChatModel
.
MessageStatusFileTransferError
,
ChatModel
.
MessageStatusIdle
,
ChatModel
.
MessageStatusInProgress
,
ChatModel
.
MessageStatusNotDelivered
],
$chatEntry
.
status
)
property
bool
isRead
:
Utils
.
includes
([
ChatModel
.
MessageStatusDisplayed
],
$chatEntry
.
status
)
text
:
isNotDelivered
?
qsTr
(
"
Error
"
)
:
isRead
?
qsTr
(
"
Read
"
)
:
qsTr
(
"
Delivered
"
)
color
:
isNotDelivered
?
Colors
.
error
:
isRead
?
Colors
.
read
:
Colors
.
delivered
font.pointSize
:
ChatStyle
.
entry
.
message
.
outgoing
.
fontSize
}
Icon
{
property
bool
isNotDelivered
:
Utils
.
includes
([
ChatModel
.
MessageStatusFileTransferError
,
...
...
@@ -40,7 +58,11 @@ Item {
ChatModel
.
MessageStatusNotDelivered
],
$chatEntry
.
status
)
icon
:
isNotDelivered
?
'
chat_error
'
:
'
chat_send
'
property
bool
isRead
:
Utils
.
includes
([
ChatModel
.
MessageStatusDisplayed
],
$chatEntry
.
status
)
icon
:
isNotDelivered
?
'
chat_error
'
:
isRead
?
'
chat_read
'
:
'
chat_delivered
'
iconSize
:
ChatStyle
.
entry
.
message
.
outgoing
.
sendIconSize
MouseArea
{
...
...
@@ -48,6 +70,16 @@ Item {
onClicked
:
isNotDelivered
&&
proxyModel
.
resendMessage
(
index
)
}
}
ActionButton
{
height
:
ChatStyle
.
entry
.
lineHeight
icon
:
'
delete
'
iconSize
:
ChatStyle
.
entry
.
deleteIconSize
visible
:
isHoverEntry
()
onClicked
:
removeEntry
()
}
}
}
Component
{
...
...
@@ -63,15 +95,6 @@ Item {
?
indicator
:
icon
}
ActionButton
{
height
:
ChatStyle
.
entry
.
lineHeight
icon
:
'
delete
'
iconSize
:
ChatStyle
.
entry
.
deleteIconSize
visible
:
isHoverEntry
()
onClicked
:
removeEntry
()
}
}
}
}
linphone-desktop/ui/modules/Linphone/Styles/Chat/ChatStyle.qml
View file @
3484ad6a
...
...
@@ -96,7 +96,8 @@ QtObject {
property
QtObject
outgoing
:
QtObject
{
property
color
backgroundColor
:
Colors
.
e
property
int
sendIconSize
:
12
property
int
sendIconSize
:
10
property
int
fontSize
:
8
property
QtObject
text
:
QtObject
{
property
color
color
:
Colors
.
r
...
...
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