feat(monaco-theme): update Monaco theme configuration with label metadata

This commit is contained in:
cfngc4594 2025-03-04 20:29:07 +08:00
parent ec9f3b2475
commit 6d9c6701d4
2 changed files with 13 additions and 2 deletions

View File

@ -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 };

View File

@ -2,3 +2,8 @@ export enum MonacoTheme {
GitHubLightDefault = "github-light-default",
GitHubDarkDefault = "github-dark-default",
}
export type MonacoThemeMetadata = {
id: MonacoTheme;
label: string;
};