Skip to content

Commit

Permalink
fix: intellij-webview theme
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Jan 21, 2024
1 parent a73d9c8 commit 8de9c0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/erd-editor-intellij-webview/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ setExportFileCallback(async (blob, options) => {
);
});

const getSystemTheme = () =>
document.body.classList.contains('vscode-light') ? 'light' : 'dark';

const handleChange = () => {
dispatch(
vscodeSaveValueAction({
Expand Down Expand Up @@ -90,8 +87,7 @@ bridge.on({
webviewUpdateTheme: ({ payload }) => {
editor.setPresetTheme({
...payload,
appearance:
payload.appearance === 'auto' ? getSystemTheme() : payload.appearance,
appearance: payload.appearance === 'auto' ? 'dark' : payload.appearance,
});
},
webviewUpdateReadonly: ({ payload }) => {
Expand Down

0 comments on commit 8de9c0f

Please sign in to comment.