diff options
author | bobzel <zzzman@gmail.com> | 2021-09-24 14:01:00 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-24 14:01:00 -0400 |
commit | 8b49822b6a80c19424dd9adda9516b6806757a58 (patch) | |
tree | 9c3d1846081534c221c406d47f3b47209a9de437 /src/client/views/StyleProvider.tsx | |
parent | dd715f07c391173bc1c4c57252043fdf4f843ce2 (diff) |
styled label markers on audio timeline to have border rounding. fixed setting drop location of documents on a clipped timeline. fixed clipping markers on timeline that do not overlap current clip. fixed escape aborting selecting a region on timeline to not restart on movement after esc.
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 cd6e11bda..e6490a56c 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -106,7 +106,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps if (!backColor) return undefined; return lightOrDark(backColor); case StyleProp.Hidden: return BoolCast(doc?._hidden); - case StyleProp.BorderRounding: return StrCast(doc?.[fieldKey + "borderRounding"], doc?._viewType === CollectionViewType.Pile ? "50%" : ""); + case StyleProp.BorderRounding: return StrCast(doc?.[fieldKey + "borderRounding"], StrCast(doc?.borderRounding, doc?._viewType === CollectionViewType.Pile ? "50%" : "")); case StyleProp.TitleHeight: return 15; case StyleProp.BorderPath: return comicStyle() && props?.renderDepth ? { path: wavyBorderPath(props?.PanelWidth?.() || 0, props?.PanelHeight?.() || 0), fill: wavyBorderPath(props?.PanelWidth?.() || 0, props?.PanelHeight?.() || 0, .08), width: 3 } : { path: undefined, width: 0 }; case StyleProp.JitterRotation: return comicStyle() ? random(-1, 1, NumCast(doc?.x), NumCast(doc?.y)) * ((props?.PanelWidth() || 0) > (props?.PanelHeight() || 0) ? 5 : 10) : 0; |