diff options
author | bobzel <zzzman@gmail.com> | 2021-09-21 19:59:30 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-21 19:59:30 -0400 |
commit | b290b0c33d13df5ac574ad5c6693586cf72cac6b (patch) | |
tree | a8efc2c36161e6d82bb7dfec8512b9b329f9d1e2 /src | |
parent | eb50e46332c2f0b48c7cb165d55245aab317ef08 (diff) |
temporary change to reset old accounts on browndash to enable dark mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 3 |
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; } |