Revert "Text color changes based on author color"

This reverts commit 49061175c9.
This commit is contained in:
Peter 'Pita' Martischka 2012-01-26 12:57:57 +01:00
parent d370a5b76f
commit 622068183a
1 changed files with 1 additions and 11 deletions

View File

@ -236,22 +236,12 @@ function OUTER(gscope)
{
bgcolor = fadeColor(bgcolor, info.fade);
}
// Background
dynamicCSS.selectorStyle(getAuthorColorClassSelector(
getAuthorClassName(author))).backgroundColor = bgcolor;
dynamicCSSTop.selectorStyle(getAuthorColorClassSelector(
getAuthorClassName(author))).backgroundColor = bgcolor;
// Text color
var txtcolor = (colorutils.luminosity(bgcolor) < 0.45) ? 'ffffff' : '000000';
dynamicCSS.selectorStyle(getAuthorColorClassSelector(
getAuthorClassName(author))).color = txtcolor;
dynamicCSSTop.selectorStyle(getAuthorColorClassSelector(
getAuthorClassName(author))).color = txtcolor;
}
}
}