From fca1272964dfc13f1f01acd5503eb4da6495f006 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 2 Jan 2023 17:13:44 -0500 Subject: [PATCH] Make $vlm axis color same as clears --- piker/ui/_fsp.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 98ddd502..c91436da 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -661,6 +661,12 @@ async def open_vlm_displays( # str(period_param.default) # ) + # use slightly less light (then bracket) gray + # for volume from "main exchange" and a more "bluey" + # gray for "dark" vlm. + vlm_color = 'i3' + dark_vlm_color = 'charcoal' + # built-in vlm which we plot ASAP since it's # usually data provided directly with OHLC history. shm = ohlcv @@ -796,6 +802,7 @@ async def open_vlm_displays( humanize, digits=2, ), + 'text_color': vlm_color, }, ) @@ -827,12 +834,6 @@ async def open_vlm_displays( # add custom auto range handler dvlm_pi.vb._maxmin = group_mxmn - # use slightly less light (then bracket) gray - # for volume from "main exchange" and a more "bluey" - # gray for "dark" vlm. - vlm_color = 'i3' - dark_vlm_color = 'charcoal' - # add dvlm (step) curves to common view def chart_curves( names: list[str],