From 159687d41ab9265744fda2ca50e30f0f3434686c Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 11 Dec 2020 21:39:24 -0500 Subject: fixe documentdecoration selection of menu items in left sidebar --- src/client/views/StyleProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/StyleProvider.tsx') diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index f51e94cfd..b01733f30 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -77,7 +77,7 @@ export function DefaultStyleProvider(doc: Opt, props: Opt = StrCast(doc?._backgroundColor, StrCast(doc?.backgroundColor)); + const docColor: Opt = StrCast(doc?._backgroundColor, StrCast(doc?.backgroundColor)); if (docColor) return docColor; if (MainView.Instance.LastButton === doc) return darkScheme() ? "dimgrey" : "lightgrey"; switch (doc?.type) { -- cgit v1.2.3-70-g09d2