Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
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
Kulya
vmj-qt
Commits
f832e5ee
Commit
f832e5ee
authored
May 23, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support 'done icon'
parent
127f0a7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
chatwindow.py
blink/chatwindow.py
+5
-0
message_status_icons.style
resources/chat/message_status_icons.style
+2
-1
No files found.
blink/chatwindow.py
View file @
f832e5ee
...
...
@@ -641,6 +641,7 @@ class ChatWidget(base_class, ui_class):
default_user_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/default-avatar.png'
))
checkmark_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/checkmark.svg'
))
warning_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/warning.svg'
))
done_all_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/done-all.svg'
))
chat_template
=
open
(
Resources
.
get
(
'chat/template.html'
))
.
read
()
...
...
@@ -687,8 +688,12 @@ class ChatWidget(base_class, ui_class):
self
.
last_message
=
message
def
update_message_status
(
self
,
id
,
status
):
if
status
==
'pending'
:
return
if
status
==
'failed'
:
icon
=
self
.
warning_icon
elif
status
==
'displayed'
:
icon
=
self
.
done_all_icon
else
:
icon
=
self
.
checkmark_icon
insertion_point
=
self
.
chat_element
.
findFirst
(
f
'span#status-{id}'
)
...
...
resources/chat/message_status_icons.style
View file @
f832e5ee
...
...
@@ -55,10 +55,11 @@
filter: invert(38%) sepia(17%) saturate(0%) hue-rotate(177deg) brightness(94%) contrast(97%);
}
.delivered {
.delivered
, .displayed
{
filter: invert(28%) sepia(98%) saturate(2550%) hue-rotate(107deg) brightness(102%) contrast(103%);
}
.failed {
filter: invert(12%) sepia(77%) saturate(5700%) hue-rotate(357deg) brightness(73%) contrast(112%);
}
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