From 8d6e7ed4771e71876e4eaee74765343060aaa6cc Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 5 Dec 2023 00:08:03 -0800 Subject: [PATCH] Fix: always reset theme classes on update appearance settings --- src-ui/src/app/services/settings.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index faa0ee059..7b9428f9e 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -143,6 +143,8 @@ export class SettingsService { `${hsl.l * 100}%` ) } else { + this._renderer.removeClass(this.document.body, 'primary-dark') + this._renderer.removeClass(this.document.body, 'primary-light') document.documentElement.style.removeProperty('--pngx-primary') document.documentElement.style.removeProperty('--pngx-primary-lightness') }