Set cursor label color to "bracket"
							parent
							
								
									2de8209fa5
								
							
						
					
					
						commit
						aa67bcc23e
					
				| 
						 | 
					@ -71,7 +71,7 @@ class LineDot(pg.CurvePoint):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        plot: ChartPlotWidget,  # type: ingore # noqa
 | 
					        plot: ChartPlotWidget,  # type: ingore # noqa
 | 
				
			||||||
        pos=None,
 | 
					        pos=None,
 | 
				
			||||||
        color: str = 'default_light',
 | 
					        color: str = 'bracket',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ) -> None:
 | 
					    ) -> None:
 | 
				
			||||||
        # scale from dpi aware font size
 | 
					        # scale from dpi aware font size
 | 
				
			||||||
| 
						 | 
					@ -349,7 +349,7 @@ class Cursor(pg.GraphicsObject):
 | 
				
			||||||
        # XXX: not sure why these are instance variables?
 | 
					        # XXX: not sure why these are instance variables?
 | 
				
			||||||
        # It's not like we can change them on the fly..?
 | 
					        # It's not like we can change them on the fly..?
 | 
				
			||||||
        self.pen = pg.mkPen(
 | 
					        self.pen = pg.mkPen(
 | 
				
			||||||
            color=hcolor('default'),
 | 
					            color=hcolor('bracket'),
 | 
				
			||||||
            style=QtCore.Qt.DashLine,
 | 
					            style=QtCore.Qt.DashLine,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        self.lines_pen = pg.mkPen(
 | 
					        self.lines_pen = pg.mkPen(
 | 
				
			||||||
| 
						 | 
					@ -365,7 +365,7 @@ class Cursor(pg.GraphicsObject):
 | 
				
			||||||
        self._lw = self.pixelWidth() * self.lines_pen.width()
 | 
					        self._lw = self.pixelWidth() * self.lines_pen.width()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # xhair label's color name
 | 
					        # xhair label's color name
 | 
				
			||||||
        self.label_color: str = 'default'
 | 
					        self.label_color: str = 'bracket'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self._y_label_update: bool = True
 | 
					        self._y_label_update: bool = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue