Skip to content

fix(raylib): Horizontally center each line of metrics label and value #35731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2025

Conversation

TheSecurityDev
Copy link
Contributor

Before (raylib):

metrics-raylib-old

After (raylib):

metrics-raylib-new

Current (QT):

metrics-old

@github-actions github-actions bot added the ui label Jul 14, 2025
metric_rect.x + 22 + (metric_rect.width - 22 - text_size.x) / 2,
metric_rect.y + (metric_rect.height - text_size.y) / 2
)
rl.draw_text_ex(self._font_bold, text, text_pos, 35, 0, Colors.WHITE)
Copy link
Contributor

@sshane sshane Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been meaning to add center_text across newlines into gui_label, this is fine for now tho

@sshane sshane merged commit 6c7abc4 into commaai:master Jul 16, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants