aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-21 19:59:30 -0400
committerbobzel <zzzman@gmail.com>2021-09-21 19:59:30 -0400
commitb290b0c33d13df5ac574ad5c6693586cf72cac6b (patch)
treea8efc2c36161e6d82bb7dfec8512b9b329f9d1e2 /src
parenteb50e46332c2f0b48c7cb165d55245aab317ef08 (diff)
temporary change to reset old accounts on browndash to enable dark mode.
Diffstat (limited to 'src')
-rw-r--r--src/client/util/CurrentUserUtils.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 568a9ddbd..2fcf06bd8 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -1363,6 +1363,9 @@ export class CurrentUserUtils {
// undefined means ColorScheme.Light until all CSS is updated with values for each color scheme (e.g., see MainView.scss, DocumentDecorations.scss)
doc.activeDashboard.colorScheme = doc.activeDashboard.colorScheme === ColorScheme.Light ? undefined : doc.activeDashboard.colorScheme;
}
+ if (doc.activeCollectionNestedBackground === "white") { // temporary to avoid having to rebuild the databse for old accounts that have this set by default.
+ doc.activeCollectionNestedBackground = undefined;
+ }
return doc;
}