diff options
author | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:44:57 -0500 |
---|---|---|
committer | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:44:57 -0500 |
commit | f69406d8566fc0e66597e343ef9b7e9eb893556c (patch) | |
tree | e93d6a7476dd6947fc3a31c354d9c80e37c14803 /src/client/views/StyleProvider.tsx | |
parent | d565105fe0112d49092f23bd91167b8db2772b91 (diff) | |
parent | 99b63e35ddf40fc1a69d50059b72275ce23ac43e (diff) |
Merge branch 'master' into menushortcuts-jesus
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 3cb920ba0..817baeae6 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -19,6 +19,7 @@ import { SliderBox } from './nodes/SliderBox'; import './StyleProvider.scss'; import React = require('react'); import { Shadows } from 'browndash-components'; +import { SelectionManager } from '../util/SelectionManager'; export enum StyleProp { TreeViewIcon = 'treeViewIcon', @@ -116,7 +117,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps const excludeTypes = [DocumentType.FONTICON]; let highlighting = !props?.disableDocBrushing && highlightIndex && !excludeTypes.includes(doc.type as any) && doc._viewType !== CollectionViewType.Linear; // bcz: hack to turn off highlighting onsidebar panel documents. need to flag a document as not highlightable in a more direct way if (highlighting && props?.focus !== emptyFunction && StrCast(doc.title) !== '[pres element template]') { - return { highlightStyle, highlightColor, highlightIndex, highlightStroke: doc.type === DocumentType.INK }; + return { highlightStyle, highlightColor: SelectionManager.Views().some(dv => dv.rootDoc === doc) ? 'black' : highlightColor, highlightIndex, highlightStroke: doc.type === DocumentType.INK }; } } return undefined; |