From a9ad3dd9af03b68684003c9af3957446c6149659 Mon Sep 17 00:00:00 2001 From: Riccardo Perra Date: Sun, 5 Jan 2025 21:19:33 +0100 Subject: [PATCH] fix: 664 cant select xcode light and dark themes (#665) * fix: fix xcode theme id in theme registry * docs(changeset): fix: fix xcode theme id in theme registry --- .changeset/shy-rabbits-travel.md | 5 +++++ apps/codeimage/src/state/theme/themeRegistry.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/shy-rabbits-travel.md diff --git a/.changeset/shy-rabbits-travel.md b/.changeset/shy-rabbits-travel.md new file mode 100644 index 000000000..6ab674d57 --- /dev/null +++ b/.changeset/shy-rabbits-travel.md @@ -0,0 +1,5 @@ +--- +'@codeimage/app': patch +--- + +fix: fix xcode theme id in theme registry diff --git a/apps/codeimage/src/state/theme/themeRegistry.ts b/apps/codeimage/src/state/theme/themeRegistry.ts index 16eaf3ed9..6b9026efc 100644 --- a/apps/codeimage/src/state/theme/themeRegistry.ts +++ b/apps/codeimage/src/state/theme/themeRegistry.ts @@ -17,7 +17,7 @@ export const THEME_REGISTRY: ReadonlyArray = [ load: () => import('@codeimage/highlight/themes').then(m => m.vsCodeDarkTheme), }, { - id: 'xcodeDarkTheme', + id: 'xCodeDark', // prettier-ignore load: () => import('@codeimage/highlight/themes').then(m => m.xCodeDarkTheme), }, @@ -42,7 +42,7 @@ export const THEME_REGISTRY: ReadonlyArray = [ load: () => import('@codeimage/highlight/themes').then(m => m.draculaTheme), }, { - id: 'xcodeLightTheme', + id: 'xCodeLight', // prettier-ignore load: () => import('@codeimage/highlight/themes').then(m => m.xCodeLightTheme), }, @@ -82,7 +82,7 @@ export const THEME_REGISTRY: ReadonlyArray = [ load: () => import('@codeimage/highlight/themes').then(m => m.auraTheme), }, { - id: 'light', + id: 'oneLight', // prettier-ignore load: () => import('@codeimage/highlight/themes').then(m => m.lightTheme), },