From 5391ae4a1bc710c93f2c6d34f5b065ff5ae94879 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 19 Mar 2023 10:26:37 +0100 Subject: [PATCH] client: list custom themes first --- packages/client/src/pages/settings/theme.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/settings/theme.vue b/packages/client/src/pages/settings/theme.vue index e4481c9b7..cfc797f51 100644 --- a/packages/client/src/pages/settings/theme.vue +++ b/packages/client/src/pages/settings/theme.vue @@ -87,7 +87,7 @@ const instanceThemes = []; if (instance.defaultLightTheme != null) instanceThemes.push(JSON5.parse(instance.defaultLightTheme)); if (instance.defaultDarkTheme != null) instanceThemes.push(JSON5.parse(instance.defaultDarkTheme)); -const themes = uniqueBy([ ...instanceThemes, ...builtinThemes, ...installedThemes ], theme => theme.id); +const themes = uniqueBy([...installedThemes, ...instanceThemes, ...builtinThemes], theme => theme.id); const darkThemes = themes.filter(t => t.base === 'dark' || t.kind === 'dark'); const lightThemes = themes.filter(t => t.base === 'light' || t.kind === 'light'); let darkTheme = $ref(ColdDeviceStorage.get('darkTheme'));