From c876a83a31c1021f00818d31ca66d66910d54a87 Mon Sep 17 00:00:00 2001 From: dzid26 Date: Tue, 23 Dec 2025 14:34:56 +0000 Subject: [PATCH 1/2] ui: fix malformed dongle ID display on the PC if dongleID is not set (#1612) --- selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py b/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py index 316d4d224..2b5497fb5 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py @@ -209,8 +209,8 @@ class SunnylinkLayout(Widget): return items @staticmethod - def _get_sunnylink_dongle_id() -> str | None: - return str(ui_state.params.get("SunnylinkDongleId") or (lambda: tr("N/A"))) + def _get_sunnylink_dongle_id() -> str: + return ui_state.params.get("SunnylinkDongleId") or tr("N/A") def _handle_pair_btn(self, sponsor_pairing: bool = False): sunnylink_dongle_id = self._get_sunnylink_dongle_id() From c6c644a3a6dc97ffe7a151f64c2b903fd74956b8 Mon Sep 17 00:00:00 2001 From: Nayan Date: Tue, 23 Dec 2025 16:34:00 -0500 Subject: [PATCH 2/2] [mici] ui: sunnypilot font on home menu (#1561) use sp font on home Co-authored-by: Jason Wen --- selfdrive/ui/mici/layouts/home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/mici/layouts/home.py b/selfdrive/ui/mici/layouts/home.py index 750a30b73..bdffea4cf 100644 --- a/selfdrive/ui/mici/layouts/home.py +++ b/selfdrive/ui/mici/layouts/home.py @@ -109,7 +109,7 @@ class MiciHomeLayout(Widget): self._cell_high_txt = gui_app.texture("icons_mici/settings/network/cell_strength_high.png", 55, 35) self._cell_full_txt = gui_app.texture("icons_mici/settings/network/cell_strength_full.png", 55, 35) - self._openpilot_label = MiciLabel("sunnypilot", font_size=96, color=rl.Color(255, 255, 255, int(255 * 0.9)), font_weight=FontWeight.DISPLAY) + self._openpilot_label = MiciLabel("sunnypilot", font_size=90, color=rl.Color(255, 255, 255, int(255 * 0.9)), font_weight=FontWeight.AUDIOWIDE) self._version_label = MiciLabel("", font_size=36, font_weight=FontWeight.ROMAN) self._large_version_label = MiciLabel("", font_size=64, color=rl.GRAY, font_weight=FontWeight.ROMAN) self._date_label = MiciLabel("", font_size=36, color=rl.GRAY, font_weight=FontWeight.ROMAN)