From 6c03e9472daa49bfd20c9cebaa5c4ffdc8c0cfcd Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Thu, 15 May 2025 16:42:32 +0100 Subject: [PATCH] system/ui: disabled button styles (#35236) --- system/ui/lib/button.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/ui/lib/button.py b/system/ui/lib/button.py index 1857fd21c..dfe75d88b 100644 --- a/system/ui/lib/button.py +++ b/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):