Skip to content

Commit

Permalink
ui: sunnypilot menu refactor (commaai#242)
Browse files Browse the repository at this point in the history
* ui: `SPOptionControl`

* This works

* only need to initialize

* Use QButtonGroup

* Add method to update specific labels

* Always init label with value

* add method to update external methods

* Update in another PR

* Unnecessary

* construct std map with defined range

* Test that it works

* In separate PR

* change var

* refreshLabels() instead

* Revert "refreshLabels() instead"

This reverts commit ceed9935cf48c7db974e45ab5ab496a7bc3f9f26.

* allow individual `refresh` classes

* now we can do it in another PR!

* General: OnroadScreenOff

* General: OnroadScreenOffBrightness

* General: BrightnessControl

* Controls: CameraOffset

* Controls: PathOffset

* Controls: AutoLaneChangeTimer

* Controls: GapAdjustCruiseMode

* Controls: TorqueFriction

* Controls: TorqueMaxLatAccel

* Controls: SpeedLimitOffsetType

* Controls: SpeedLimitValueOffset

* General: MaxTimeOffroad

* Visuals: DevUiInfo

* Visuals: ChevronInfo

* unused

* add comment
  • Loading branch information
sunnyhaibin authored Aug 22, 2023
1 parent f673a44 commit 6341be1
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 906 deletions.
Loading

0 comments on commit 6341be1

Please sign in to comment.