create_badges.py: Changed to higher contrast colors (#33509)

Changed color badge - clearer difference
This commit is contained in:
ugtthis
2024-09-07 13:51:49 -07:00
committed by GitHub
parent c8465e3a21
commit b720fe1bfe

View File

@@ -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}"