update comment

This commit is contained in:
Bruno Windels 2020-04-27 19:39:07 +02:00
parent 1969310003
commit 76e04fbdfa

View file

@ -148,7 +148,7 @@ function setCustomThemeVars(customTheme) {
function setCSSVariable(name, hexColor, doPct = true) {
style.setProperty(`--${name}`, hexColor);
if (doPct) {
// uses #rrggbbaa to define the color with alpha values at 0% and 50%
// uses #rrggbbaa to define the color with alpha values at 0%, 15% and 50%
style.setProperty(`--${name}-0pct`, hexColor + "00");
style.setProperty(`--${name}-15pct`, hexColor + "26");
style.setProperty(`--${name}-50pct`, hexColor + "7F");