mirror of https://gitlab.com/bashrc2/epicyon
Different background color for DMs in inbox timeline
parent
39c8d3bbbb
commit
84f9211c21
|
@ -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);
|
||||
|
|
|
@ -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+ \
|
||||
|
|
Loading…
Reference in New Issue