diff options
author | bobzel <zzzman@gmail.com> | 2022-05-23 20:34:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-05-23 20:34:07 -0400 |
commit | 414b56260c55f5ea7cac43dad83b41688fb924b5 (patch) | |
tree | e7b94356cbf8ac28e5672638b8fc661f96e1a688 /src/client/views/StyleProvider.tsx | |
parent | 3fe0e0e02a6c9bd717b3df9b000c13d1131f6eb4 (diff) |
added headerBar for closed tabs and other docs. extended multirow/col to support hiding chile doc decorations and for making child content/document active work better. changed background style to work better for sub collections.
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 7ac40fc8e..c44443264 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -158,12 +158,12 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps (doc?._viewType === CollectionViewType.Pile || Doc.IsSystem(doc) ? (darkScheme() ? Colors.DARK_GRAY : Colors.LIGHT_GRAY) : // system docs (seen in treeView) get a grayish background doc.annotationOn ? "#00000015" : // faint interior for collections on PDFs, images, etc (doc?._isGroup ? undefined : - StrCast((props?.renderDepth || 0) > 0 ? + Cast((props?.renderDepth || 0) > 0 ? Doc.UserDoc().activeCollectionNestedBackground : - Doc.UserDoc().activeCollectionBackground ?? (darkScheme() ? + Doc.UserDoc().activeCollectionBackground, "string") ?? (darkScheme() ? Colors.BLACK : "linear-gradient(#065fff, #85c1f9)")) - )); + ); break; //if (doc._viewType !== CollectionViewType.Freeform && doc._viewType !== CollectionViewType.Time) return "rgb(62,62,62)"; default: docColor = docColor || (darkScheme() ? Colors.DARK_GRAY : Colors.WHITE); break; |