feat: add support for loading custom themes from files (#2218)

* feat: add support for loading custom themes from files

---------

Co-authored-by: jeffvli <jeffvictorli@gmail.com>
This commit is contained in:
Louis Dalibard
2026-07-19 04:27:09 +02:00
committed by GitHub
parent 2cab569c23
commit f152e03ae7
14 changed files with 1018 additions and 30 deletions
+8 -3
View File
@@ -557,9 +557,14 @@ export const GeneralSettingsSchema = z.object({
sideQueueType: SideQueueTypeSchema,
skipButtons: SkipButtonsSchema,
spotify: z.boolean(),
theme: z.nativeEnum(AppTheme),
themeDark: z.nativeEnum(AppTheme),
themeLight: z.nativeEnum(AppTheme),
// Accepts either a built-in AppTheme id or a custom theme id (the
// filename, without extension, of a JSON file in the themes folder).
// Custom theme ids aren't statically known, so this can't be a
// nativeEnum(AppTheme) any more; getAppTheme() falls back to the
// default theme if the stored id doesn't resolve to anything.
theme: z.string(),
themeDark: z.string(),
themeLight: z.string(),
useThemeAccentColor: z.boolean(),
useThemePrimaryShade: z.boolean(),
volumeWheelStep: z.number(),