aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/global
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2024-01-25 11:28:40 -0500
committerSophie Zhang <sophie_zhang@brown.edu>2024-01-25 11:28:40 -0500
commitb5c5410b4af5d2c68d2107d3f064f6e3ec4ac3f2 (patch)
tree15daa2781bb4c7286a5608ea8f3096c262a1c158 /src/client/views/global
parent6c7e97e2aebf79307453bcee94522381ff4c7ba7 (diff)
add setting bg color
Diffstat (limited to 'src/client/views/global')
-rw-r--r--src/client/views/global/globalScripts.ts4
1 files changed, 4 insertions, 0 deletions
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();