mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-22 13:33:55 +08:00
create_badges.py: Changed to higher contrast colors (#33509)
Changed color badge - clearer difference
This commit is contained in:
@@ -31,7 +31,7 @@ if __name__ == "__main__":
|
||||
unfinished_translations += 1
|
||||
|
||||
percent_finished = int(100 - (unfinished_translations / total_translations * 100.))
|
||||
color = "green" if percent_finished == 100 else "orange" if percent_finished > 90 else "red"
|
||||
color = f"rgb{(94, 188, 0) if percent_finished == 100 else (248, 255, 50) if percent_finished > 90 else (204, 55, 27)}"
|
||||
|
||||
# Download badge
|
||||
badge_label = f"LANGUAGE {name}"
|
||||
|
||||
Reference in New Issue
Block a user