Skip to content

Commit 50f908d

Browse files
feat. alert user when changing editor theme
1 parent a1a79e2 commit 50f908d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/themeSetting/themeSetting.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ console.log(message);`);
193193
* @param {string} param0.theme
194194
*/
195195
function setEditorTheme({ caption, theme }) {
196-
editorManager.editor.setTheme(theme); // main editor
196+
if (appSettings.value.appTheme.toLowerCase() === "system") {
197+
alert("App theme is set to 'System'. Changing the editor theme will not affect the editor appearance.");
198+
}
199+
editorManager.editor.setTheme(theme);
197200
editor.setTheme(theme); // preview
198201
appSettings.update(
199202
{

0 commit comments

Comments
 (0)