mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +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
|
unfinished_translations += 1
|
||||||
|
|
||||||
percent_finished = int(100 - (unfinished_translations / total_translations * 100.))
|
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
|
# Download badge
|
||||||
badge_label = f"LANGUAGE {name}"
|
badge_label = f"LANGUAGE {name}"
|
||||||
|
|||||||
Reference in New Issue
Block a user