mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 23:02:06 +08:00
cb4d13643a
# Conflicts: # selfdrive/ui/layouts/settings/developer.py # selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.cc # selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.h # system/manager/process_config.py # system/ui/lib/scroll_panel.py # system/ui/sunnypilot/lib/application.py
ui
The user interfaces here are built with raylib.
Quick start:
- set
SHOW_FPS=1to show the FPS - set
STRICT_MODE=1to kill the app if it drops too much below 60fps - set
SCALE=1.5to scale the entire UI by 1.5x - https://www.raylib.com/cheatsheet/cheatsheet.html
- https://electronstudio.github.io/raylib-python-cffi/README.html#quickstart
Style guide:
- All graphical elements should subclass
Widget.- Prefer a stateful widget over a function for easy migration from QT
- All internal class variables and functions should be prefixed with
_