Ticket #25: stroke.diff

File stroke.diff, 0.6 kB (added by aprzywecki@…, 3 years ago)

fixes bar color changing with stroke hide = true

  • pycha/bar.py

     
    8686 
    8787                if self.options.shouldFill: 
    8888                    cx.set_source_rgb(*self.options.colorScheme[bar.name]) 
    89                     cx.fill_preserve() 
     89                    cx.fill() 
    9090 
    9191                if not self.options.stroke.hide: 
     92                    cx.rectangle(x, y, w, h) 
    9293                    cx.set_source_rgb(*hex2rgb(self.options.stroke.color)) 
    9394                    cx.stroke() 
    9495