From 24fc6fe4e5cde641df5a14443be1c00fe29a53c6 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Fri, 26 Jun 2026 04:16:26 -0400 Subject: [PATCH] BigUI WIP: More Standarization --- .../ui/layouts/settings/starpilot/appearance.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/selfdrive/ui/layouts/settings/starpilot/appearance.py b/selfdrive/ui/layouts/settings/starpilot/appearance.py index 0e04524dd..325af2d0d 100644 --- a/selfdrive/ui/layouts/settings/starpilot/appearance.py +++ b/selfdrive/ui/layouts/settings/starpilot/appearance.py @@ -205,24 +205,22 @@ class AppearanceManagerView(AetherSettingsView): self.set_rect(rect) self._interactive_rects.clear() - margin_x = 12.0 - margin_top = 16.0 - margin_bottom = 16.0 + margin_x = 18.0 + margin_y = 24.0 - # Compute remaining scroll rect starting directly from the top - grid_top = rect.y + margin_top - grid_h = rect.y + rect.height - grid_top - margin_bottom + grid_x = rect.x + margin_x + grid_y = rect.y + margin_y + grid_w = rect.width - margin_x * 2 + grid_h = rect.y + rect.height - grid_y - margin_y - self._scroll_rect = rl.Rectangle(rect.x + margin_x, grid_top, rect.width - margin_x * 2, grid_h) + self._scroll_rect = rl.Rectangle(grid_x, grid_y, grid_w, grid_h) self._content_height = grid_h - # Update scroll panel to maintain touch/click validation: self._scroll_panel.set_enabled(self.is_visible) self._scroll_offset = self._scroll_panel.update( self._scroll_rect, self._scroll_rect.height ) - # Draw tiles inside scroll_rect: self._draw_scroll_content(self._scroll_rect, self._scroll_rect.width) def _draw_scroll_content(self, rect: rl.Rectangle, width: float):