From 6d9c6701d4207b19156ceb9e3515a9fccbc1c8a4 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Tue, 4 Mar 2025 20:29:07 +0800 Subject: [PATCH] feat(monaco-theme): update Monaco theme configuration with label metadata --- src/config/monaco-theme.ts | 10 ++++++++-- src/types/monaco-theme.ts | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/config/monaco-theme.ts b/src/config/monaco-theme.ts index 06600b4..5f96ed2 100644 --- a/src/config/monaco-theme.ts +++ b/src/config/monaco-theme.ts @@ -2,8 +2,14 @@ import { MonacoTheme } from "@/types/monaco-theme"; // Define theme configurations const MonacoThemeConfig = { - light: MonacoTheme.GitHubLightDefault, // Light theme - dark: MonacoTheme.GitHubDarkDefault, // Dark theme + [MonacoTheme.GitHubLightDefault]: { + id: MonacoTheme.GitHubLightDefault, + label: "Github Light Default", + }, + [MonacoTheme.GitHubDarkDefault]: { + id: MonacoTheme.GitHubDarkDefault, + label: "Github Dark Default", + }, }; export { MonacoThemeConfig }; diff --git a/src/types/monaco-theme.ts b/src/types/monaco-theme.ts index 8154fde..a2195ee 100644 --- a/src/types/monaco-theme.ts +++ b/src/types/monaco-theme.ts @@ -2,3 +2,8 @@ export enum MonacoTheme { GitHubLightDefault = "github-light-default", GitHubDarkDefault = "github-dark-default", } + +export type MonacoThemeMetadata = { + id: MonacoTheme; + label: string; +};