ui: increase settings nav btn height (#35553)

increase nav btn height
pull/35550/head
Dean Lee 4 days ago committed by GitHub
parent 6352589902
commit 2a9e35609b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      selfdrive/ui/layouts/settings/settings.py

@ -18,7 +18,7 @@ SETTINGS_CLOSE_TEXT = "X"
# Constants
SIDEBAR_WIDTH = 500
CLOSE_BTN_SIZE = 200
NAV_BTN_HEIGHT = 80
NAV_BTN_HEIGHT = 110
PANEL_MARGIN = 50
# Colors
@ -104,8 +104,6 @@ class SettingsLayout(Widget):
# Navigation buttons
y = rect.y + 300
button_spacing = 20
for panel_type, panel_info in self._panels.items():
button_rect = rl.Rectangle(rect.x + 50, y, rect.width - 150, NAV_BTN_HEIGHT)
@ -122,7 +120,7 @@ class SettingsLayout(Widget):
# Store button rect for click detection
panel_info.button_rect = button_rect
y += NAV_BTN_HEIGHT + button_spacing
y += NAV_BTN_HEIGHT
def _draw_current_panel(self, rect: rl.Rectangle):
rl.draw_rectangle_rounded(

Loading…
Cancel
Save