diff --git a/common/params_keys.h b/common/params_keys.h index 5170e05a5d..8a6d02ef2a 100644 --- a/common/params_keys.h +++ b/common/params_keys.h @@ -154,7 +154,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"}}, + {"FlatConfidenceBall", {PERSISTENT | BACKUP, BOOL, "0"}}, {"GreenLightAlert", {PERSISTENT | BACKUP, BOOL, "0"}}, {"GithubRunnerSufficientVoltage", {CLEAR_ON_MANAGER_START , BOOL}}, {"HasAcceptedTermsSP", {PERSISTENT, STRING, "0"}}, diff --git a/selfdrive/ui/mici/onroad/confidence_ball.py b/selfdrive/ui/mici/onroad/confidence_ball.py index b6d879ab08..ee4edad8c0 100644 --- a/selfdrive/ui/mici/onroad/confidence_ball.py +++ b/selfdrive/ui/mici/onroad/confidence_ball.py @@ -81,7 +81,7 @@ 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_ui_state: + if ui_state.flat_confidence_ball: top_dot_color = bottom_dot_color draw_circle_gradient(content_rect.x + content_rect.width - status_dot_radius, diff --git a/selfdrive/ui/sunnypilot/ui_state.py b/selfdrive/ui/sunnypilot/ui_state.py index 5d2e5368f1..aeac5cdbb6 100644 --- a/selfdrive/ui/sunnypilot/ui_state.py +++ b/selfdrive/ui/sunnypilot/ui_state.py @@ -138,7 +138,7 @@ class UIStateSP: self.torque_bar = self.params.get_bool("TorqueBar") self.true_v_ego_ui = self.params.get_bool("TrueVEgoUI") self.turn_signals = self.params.get_bool("ShowTurnSignals") - self.flat_ui_state = self.params.get_bool("FlatUIState") + self.flat_confidence_ball = self.params.get_bool("FlatConfidenceBall") class DeviceSP: diff --git a/sunnypilot/sunnylink/params_metadata.json b/sunnypilot/sunnylink/params_metadata.json index 2de09abe59..85e01cfe01 100644 --- a/sunnypilot/sunnylink/params_metadata.json +++ b/sunnypilot/sunnylink/params_metadata.json @@ -302,9 +302,9 @@ "title": "Firmware Query Done", "description": "" }, - "FlatUIState": { - "title": "Flat UI State", - "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",