From b5c5410b4af5d2c68d2107d3f064f6e3ec4ac3f2 Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Thu, 25 Jan 2024 11:28:40 -0500 Subject: add setting bg color --- src/client/views/global/globalScripts.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/views/global') diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index 894afebfd..1f1fa2109 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -31,6 +31,10 @@ ScriptingGlobals.add(function setView(view: string) { selected ? (selected._type_collection = view) : console.log('[FontIconBox.tsx] changeView failed'); }); +ScriptingGlobals.add(function setSettingBgColor(isSetting: boolean) { + Doc.UserDoc().settingBgColor = isSetting; +}); + // toggle: Set overlay status of selected document ScriptingGlobals.add(function setBackgroundColor(color?: string, checkResult?: boolean) { const selectedViews = SelectionManager.Views(); -- cgit v1.2.3-70-g09d2