Skip to content

Commit

Permalink
Smaller left message margin.
Browse files Browse the repository at this point in the history
So that the text fits on smaller screens.
  • Loading branch information
porridge committed Jul 15, 2023
1 parent e3d1d54 commit 6ddf042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bambam.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,12 @@ def _prepare_wayland_warning(self):
pygame.display.flip()

def _prepare_welcome_message(self, dedicated_session):
left_message_margin = 75
header_font = pygame.font.SysFont(None, 56)
header_text = _("Please read the following important information!")
header_label = header_font.render(header_text, True, pygame.Color('blue'), self.background_color)
header_rect = header_label.get_rect()
header_rect.x = 150
header_rect.x = left_message_margin
header_rect.y = 100
self.screen.blit(header_label, header_rect)
header_padding = 20
Expand Down Expand Up @@ -399,7 +400,7 @@ def _prepare_welcome_message(self, dedicated_session):
for line in fill(paragraph, 70).split("\n"):
text_label = text_font.render(line, True, pygame.Color('lightblue'), self.background_color)
text_rect = text_label.get_rect()
text_rect.x = 150
text_rect.x = left_message_margin
text_rect.y = prev_rect.y + prev_rect.height
self.screen.blit(text_label, text_rect)
prev_rect = text_rect
Expand Down

0 comments on commit 6ddf042

Please sign in to comment.