From e0c66a12650a8c61220026b4f7a7f431107cb6e0 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Fri, 16 Oct 2026 09:32:10 +0300 Subject: [PATCH] fix(core): save the chosen theme ThemeManager called storage.set, which neither app's storage has, so choosing a theme threw and the choice was lost on reload. --- packages/core/src/theme/ThemeManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/theme/ThemeManager.ts b/packages/core/src/theme/ThemeManager.ts index c78f3ee..39dfba6 100644 --- a/packages/core/src/theme/ThemeManager.ts +++ b/packages/core/src/theme/ThemeManager.ts @@ -13,7 +13,7 @@ export type ThemeManagerEvents = "themechange"; export class ThemeManager extends TinyEmitter { private _theme: Theme; - private _storage: any; + private _storage: Storage; private _themes: Theme[]; // The first theme is the default. constructor(storage: Storage, themeList: Theme[] = themes) { @@ -34,7 +34,7 @@ export class ThemeManager extends TinyEmitter { } private writetToLocalStorage(value: Theme) { - this._storage.set(THEME_ID, value.id); + this._storage.setString(THEME_ID, value.id); } private readFromLocalStorage(): Theme | undefined {