mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(theme): update Monaco theme configuration to use default light and dark themes
This commit is contained in:
parent
33e19d3318
commit
d859796755
@ -1,11 +1,10 @@
|
||||
import { useTheme } from "next-themes";
|
||||
import { MonacoTheme } from "@/types/monaco-theme";
|
||||
import { MonacoThemeConfig } from "@/config/monaco-theme";
|
||||
import { DefaultLightThemeConfig, DefaultDarkThemeConfig } from "@/config/monaco-theme";
|
||||
|
||||
export function useMonacoTheme() {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
const currentTheme = resolvedTheme === "light" ? MonacoThemeConfig[MonacoTheme.GitHubLightDefault].id : MonacoThemeConfig[MonacoTheme.GitHubDarkDefault].id;
|
||||
const currentTheme = resolvedTheme === "light" ? DefaultLightThemeConfig.id : DefaultDarkThemeConfig.id;
|
||||
|
||||
return {
|
||||
currentTheme,
|
||||
|
Loading…
Reference in New Issue
Block a user