update comment
This commit is contained in:
parent
1969310003
commit
76e04fbdfa
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue