Pass curve color through to y sticky label
parent
4621d1af1a
commit
0a4bc72341
|
@ -528,7 +528,7 @@ class LinkedSplits(QWidget):
|
||||||
name,
|
name,
|
||||||
array,
|
array,
|
||||||
array_key=array_key,
|
array_key=array_key,
|
||||||
color='default_lightest',
|
color='default_light',
|
||||||
)
|
)
|
||||||
|
|
||||||
elif style == 'step':
|
elif style == 'step':
|
||||||
|
@ -789,7 +789,7 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
update_func=ContentsLabel.update_from_ohlc,
|
update_func=ContentsLabel.update_from_ohlc,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._add_sticky(name)
|
self._add_sticky(name, bg_color='davies')
|
||||||
|
|
||||||
return graphics
|
return graphics
|
||||||
|
|
||||||
|
@ -863,7 +863,7 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
|
|
||||||
# TODO: something instead of stickies for overlays
|
# TODO: something instead of stickies for overlays
|
||||||
# (we need something that avoids clutter on x-axis).
|
# (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:
|
if self.linked.cursor:
|
||||||
self.linked.cursor.add_curve_cursor(self, curve)
|
self.linked.cursor.add_curve_cursor(self, curve)
|
||||||
|
@ -877,6 +877,7 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
|
|
||||||
return curve
|
return curve
|
||||||
|
|
||||||
|
# TODO: make this a ctx mngr
|
||||||
def _add_sticky(
|
def _add_sticky(
|
||||||
self,
|
self,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue