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):
...
@@ -641,6 +641,7 @@ class ChatWidget(base_class, ui_class):
default_user_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/default-avatar.png'
))
default_user_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/default-avatar.png'
))
checkmark_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/checkmark.svg'
))
checkmark_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/checkmark.svg'
))
warning_icon
=
IconDescriptor
(
Resources
.
get
(
'icons/warning.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
()
chat_template
=
open
(
Resources
.
get
(
'chat/template.html'
))
.
read
()
...
@@ -687,8 +688,12 @@ class ChatWidget(base_class, ui_class):
...
@@ -687,8 +688,12 @@ class ChatWidget(base_class, ui_class):
self
.
last_message
=
message
self
.
last_message
=
message
def
update_message_status
(
self
,
id
,
status
):
def
update_message_status
(
self
,
id
,
status
):
if
status
==
'pending'
:
return
if
status
==
'failed'
:
if
status
==
'failed'
:
icon
=
self
.
warning_icon
icon
=
self
.
warning_icon
elif
status
==
'displayed'
:
icon
=
self
.
done_all_icon
else
:
else
:
icon
=
self
.
checkmark_icon
icon
=
self
.
checkmark_icon
insertion_point
=
self
.
chat_element
.
findFirst
(
f
'span#status-{id}'
)
insertion_point
=
self
.
chat_element
.
findFirst
(
f
'span#status-{id}'
)
...
...
resources/chat/message_status_icons.style
View file @
f832e5ee
...
@@ -55,10 +55,11 @@
...
@@ -55,10 +55,11 @@
filter: invert(38%) sepia(17%) saturate(0%) hue-rotate(177deg) brightness(94%) contrast(97%);
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%);
filter: invert(28%) sepia(98%) saturate(2550%) hue-rotate(107deg) brightness(102%) contrast(103%);
}
}
.failed {
.failed {
filter: invert(12%) sepia(77%) saturate(5700%) hue-rotate(357deg) brightness(73%) contrast(112%);
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