Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(site): default public galleries to dark appearance

Timothy Yined5cd8b03f16
diff --git a/apps/site/server/api/public/system/settings/all.get.ts b/apps/site/server/api/public/system/settings/all.get.ts
index 36fef764..886a31f8 100644
--- a/apps/site/server/api/public/system/settings/all.get.ts
+++ b/apps/site/server/api/public/system/settings/all.get.ts
@@ -29,6 +29,8 @@ export default definePlatformHandler(async (event) => {
avatarUrl: string
presentation: string
}>()
+ // Start public galleries in dark mode; visitors can switch themes in the UI.
+ data.app!['appearance.theme'] = 'dark'
data.app!.title = profile?.title || context.name
data.app!.slogan = profile?.slogan || ''
data.app!.author = profile?.author || ''