Merge pull request #418 from StroepWafel/theme-updates

Theme updates
This commit is contained in:
StroepWafel
2026-04-07 08:13:27 +09:30
committed by GitHub
parent 783ff65fb5
commit f2fa9c39a9
8 changed files with 205 additions and 33 deletions
@@ -85,7 +85,7 @@
try {
const result = JSON.parse(event.target?.result as string);
tempTheme = result;
await themeManager.installTheme(result);
await themeManager.installTheme(result, { fromStore: false });
await fetchThemes();
} catch (error) {
console.error('Error parsing file:', error);
+1
View File
@@ -125,6 +125,7 @@
blob: image.blob
}))
themeClone.coverImage = theme.coverImage
themeClone.userEdited = true
if (shouldForceThemeAppearance(themeClone)) {
themeClone.forceTheme = true;
+2
View File
@@ -8,4 +8,6 @@ export type Theme = {
is_favorited?: boolean;
favorite_count?: number;
download_count?: number;
/** Unix seconds — last server update (GET /api/themes). */
updated_at?: number;
};