From 3a434f312bf38d2f4016dfc9ade7c5f54ac255b4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 31 Aug 2022 17:12:09 -0400 Subject: [PATCH] Add sidepane like color region styling --- piker/ui/_display.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/ui/_display.py b/piker/ui/_display.py index b9066847..e806660e 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -41,6 +41,7 @@ from ._chart import ( GodWidget, ) from ._l1 import L1Labels +from ._style import hcolor from ._fsp import ( update_fsp_chart, start_fsp_displays, @@ -799,7 +800,11 @@ async def display_symbol_data( # to exclude this item when doing auto-range calculations. rt_pi = chart.plotItem hist_pi = hist_chart.plotItem - region = pg.LinearRegionItem() + region = pg.LinearRegionItem( + # color scheme that matches sidepane styling + pen=pg.mkPen(hcolor('gunmetal')), + brush=pg.mkBrush(hcolor('default_darkest')), + ) region.setZValue(10) hist_pi.addItem(region, ignoreBounds=True) flow = chart._flows[hist_chart.name]