Fixed that
This commit is contained in:
parent
0e1ff44896
commit
1eb4724040
1 changed files with 3 additions and 3 deletions
|
@ -61,10 +61,10 @@ class ThermoGauge(BottomDial):
|
|||
|
||||
cr.set_line_width(6.0)
|
||||
|
||||
for level in range(0, self.MAX_VALUE - self.MIN_VALUE, math.ceil((self.MAX_VALUE - self.MIN_VALUE) / 9)):
|
||||
if level + self.MIN_VALUE >= self.WARN_VALUE:
|
||||
for level in range(self.min_value, self.max_value, math.ceil((self.max_value - self.min_value ) / 9)):
|
||||
if level >= self.WARN_VALUE:
|
||||
cr.set_source_rgb(0.8, 0, 0)
|
||||
else:
|
||||
cr.set_source_rgb(1, 1, 1)
|
||||
|
||||
self.draw_mark(cr, 0.83, 0.87, self.max_value - level)
|
||||
self.draw_mark(cr, 0.83, 0.87, level)
|
||||
|
|
Loading…
Add table
Reference in a new issue