Pass curve color through to y sticky label

basic_vlm_display
Tyler Goodlet 2021-09-21 08:13:57 -04:00
parent ea5b55945f
commit 40c874ce92
1 changed files with 4 additions and 3 deletions

View File

@ -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,