Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jan 9, 2025
1 parent 606874f commit 7677c02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ def _256(x):

def get_background_color(avg_interval, config_interval, count, missing = False):
if count != 0:
return hsvrgbstr(scoreAdjust(avg_interval / config_interval)/2)
elif missing:
return hsvrgbstr(scoreAdjust(avg_interval / config_interval) / 2)
if missing:
return "#EEE"
else:
return "#FFF"
return "#FFF"

def get_font_css(config):
if config.lang == "ja":
Expand Down

0 comments on commit 7677c02

Please sign in to comment.