Change background colors of verify buttons to green/red, green for yes

This commit is contained in:
Zeva Rose 2021-07-04 15:24:07 -06:00
parent 6a008fbf42
commit 994d0ea7ab

View file

@ -18,9 +18,10 @@ def create_layout():
for i in range(3):
label = "YES" if i == yes else "NO"
id = f"no_{i}" if not i == yes else "yes"
color = ButtonStyle.green if i == yes else ButtonStyle.red
buttons.append(
manage_components.create_button(
style=ButtonStyle.grey,
style=color,
label=label,
custom_id=f"verify_button||{id}",
)