You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
update comment
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user