raylib: fix "Reboot" button pressed style (#36412)

use normal style for dual button action left button
pull/36195/head^2
David 2 weeks ago committed by GitHub
parent 215acefbb4
commit 00e20f1524
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/widgets/list_view.py

@ -176,7 +176,7 @@ class DualButtonAction(ItemAction):
super().__init__(width=0, enabled=enabled) # Width 0 means use full width
self.left_text, self.right_text = left_text, right_text
self.left_button = Button(left_text, click_callback=left_callback, button_style=ButtonStyle.LIST_ACTION, text_padding=0)
self.left_button = Button(left_text, click_callback=left_callback, button_style=ButtonStyle.NORMAL, text_padding=0)
self.right_button = Button(right_text, click_callback=right_callback, button_style=ButtonStyle.DANGER, text_padding=0)
def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:

Loading…
Cancel
Save