mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
update comment
This commit is contained in:
parent
1969310003
commit
76e04fbdfa
@ -148,7 +148,7 @@ function setCustomThemeVars(customTheme) {
|
|||||||
function setCSSVariable(name, hexColor, doPct = true) {
|
function setCSSVariable(name, hexColor, doPct = true) {
|
||||||
style.setProperty(`--${name}`, hexColor);
|
style.setProperty(`--${name}`, hexColor);
|
||||||
if (doPct) {
|
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}-0pct`, hexColor + "00");
|
||||||
style.setProperty(`--${name}-15pct`, hexColor + "26");
|
style.setProperty(`--${name}-15pct`, hexColor + "26");
|
||||||
style.setProperty(`--${name}-50pct`, hexColor + "7F");
|
style.setProperty(`--${name}-50pct`, hexColor + "7F");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user