Brighter last OHLC graphics datum by default
							parent
							
								
									67ad292ff3
								
							
						
					
					
						commit
						11b254be7a
					
				| 
						 | 
					@ -1224,7 +1224,6 @@ class ChartPlotWidget(pg.PlotWidget):
 | 
				
			||||||
            graphics = BarItems(
 | 
					            graphics = BarItems(
 | 
				
			||||||
                linked=self.linked,
 | 
					                linked=self.linked,
 | 
				
			||||||
                plotitem=pi,
 | 
					                plotitem=pi,
 | 
				
			||||||
                # pen_color=self.pen_color,
 | 
					 | 
				
			||||||
                color=color,
 | 
					                color=color,
 | 
				
			||||||
                name=name,
 | 
					                name=name,
 | 
				
			||||||
                **graphics_kwargs,
 | 
					                **graphics_kwargs,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,7 +92,7 @@ class BarItems(pg.GraphicsObject):
 | 
				
			||||||
        linked: LinkedSplits,
 | 
					        linked: LinkedSplits,
 | 
				
			||||||
        plotitem: 'pg.PlotItem',  # noqa
 | 
					        plotitem: 'pg.PlotItem',  # noqa
 | 
				
			||||||
        color: str = 'bracket',
 | 
					        color: str = 'bracket',
 | 
				
			||||||
        last_bar_color: str = 'bracket',
 | 
					        last_bar_color: str = 'original',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        name: Optional[str] = None,
 | 
					        name: Optional[str] = None,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -240,12 +240,12 @@ def hcolor(name: str) -> str:
 | 
				
			||||||
        'gunmetal': '#91A3B0',
 | 
					        'gunmetal': '#91A3B0',
 | 
				
			||||||
        'battleship': '#848482',
 | 
					        'battleship': '#848482',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # default ohlc-bars/curve gray
 | 
				
			||||||
 | 
					        'bracket': '#666666',  # like the logo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # bluish
 | 
					        # bluish
 | 
				
			||||||
        'charcoal': '#36454F',
 | 
					        'charcoal': '#36454F',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # default bars
 | 
					 | 
				
			||||||
        'bracket': '#666666',  # like the logo
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        # work well for filled polygons which want a 'bracket' feel
 | 
					        # work well for filled polygons which want a 'bracket' feel
 | 
				
			||||||
        # going light to dark
 | 
					        # going light to dark
 | 
				
			||||||
        'davies': '#555555',
 | 
					        'davies': '#555555',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue