From c66131840af5213dd1d2f731ab983c7a138570f1 Mon Sep 17 00:00:00 2001 From: caipira113 Date: Sun, 29 Sep 2024 03:14:55 +0900 Subject: [PATCH] fix(frontend): theme error --- packages/frontend-embed/src/theme.ts | 4 ++-- packages/frontend/src/pages/theme-editor.vue | 4 ++-- packages/frontend/src/scripts/code-highlighter.ts | 4 ++-- packages/frontend/src/scripts/theme.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend-embed/src/theme.ts b/packages/frontend-embed/src/theme.ts index 0a4c504a1265..23e70cd0d375 100644 --- a/packages/frontend-embed/src/theme.ts +++ b/packages/frontend-embed/src/theme.ts @@ -4,8 +4,8 @@ */ import tinycolor from 'tinycolor2'; -import lightTheme from '@@/themes/l-stella-r2.json5'; -import darkTheme from '@@/themes/d-stella-r2.json5'; +import lightTheme from '@@/themes/_light.json5'; +import darkTheme from '@@/themes/_dark.json5'; import type { BundledTheme } from 'shiki/themes'; export type Theme = { diff --git a/packages/frontend/src/pages/theme-editor.vue b/packages/frontend/src/pages/theme-editor.vue index bfb80a7add2e..a62fe5d581d0 100644 --- a/packages/frontend/src/pages/theme-editor.vue +++ b/packages/frontend/src/pages/theme-editor.vue @@ -79,8 +79,8 @@ import tinycolor from 'tinycolor2'; import { v4 as uuid } from 'uuid'; import JSON5 from 'json5'; -import lightTheme from '@@/themes/l-stella-r2.json5'; -import darkTheme from '@@/themes/d-stella-r2.json5'; +import lightTheme from '@@/themes/_light.json5'; +import darkTheme from '@@/themes/_dark.json5'; import MkButton from '@/components/MkButton.vue'; import MkCodeEditor from '@/components/MkCodeEditor.vue'; import MkTextarea from '@/components/MkTextarea.vue'; diff --git a/packages/frontend/src/scripts/code-highlighter.ts b/packages/frontend/src/scripts/code-highlighter.ts index 2fa8e45fe086..6710d9826e8d 100644 --- a/packages/frontend/src/scripts/code-highlighter.ts +++ b/packages/frontend/src/scripts/code-highlighter.ts @@ -7,8 +7,8 @@ import { createHighlighterCore, loadWasm } from 'shiki/core'; import darkPlus from 'shiki/themes/dark-plus.mjs'; import { bundledThemesInfo } from 'shiki/themes'; import { bundledLanguagesInfo } from 'shiki/langs'; -import lightTheme from '@@/themes/l-stella-r2.json5'; -import darkTheme from '@@/themes/d-stella-r2.json5'; +import lightTheme from '@@/themes/_light.json5'; +import darkTheme from '@@/themes/_dark.json5'; import { unique } from './array.js'; import { deepClone } from './clone.js'; import { deepMerge } from './merge.js'; diff --git a/packages/frontend/src/scripts/theme.ts b/packages/frontend/src/scripts/theme.ts index 93895ced10d0..05efcf2bda71 100644 --- a/packages/frontend/src/scripts/theme.ts +++ b/packages/frontend/src/scripts/theme.ts @@ -5,8 +5,8 @@ import { ref } from 'vue'; import tinycolor from 'tinycolor2'; -import lightTheme from '@@/themes/l-stella-r2.json5'; -import darkTheme from '@@/themes/d-stella-r2.json5'; +import lightTheme from '@@/themes/_light.json5'; +import darkTheme from '@@/themes/_dark.json5'; import { deepClone } from './clone.js'; import type { BundledTheme } from 'shiki/themes'; import { globalEvents } from '@/events.js';