From d2ef3f87af6be89430a1d726401a11d1cbd1985d Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Tue, 18 Nov 2025 21:06:31 +0200 Subject: [PATCH 1/2] Fix share custom theme button generating invalid url --- frontend/src/ts/modals/share-custom-theme.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/modals/share-custom-theme.ts b/frontend/src/ts/modals/share-custom-theme.ts index f05129eab06b..657cc49692ea 100644 --- a/frontend/src/ts/modals/share-custom-theme.ts +++ b/frontend/src/ts/modals/share-custom-theme.ts @@ -30,9 +30,9 @@ async function generateUrl(): Promise { } = { c: ThemeController.colorVars.map( (color) => - $( - `.pageSettings .customTheme .tabContent.customTheme #${color}[type='color']` - ).attr("value") as string + $(`.pageSettings .tabContent.customTheme #${color}[type='color']`).attr( + "value" + ) as string ), }; From 2336caa5407dd335d63f67a4da1b8a3af6ab33c1 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Tue, 18 Nov 2025 21:35:54 +0200 Subject: [PATCH 2/2] Fix update custom theme failing when updating to current colors --- frontend/src/ts/modals/simple-modals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/modals/simple-modals.ts b/frontend/src/ts/modals/simple-modals.ts index 74b74103e2f4..3cc424b10cc5 100644 --- a/frontend/src/ts/modals/simple-modals.ts +++ b/frontend/src/ts/modals/simple-modals.ts @@ -1133,7 +1133,7 @@ list.updateCustomTheme = new SimpleModal({ for (const color of ThemeController.colorVars) { newColors.push( $( - `.pageSettings .customTheme .tabContent.customTheme #${color}[type='color']` + `.pageSettings .tabContent.customTheme #${color}[type='color']` ).attr("value") as string ); }