*chef kiss*
This commit is contained in:
parent
ac5211b340
commit
e9a62e90d2
1 changed files with 20 additions and 0 deletions
|
@ -206,6 +206,26 @@ class Cluster():
|
||||||
pattern = HexagonPattern()
|
pattern = HexagonPattern()
|
||||||
pattern.fill(cr)
|
pattern.fill(cr)
|
||||||
|
|
||||||
|
# Top dark area
|
||||||
|
cr.set_source_rgba(0, 0, 0, 0.5)
|
||||||
|
cr.rectangle(0, 0, self.WIDTH, 96)
|
||||||
|
cr.fill()
|
||||||
|
|
||||||
|
cr.set_source_rgba(1, 1, 1, 0.25)
|
||||||
|
cr.move_to(0, 96)
|
||||||
|
cr.line_to(self.WIDTH, 96)
|
||||||
|
cr.stroke()
|
||||||
|
|
||||||
|
# Bottom dark area
|
||||||
|
cr.set_source_rgba(0, 0, 0, 0.5)
|
||||||
|
cr.rectangle(0, self.HEIGHT - 52, self.WIDTH, 52)
|
||||||
|
cr.fill()
|
||||||
|
|
||||||
|
cr.set_source_rgba(1, 1, 1, 0.25)
|
||||||
|
cr.move_to(0, self.HEIGHT - 52)
|
||||||
|
cr.line_to(self.WIDTH, self.HEIGHT - 52)
|
||||||
|
cr.stroke()
|
||||||
|
|
||||||
for gauge in self.gauges:
|
for gauge in self.gauges:
|
||||||
gauge.draw_bg(cr)
|
gauge.draw_bg(cr)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue