From e0f7679128d13df11e9aa0b6ee308ee9813df7d5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 21 Sep 2021 08:13:57 -0400 Subject: [PATCH] Pass curve color through to y sticky label --- piker/ui/_chart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index a9fee069..ea9eaa8c 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -528,7 +528,7 @@ class LinkedSplits(QWidget): name, array, array_key=array_key, - color='default_lightest', + color='default_light', ) elif style == 'step': @@ -789,7 +789,7 @@ class ChartPlotWidget(pg.PlotWidget): update_func=ContentsLabel.update_from_ohlc, ) - self._add_sticky(name) + self._add_sticky(name, bg_color='davies') return graphics @@ -863,7 +863,7 @@ class ChartPlotWidget(pg.PlotWidget): # TODO: something instead of stickies for overlays # (we need something that avoids clutter on x-axis). - self._add_sticky(name, bg_color='default_light') + self._add_sticky(name, bg_color=color) if self.linked.cursor: self.linked.cursor.add_curve_cursor(self, curve) @@ -877,6 +877,7 @@ class ChartPlotWidget(pg.PlotWidget): return curve + # TODO: make this a ctx mngr def _add_sticky( self,