Fix bg opacity calculation (#5622)

This commit is contained in:
shamoon 2025-08-03 10:52:45 -04:00 committed by GitHub
parent c6197a9f92
commit 4be2c2868b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -509,7 +509,7 @@ export default function Wrapper({ initialSettings, fallback }) {
if (typeof bg === "object") {
backgroundImage = bg.image || "";
if (bg.opacity !== undefined) {
opacity = bg.opacity / 100;
opacity = 1 - bg.opacity / 100;
}
backgroundBlur = bg.blur !== undefined;
backgroundSaturate = bg.saturate !== undefined;