mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-07-26 20:02:11 +08:00
setup: copy changes
from https://github.com/commaai/openpilot/pull/37611
This commit is contained in:
@@ -144,7 +144,7 @@ class SoftwareSelectionPage(NavWidget):
|
||||
|
||||
self._openpilot_slider = LargerSlider("slide to install\nopenpilot", use_openpilot_callback)
|
||||
self._openpilot_slider.set_enabled(lambda: self.enabled and not self.is_dismissing)
|
||||
self._custom_software_slider = LargerSlider("slide to install\nother software", use_custom_software_callback, green=False)
|
||||
self._custom_software_slider = LargerSlider("slide to install\ncustom software", use_custom_software_callback, green=False)
|
||||
self._custom_software_slider.set_enabled(lambda: self.enabled and not self.is_dismissing)
|
||||
|
||||
def show_event(self):
|
||||
@@ -190,11 +190,11 @@ class CustomSoftwareWarningPage(NavScroller):
|
||||
self._continue_button.set_click_callback(continue_callback)
|
||||
|
||||
self._scroller.add_widgets([
|
||||
GreyBigButton("use caution", "when installing\n3rd party software",
|
||||
GreyBigButton("caution: installing\n3rd party software", "swipe down to go back",
|
||||
gui_app.texture("icons_mici/setup/warning.png", 64, 58)),
|
||||
GreyBigButton("", "• It has not been tested by comma"),
|
||||
GreyBigButton("", "• It may not comply with relevant safety standards."),
|
||||
GreyBigButton("", "• It may cause damage to your device and/or vehicle."),
|
||||
GreyBigButton("", "• It has not been tested by comma."),
|
||||
GreyBigButton("", "• It may not comply with safety standards."),
|
||||
GreyBigButton("", "• It may damage your device and/or vehicle."),
|
||||
GreyBigButton("how to restore to a\nfactory state later", "https://flash.comma.ai",
|
||||
gui_app.texture("icons_mici/setup/restore.png", 64, 64)),
|
||||
self._continue_button,
|
||||
|
||||
Reference in New Issue
Block a user