From 0e7f1cce4c781fbfa1ff7303e7c75bdadaea917f Mon Sep 17 00:00:00 2001 From: royjr Date: Wed, 31 Dec 2025 14:10:30 -0500 Subject: [PATCH] optional --- common/params_keys.h | 1 + selfdrive/ui/mici/onroad/confidence_ball.py | 3 ++- selfdrive/ui/sunnypilot/ui_state.py | 1 + sunnypilot/sunnylink/params_metadata.json | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/params_keys.h b/common/params_keys.h index 89f70471c5..4b78ffa895 100644 --- a/common/params_keys.h +++ b/common/params_keys.h @@ -152,6 +152,7 @@ inline static std::unordered_map keys = { {"DevUIInfo", {PERSISTENT | BACKUP, INT, "0"}}, {"EnableCopyparty", {PERSISTENT | BACKUP, BOOL}}, {"EnableGithubRunner", {PERSISTENT | BACKUP, BOOL}}, + {"FlatUIState", {PERSISTENT | BACKUP, BOOL, "0"}}, {"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}}, {"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}}, {"HideVEgoUI", {PERSISTENT | BACKUP, BOOL, "0"}}, diff --git a/selfdrive/ui/mici/onroad/confidence_ball.py b/selfdrive/ui/mici/onroad/confidence_ball.py index 6afef2c806..b6d879ab08 100644 --- a/selfdrive/ui/mici/onroad/confidence_ball.py +++ b/selfdrive/ui/mici/onroad/confidence_ball.py @@ -81,7 +81,8 @@ class ConfidenceBall(Widget, ConfidenceBallSP): top_dot_color = rl.Color(50, 50, 50, 255) bottom_dot_color = rl.Color(13, 13, 13, 255) - top_dot_color = bottom_dot_color + if ui_state.flat_ui_state: + top_dot_color = bottom_dot_color draw_circle_gradient(content_rect.x + content_rect.width - status_dot_radius, dot_height, status_dot_radius, diff --git a/selfdrive/ui/sunnypilot/ui_state.py b/selfdrive/ui/sunnypilot/ui_state.py index ca8125512a..62ce332fa4 100644 --- a/selfdrive/ui/sunnypilot/ui_state.py +++ b/selfdrive/ui/sunnypilot/ui_state.py @@ -73,6 +73,7 @@ class UIStateSP: self.developer_ui = self.params.get("DevUIInfo") self.rainbow_path = self.params.get_bool("RainbowMode") self.chevron_metrics = self.params.get("ChevronInfo") + self.flat_ui_state = self.params.get("FlatUIState") class DeviceSP: diff --git a/sunnypilot/sunnylink/params_metadata.json b/sunnypilot/sunnylink/params_metadata.json index f335457fb5..51f30df95e 100644 --- a/sunnypilot/sunnylink/params_metadata.json +++ b/sunnypilot/sunnylink/params_metadata.json @@ -289,6 +289,10 @@ "title": "Firmware Query Done", "description": "" }, + "FlatUIState": { + "title": "Flat UI State", + "description": "" + }, "ForcePowerDown": { "title": "Force Power Down", "description": ""