diff --git a/openpilot/selfdrive/ui/mici/layouts/settings/developer.py b/openpilot/selfdrive/ui/mici/layouts/settings/developer.py index df8eaecea6..a681ef9ebb 100644 --- a/openpilot/selfdrive/ui/mici/layouts/settings/developer.py +++ b/openpilot/selfdrive/ui/mici/layouts/settings/developer.py @@ -49,7 +49,7 @@ class DeveloperLayoutMici(NavScroller): def github_username_callback(username: str): if username: - self._ssh_keys_btn.set_value("Loading...") + self._ssh_keys_btn.set_value("loading...") self._ssh_keys_btn.set_enabled(False) def on_response(error): @@ -57,13 +57,13 @@ class DeveloperLayoutMici(NavScroller): if error is None: self._ssh_keys_btn.set_value(username) else: - self._ssh_keys_btn.set_value("Not set") + self._ssh_keys_btn.set_value("not set") gui_app.push_widget(BigDialog("", error)) self._ssh_fetcher.fetch(username, on_response) else: self._ssh_fetcher.clear() - self._ssh_keys_btn.set_value("Not set") + self._ssh_keys_btn.set_value("not set") def ssh_keys_callback(): github_username = ui_state.params.get("GithubUsername") or "" @@ -76,7 +76,7 @@ class DeveloperLayoutMici(NavScroller): txt_ssh = gui_app.texture("icons_mici/settings/developer/ssh.png", 56, 64) github_username = ui_state.params.get("GithubUsername") or "" - self._ssh_keys_btn = BigButton("SSH keys", "Not set" if not github_username else github_username, icon=txt_ssh, + self._ssh_keys_btn = BigButton("ssh keys", "not set" if not github_username else github_username, icon=txt_ssh, description="Grant SSH access to all public keys in your GitHub settings. Only enter your own username.") self._ssh_keys_btn.set_click_callback(ssh_keys_callback) diff --git a/openpilot/selfdrive/ui/mici/onroad/cabin_camera_dialog.py b/openpilot/selfdrive/ui/mici/onroad/cabin_camera_dialog.py index 2a95851267..2c9c240623 100644 --- a/openpilot/selfdrive/ui/mici/onroad/cabin_camera_dialog.py +++ b/openpilot/selfdrive/ui/mici/onroad/cabin_camera_dialog.py @@ -123,11 +123,11 @@ class BaseCabinCameraDialog(Widget): is_vision = dm_state.activePolicy == log.DriverMonitoringState.MonitoringPolicy.vision awareness_pct = dm_state.visionPolicyState.awarenessPercent if is_vision else dm_state.wheeltouchPolicyState.awarenessPercent gui_label(rl.Rectangle(rect.x + 2, rect.y + 2, rect.width, rect.height), - f"Awareness: {awareness_pct:.0f}%", font_size=44, font_weight=FontWeight.MEDIUM, + f"awareness: {awareness_pct:.0f}%", font_size=44, font_weight=FontWeight.MEDIUM, alignment=TextAlignment.RIGHT, alignment_vertical=TextAlignmentVertical.TOP, color=rl.Color(0, 0, 0, 180)) - gui_label(rect, f"Awareness: {awareness_pct:.0f}%", font_size=44, font_weight=FontWeight.MEDIUM, + gui_label(rect, f"awareness: {awareness_pct:.0f}%", font_size=44, font_weight=FontWeight.MEDIUM, alignment=TextAlignment.RIGHT, alignment_vertical=TextAlignmentVertical.TOP, color=rl.Color(255, 255, 255, int(255 * 0.9)))