Skip to content

Commit

Permalink
Rename monacoTheme to APP_THEME.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 12, 2024
1 parent 0dd682d commit ff2e087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions new-log-viewer/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import DropFileContainer from "./DropFileContainer";
import Editor from "./Editor";
import MenuBar from "./MenuBar";
import StatusBar from "./StatusBar";
import monacoTheme from "./theme";
import APP_THEME from "./theme";


/**
Expand All @@ -19,7 +19,7 @@ const Layout = () => {
<CssVarsProvider
defaultMode={CONFIG_DEFAULT[CONFIG_KEY.THEME]}
modeStorageKey={CONFIG_KEY.THEME}
theme={monacoTheme}
theme={APP_THEME}
>
<div className={"layout"}>
<MenuBar/>
Expand Down
4 changes: 2 additions & 2 deletions new-log-viewer/src/components/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {extendTheme} from "@mui/joy/styles";
import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown";


const monacoTheme = extendTheme({
const APP_THEME = extendTheme({
colorSchemes: {
light: {
palette: {
Expand Down Expand Up @@ -85,4 +85,4 @@ const monacoTheme = extendTheme({
},
});

export default monacoTheme;
export default APP_THEME;

0 comments on commit ff2e087

Please sign in to comment.