Skip to content

Commit

Permalink
Add truemin colour, too
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenswat committed Feb 7, 2024
1 parent e7e4777 commit 9ab9224
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions backend/abyssal_modules/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ def render_to_response(self, context, **kwargs):
) * (INNER_WIDTH // 2)

if delta < 0:
draw.fill_color = Color("#bf3438")
if (delta / max_delta) >= 0.999:
draw.fill_color = Color("#482413")
else:
draw.fill_color = Color("#bf3438")
left = (1 - (delta / max_delta)) * (INNER_WIDTH // 2)
right = INNER_WIDTH // 2
else:
Expand Down Expand Up @@ -448,7 +451,10 @@ def render_to_response(self, context, **kwargs):
INNER_WIDTH // 2
)
else:
draw.fill_color = Color("#bf3438")
if (delta / max_delta) >= 0.999:
draw.fill_color = Color("#482413")
else:
draw.fill_color = Color("#bf3438")
left = (1 - (delta / max_delta)) * (INNER_WIDTH // 2)
right = INNER_WIDTH // 2
if (right - 1) <= left:
Expand Down

0 comments on commit 9ab9224

Please sign in to comment.