aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-15 20:21:24 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-15 20:21:24 -0500
commit286b1a69b5b300b414fe299efa3ae018d55c90be (patch)
treeb8b085e858d96a94dd40982ec3552e76bd02c578 /src/client/views/MainView.tsx
parent8034deb2249b23e418427c4713c84f1ad76223c2 (diff)
title bar fixes and more dark scheme stuff
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 5d739474e..de76106d1 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -276,10 +276,11 @@ export class MainView extends React.Component {
childBackgroundColor = (doc: Doc) => {
if (this.darkScheme) {
- return doc.type === DocumentType.TEXT ? "#2d2d2d" : "black";
+ return doc.type === DocumentType.TEXT || doc.type === DocumentType.BUTTON ? "#2d2d2d" :
+ (doc.type === DocumentType.COL && doc._viewType !== CollectionViewType.Freeform && doc._viewType !== CollectionViewType.Time) || doc.type === DocumentType.BUTTON ? "#2d2d2d" : "black";
}
return doc.type === DocumentType.TEXT ? "#f1efeb" :
- doc.type === DocumentType.COL && doc._viewType === CollectionViewType.Tree ? "lightgray" : "white";
+ (doc.type === DocumentType.COL && doc._viewType !== CollectionViewType.Freeform && doc._viewType !== CollectionViewType.Time) || doc.type === DocumentType.BUTTON ? "lightgray" : "white";
}
sidebarBackgroundColor = (doc: Doc) => {
return this.childBackgroundColor(doc);