system/ui: disabled button styles (#35236)

pull/35238/head
Cameron Clough 7 days ago committed by GitHub
parent 0fec3656a1
commit 6c03e9472d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      system/ui/lib/button.py

@ -49,6 +49,9 @@ def gui_button(
) -> int:
result = 0
if button_style in (ButtonStyle.PRIMARY, ButtonStyle.DANGER) and not is_enabled:
button_style = ButtonStyle.NORMAL
# Set background color based on button type
bg_color = BUTTON_BACKGROUND_COLORS[button_style]
if is_enabled and rl.check_collision_point_rec(rl.get_mouse_position(), rect):

Loading…
Cancel
Save