Different background color for DMs in inbox timeline

master
Bob Mottram 2019-08-25 19:21:24 +01:00
parent 39c8d3bbbb
commit 84f9211c21
2 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,7 @@
--dropdown-bg-color: #111;
--dropdown-bg-color-hover: #333;
--main-bg-color-reply: #212c37;
--main-bg-color-dm: #111;
--main-bg-color-report: #221c27;
--main-header-color-roles: #282237;
--main-fg-color: #dddddd;
@ -418,6 +419,10 @@ a:link {
background-color: var(--main-bg-color-reply);
}
.dm {
background-color: var(--main-bg-color-dm);
}
.report {
border-color: #255;
background-color: var(--main-bg-color-report);

View File

@ -1310,6 +1310,11 @@ def individualPostAsHtml(baseDir: str, \
'<a href="/users/'+nickname+'?delete='+postJsonObject['object']['id']+'" title="Delete this post">' \
'<img src="/icons/delete.png"/></a>'
# change the background color for DMs in inbox timeline
if showDMicon:
containerClassIcons='containericons dm'
containerClass='container dm'
if showIcons:
replyToLink=postJsonObject['object']['id']
if postJsonObject['object'].get('attributedTo'):
@ -1354,7 +1359,7 @@ def individualPostAsHtml(baseDir: str, \
contentStr=addEmbeddedVideo(contentStr)
contentStr='<div class="message">'+contentStr+'</div>'
return \
'<div class="'+containerClass+'">\n'+ \
avatarDropdown+ \