mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 14:39:53 +01:00
Merge branch 'master' of git://github.com/marcelklehr/etherpad-lite
This commit is contained in:
commit
7a3e800fca
1 changed files with 11 additions and 1 deletions
|
@ -208,11 +208,21 @@ function OUTER(gscope)
|
||||||
bgcolor = fadeColor(bgcolor, info.fade);
|
bgcolor = fadeColor(bgcolor, info.fade);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Background
|
||||||
dynamicCSS.selectorStyle(getAuthorColorClassSelector(
|
dynamicCSS.selectorStyle(getAuthorColorClassSelector(
|
||||||
getAuthorClassName(author))).backgroundColor = bgcolor;
|
getAuthorClassName(author))).backgroundColor = bgcolor;
|
||||||
|
|
||||||
dynamicCSSTop.selectorStyle(getAuthorColorClassSelector(
|
dynamicCSSTop.selectorStyle(getAuthorColorClassSelector(
|
||||||
getAuthorClassName(author))).backgroundColor = bgcolor;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue