diff --git a/apps/desktop/src/assets/theme-previews/auto.jpg b/apps/desktop/src/assets/theme-previews/auto.jpg index 6ba498fcd3..2a9304cb45 100644 Binary files a/apps/desktop/src/assets/theme-previews/auto.jpg and b/apps/desktop/src/assets/theme-previews/auto.jpg differ diff --git a/apps/desktop/src/assets/theme-previews/dark.jpg b/apps/desktop/src/assets/theme-previews/dark.jpg index 0f39163633..9820c9f57a 100644 Binary files a/apps/desktop/src/assets/theme-previews/dark.jpg and b/apps/desktop/src/assets/theme-previews/dark.jpg differ diff --git a/apps/desktop/src/assets/theme-previews/legacy-auto.jpg b/apps/desktop/src/assets/theme-previews/legacy-auto.jpg new file mode 100644 index 0000000000..54ee8d0609 Binary files /dev/null and b/apps/desktop/src/assets/theme-previews/legacy-auto.jpg differ diff --git a/apps/desktop/src/assets/theme-previews/legacy-dark.jpg b/apps/desktop/src/assets/theme-previews/legacy-dark.jpg new file mode 100644 index 0000000000..2fb280563c Binary files /dev/null and b/apps/desktop/src/assets/theme-previews/legacy-dark.jpg differ diff --git a/apps/desktop/src/assets/theme-previews/legacy-light.jpg b/apps/desktop/src/assets/theme-previews/legacy-light.jpg new file mode 100644 index 0000000000..46fc04cf43 Binary files /dev/null and b/apps/desktop/src/assets/theme-previews/legacy-light.jpg differ diff --git a/apps/desktop/src/assets/theme-previews/light.jpg b/apps/desktop/src/assets/theme-previews/light.jpg index f52be40b18..64e83080e8 100644 Binary files a/apps/desktop/src/assets/theme-previews/light.jpg and b/apps/desktop/src/assets/theme-previews/light.jpg differ diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx index 08b4846400..38a48f8b4f 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx @@ -20,6 +20,9 @@ import { import { createStore, reconcile } from "solid-js/store"; import themePreviewAuto from "~/assets/theme-previews/auto.jpg"; import themePreviewDark from "~/assets/theme-previews/dark.jpg"; +import themePreviewLegacyAuto from "~/assets/theme-previews/legacy-auto.jpg"; +import themePreviewLegacyDark from "~/assets/theme-previews/legacy-dark.jpg"; +import themePreviewLegacyLight from "~/assets/theme-previews/legacy-light.jpg"; import themePreviewLight from "~/assets/theme-previews/light.jpg"; import { Input } from "~/routes/editor/ui"; import { authStore, generalSettingsStore } from "~/store"; @@ -111,13 +114,35 @@ export default function GeneralSettings() { function AppearanceSection(props: { currentTheme: AppTheme; + newRecordingFlow: boolean; onThemeChange: (theme: AppTheme) => void; }) { const options = [ - { id: "system", name: "System", preview: themePreviewAuto }, - { id: "light", name: "Light", preview: themePreviewLight }, - { id: "dark", name: "Dark", preview: themePreviewDark }, - ] satisfies { id: AppTheme; name: string; preview: string }[]; + { + id: "system", + name: "System", + }, + { + id: "light", + name: "Light", + }, + { + id: "dark", + name: "Dark", + }, + ] satisfies { id: AppTheme; name: string }[]; + + const previews = createMemo(() => { + return { + system: props.newRecordingFlow + ? themePreviewAuto + : themePreviewLegacyAuto, + light: props.newRecordingFlow + ? themePreviewLight + : themePreviewLegacyLight, + dark: props.newRecordingFlow ? themePreviewDark : themePreviewLegacyDark, + }; + }); return (
@@ -155,11 +180,16 @@ function AppearanceSection(props: { aria-label={`Select theme: ${theme.name}`} >
- {`Preview + + {(preview) => ( + {`Preview + )} +
{ setSettings("theme", newTheme); generalSettingsStore.set({ theme: newTheme });