ui: fix 1px flash at bottom of DM camera during onboarding swipe (#37653)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shane Smiskol
2026-03-11 23:19:02 -07:00
committed by GitHub
parent 7dfb7967b6
commit c631a22eb6
+4 -2
View File
@@ -151,8 +151,10 @@ class TrainingGuideDMTutorial(NavWidget):
def _render(self, _):
self._dialog.render(self._rect)
rl.draw_rectangle_gradient_v(int(self._rect.x), int(self._rect.y + self._rect.height - 80),
int(self._rect.width), 80, rl.BLANK, rl.BLACK)
gradient_y = int(self._rect.y + self._rect.height - 80)
gradient_h = int(self._rect.y) + int(self._rect.height) - gradient_y
rl.draw_rectangle_gradient_v(int(self._rect.x), gradient_y,
int(self._rect.width), gradient_h, rl.BLANK, rl.BLACK)
# draw white ring around dm icon to indicate progress
ring_thickness = 8