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
ab5addc3
Commit
ab5addc3
authored
Apr 21, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust templates to include message status
parent
58f9cd6d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
1 deletion
+73
-1
message_status_icons.style
resources/chat/message_status_icons.style
+60
-0
message.html
resources/chat/styles/Smooth Operator/html/message.html
+2
-1
message_continuation.html
...hat/styles/Smooth Operator/html/message_continuation.html
+1
-0
message.html
resources/chat/styles/Stockholm/html/message.html
+1
-0
message_continuation.html
...rces/chat/styles/Stockholm/html/message_continuation.html
+1
-0
message_status.html
resources/chat/styles/Stockholm/html/message_status.html
+3
-0
template.html
resources/chat/template.html
+5
-0
No files found.
resources/chat/message_status_icons.style
0 → 100644
View file @
ab5addc3
@charset "utf-8";
.status-icon {
height: 1.75em;
margin-right: -6px;
margin-top: -.4em;
}
.x-ltime.message-status {
left: 0px;
margin-left: -1.5em;
}
.x-ltime.message-status > .status-icon {
margin-right: 0;
margin-top: -2px;
}
.message.consecutive:not(.x-message) {
clear: both;
}
.stockholm {
float: right;
padding-right: 5px;
margin-right: -8px;
margin-left: 4px;
padding-left: 4px;
}
.rtl .stockholm {
float: left;
padding-right: 4px;
margin-right: 4px;
margin-left: -8px;
padding-left: 5px;
}
.stockholm > .status-icon {
height: 1.6em;
margin-right: -6px;
margin-top: -2px;
}
.stockholm > .status-icon.failed {
height: 1.4em;
padding-top: 2px;
}
.accepted {
filter: invert(38%) sepia(17%) saturate(0%) hue-rotate(177deg) brightness(94%) contrast(97%);
}
.delivered {
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%);
}
resources/chat/styles/Smooth Operator/html/message.html
View file @
ab5addc3
<div
class=
"{message.css_classes} {user_icons}"
user=
"{message.sender.name}"
style=
"background-color: {message.sender.color};"
>
<div
class=
"{message.css_classes} {user_icons}"
user=
"{message.sender.name}"
style=
"background-color: {message.sender.color};"
id=
"{message.id}"
>
<img
class=
"x-icon"
src=
"{message.sender.iconpath}"
/>
<img
class=
"x-icon"
src=
"{message.sender.iconpath}"
/>
<span
class=
"x-iconmask"
style=
"-webkit-mask-box-image: {message.sender.iconpath};"
></span>
<span
class=
"x-iconmask"
style=
"-webkit-mask-box-image: {message.sender.iconpath};"
></span>
<span
class=
"x-color"
style=
"background-color: {message.sender.color};"
src=
"{message.sender.iconpath}"
></span>
<span
class=
"x-color"
style=
"background-color: {message.sender.color};"
src=
"{message.sender.iconpath}"
></span>
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<span
class=
"x-sender"
>
{message.sender.name}
</span>
<span
class=
"x-sender"
>
{message.sender.name}
</span>
<span
class=
"x-rtime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-rtime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-ltime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-ltime"
title=
"{message.date}"
>
{message.time}
</span>
<span
id=
"status-{message.id}"
>
{message.status}
</span>
<span
class=
"x-mark"
></span>
<span
class=
"x-mark"
></span>
<span
class=
"x-message"
title=
"{message.time}"
>
{message.message}
</span>
<span
class=
"x-message"
title=
"{message.time}"
>
{message.message}
</span>
</span>
</span>
...
...
resources/chat/styles/Smooth Operator/html/message_continuation.html
View file @
ab5addc3
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<span
class=
"x-sender"
>
{message.sender.name}
</span>
<span
class=
"x-sender"
>
{message.sender.name}
</span>
<span
class=
"x-rtime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-rtime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-ltime"
title=
"{message.date}"
>
{message.time}
</span>
<span
class=
"x-ltime"
title=
"{message.date}"
>
{message.time}
</span>
<span
id=
"status-{message.id}"
>
{message.status}
</span>
<span
class=
"x-mark"
></span>
<span
class=
"x-mark"
></span>
<span
class=
"x-message"
title=
"{message.time}"
>
{message.message}
</span>
<span
class=
"x-message"
title=
"{message.time}"
>
{message.message}
</span>
</span>
</span>
...
...
resources/chat/styles/Stockholm/html/message.html
View file @
ab5addc3
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<div
class=
"x-sender"
>
{message.sender.name}
</div>
<div
class=
"x-sender"
>
{message.sender.name}
</div>
</div>
</div>
<div
class=
"x-message {message.text_direction}"
>
<div
class=
"x-message {message.text_direction}"
>
<span
id=
"status-{message.id}"
>
{message.status}
</span>
<div
class=
"x-time"
title=
"{message.date}"
>
{message.time}
</div>
<div
class=
"x-time"
title=
"{message.date}"
>
{message.time}
</div>
<div
class=
"x-text"
>
{message.message}
</div>
<div
class=
"x-text"
>
{message.message}
</div>
</div>
</div>
...
...
resources/chat/styles/Stockholm/html/message_continuation.html
View file @
ab5addc3
<div
class=
"x-message {message.css_classes} {message.text_direction}"
>
<div
class=
"x-message {message.css_classes} {message.text_direction}"
>
<span
id=
"status-{message.id}"
>
{message.status}
</span>
<div
class=
"x-time"
title=
"{message.date}"
>
{message.time}
</div>
<div
class=
"x-time"
title=
"{message.date}"
>
{message.time}
</div>
<div
class=
"x-text"
>
{message.message}
</div>
<div
class=
"x-text"
>
{message.message}
</div>
</div>
</div>
...
...
resources/chat/styles/Stockholm/html/message_status.html
0 → 100644
View file @
ab5addc3
<span
id=
'status-{message.id}'
>
<span
class=
"stockholm"
><img
class=
"{message.css_classes} {message.status}"
src=
"{message.iconpath}"
/></span>
</span>
resources/chat/template.html
View file @
ab5addc3
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
@import
url("{style_url}")
;
@import
url("{style_url}")
;
</style>
</style>
<!-- The message status icon styles!-->
<style
id=
"main_style"
type=
"text/css"
media=
"screen,print"
>
@import
url("../../message_status_icons.style")
;
</style>
<!-- The selected font !-->
<!-- The selected font !-->
<style
id=
"font_style"
type=
"text/css"
media=
"screen,print"
>
<style
id=
"font_style"
type=
"text/css"
media=
"screen,print"
>
body
{
{
font
:
{
font_size
}
px
{
font_family
}
;
}}
body
{
{
font
:
{
font_size
}
px
{
font_family
}
;
}}
...
...
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