diff options
author | bobzel <zzzman@gmail.com> | 2023-07-01 14:03:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-07-01 14:03:28 -0400 |
commit | b87d49ee80db8bb657244c96f504cf1f5db06084 (patch) | |
tree | a631e83ce55bd8606131cd85d4c52a08885f52f2 /src/client/views/StyleProvider.tsx | |
parent | f96be621d52ebad3a65b891fe105eac5d128feee (diff) |
changed default margin for stacking, and set background for the stacking that is different than the default background for the stacked docs
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index f293733fb..ba9895d71 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -227,6 +227,8 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps ? '#00000010' // faint interior for collections on PDFs, images, etc : doc?._isGroup ? undefined + : doc._type_collection === CollectionViewType.Stacking ? + (darkScheme() ? Colors.MEDIUM_GRAY : Colors.DARK_GRAY) : Cast((props?.renderDepth || 0) > 0 ? Doc.UserDoc().activeCollectionNestedBackground : Doc.UserDoc().activeCollectionBackground, 'string') ?? (darkScheme() ? Colors.BLACK : Colors.MEDIUM_GRAY)); break; //if (doc._type_collection !== CollectionViewType.Freeform && doc._type_collection !== CollectionViewType.Time) return "rgb(62,62,62)"; |