diff options
| author | bobzel <zzzman@gmail.com> | 2023-04-04 20:12:16 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-04-04 20:12:16 -0400 |
| commit | c5c2c309cd88bbeb2f1b668cb040cffaac9c8470 (patch) | |
| tree | 61ec6173e7e6aea136e2b901d8924afbe1043e2e /src/client/views/StyleProvider.tsx | |
| parent | 95c076b64a816c6bd503089f90234f8ce078eae8 (diff) | |
fixed using freeformview in sidebar of pdfs. fixed issues with dragging items out of schema and with selecting the schema view by clicking on headers. Fixed a lot of errors caused by using OmitKeys which masks type checking. fixed some pointerevent problems with treeview and freeformview
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 50cf8eba7..f7b9420a7 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -170,7 +170,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps const docColor: Opt<string> = StrCast(doc?.[fieldKey + 'color'], StrCast(doc?._color)); if (docColor) return docColor; const docView = props?.DocumentView?.(); - const backColor = backgroundCol() || docView?.props.styleProvider?.(docView.props.treeViewDoc, docView.props, 'backgroundColor'); + const backColor = backgroundCol() || docView?.props.styleProvider?.(docView.props.treeViewDoc, docView.props, StyleProp.BackgroundColor); if (!backColor) return undefined; return lightOrDark(backColor); case StyleProp.Hidden: |
