Skip to content

Commit 7eb1c31

Browse files
authored
ui(raylib/text): spacing between button and scrollbar (#35069)
1 parent 92ada21 commit 7eb1c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/ui/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from openpilot.system.ui.lib.application import gui_app
88

99
MARGIN = 50
10-
SPACING = 50
10+
SPACING = 40
1111
FONT_SIZE = 72
1212
LINE_HEIGHT = 80
1313
BUTTON_SIZE = rl.Vector2(310, 160)
@@ -60,7 +60,7 @@ def render(self):
6060
rl.draw_text_ex(gui_app.font(), line, position, FONT_SIZE, 0, rl.WHITE)
6161
rl.end_scissor_mode()
6262

63-
button_bounds = rl.Rectangle(gui_app.width - MARGIN - BUTTON_SIZE.x, gui_app.height - MARGIN - BUTTON_SIZE.y, BUTTON_SIZE.x, BUTTON_SIZE.y)
63+
button_bounds = rl.Rectangle(gui_app.width - MARGIN - BUTTON_SIZE.x - SPACING, gui_app.height - MARGIN - BUTTON_SIZE.y, BUTTON_SIZE.x, BUTTON_SIZE.y)
6464
ret = gui_button(button_bounds, "Exit" if PC else "Reboot", button_style=ButtonStyle.TRANSPARENT)
6565
if ret:
6666
if PC:

0 commit comments

Comments
 (0)