Change background colors of verify buttons to green/red, green for yes
This commit is contained in:
parent
6a008fbf42
commit
994d0ea7ab
1 changed files with 2 additions and 1 deletions
|
@ -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}",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue