colibris: fix coloring text when authorship background color is activated #3641

This commit is contained in:
Sebastian Castro 2020-04-16 08:20:57 +02:00 committed by muxator
parent 5e6ceb071e
commit 2193875292
3 changed files with 11 additions and 11 deletions

View file

@ -255,15 +255,9 @@ function Ace2Inner(){
authorStyle.backgroundColor = bgcolor;
parentAuthorStyle.backgroundColor = bgcolor;
// text contrast
if(colorutils.luminosity(colorutils.css2triple(bgcolor)) < 0.5)
{
authorStyle.color = '#ffffff';
parentAuthorStyle.color = '#ffffff';
}else{
authorStyle.color = null;
parentAuthorStyle.color = null;
}
var textColor = colorutils.textColorFromBackgroundColor(bgcolor, parent.parent.clientVars.skinName);
authorStyle.color = textColor;
parentAuthorStyle.color = textColor;
// anchor text contrast
if(colorutils.luminosity(colorutils.css2triple(bgcolor)) < 0.55)