diff --git a/scripts/Actions/Theme.ts b/scripts/Actions/Theme.ts index e4312a23..b2c81577 100644 --- a/scripts/Actions/Theme.ts +++ b/scripts/Actions/Theme.ts @@ -172,8 +172,10 @@ export function pickColor(arn: AnimeNotifier, element: HTMLElement) { let input = document.createElement("input") input.type = "color" - input.click() + input.oninput = () => { rootStyle.setProperty(variableName, input.value) } + + input.click() }