mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-20 01:02:07 +08:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f35a53795e | |||
| 6945e24b26 | |||
| 85cf82391f | |||
| e01f23741c | |||
| 1e3d06dd3e | |||
| 5faf262074 | |||
| 3af5e3ee1b | |||
| af291d6260 | |||
| ded7691667 | |||
| a14f42b403 | |||
| 6ca04f27c9 | |||
| 0e7f1cce4c | |||
| 8d27d1fff7 | |||
| e1be982705 | |||
| f153dcac58 | |||
| db432b8675 | |||
| 3300db1235 | |||
| 6f020a2f66 |
@@ -155,6 +155,7 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"DevUIInfo", {PERSISTENT | BACKUP, INT, "0"}},
|
||||
{"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}},
|
||||
{"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}},
|
||||
{"FlatConfidenceBall", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||
{"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}},
|
||||
{"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}},
|
||||
{"HasAcceptedTermsSP", {PERSISTENT, STRING, "0"}},
|
||||
|
||||
@@ -81,6 +81,9 @@ class ConfidenceBall(Widget, ConfidenceBallSP):
|
||||
top_dot_color = rl.Color(50, 50, 50, 255)
|
||||
bottom_dot_color = rl.Color(13, 13, 13, 255)
|
||||
|
||||
if ui_state.flat_confidence_ball:
|
||||
top_dot_color = bottom_dot_color
|
||||
|
||||
draw_circle_gradient(content_rect.x + content_rect.width - status_dot_radius,
|
||||
dot_height, status_dot_radius,
|
||||
top_dot_color, bottom_dot_color)
|
||||
|
||||
@@ -146,6 +146,7 @@ class UIStateSP:
|
||||
self.true_v_ego_ui = self.params.get_bool("TrueVEgoUI")
|
||||
self.turn_signals = self.params.get_bool("ShowTurnSignals")
|
||||
self.boot_offroad_mode = self.params.get("DeviceBootMode", return_default=True)
|
||||
self.flat_confidence_ball = self.params.get_bool("FlatConfidenceBall")
|
||||
|
||||
|
||||
class DeviceSP:
|
||||
|
||||
@@ -306,6 +306,10 @@
|
||||
"title": "Firmware Query Done",
|
||||
"description": ""
|
||||
},
|
||||
"FlatConfidenceBall": {
|
||||
"title": "Flat Confidence Ball",
|
||||
"description": "Removes the gradient from the confidence ball and uses solid state colors for improved visibility"
|
||||
},
|
||||
"ForcePowerDown": {
|
||||
"title": "Force Power Down",
|
||||
"description": ""
|
||||
|
||||
Reference in New Issue
Block a user