diff --git a/assets/icons/chevron-down-outline.png b/assets/icons/chevron-down-outline.png new file mode 100644 index 0000000..bc495a8 Binary files /dev/null and b/assets/icons/chevron-down-outline.png differ diff --git a/assets/icons/chevron-down-outline.svg b/assets/icons/chevron-down-outline.svg new file mode 100644 index 0000000..f5c7f09 --- /dev/null +++ b/assets/icons/chevron-down-outline.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + diff --git a/assets/icons/chevron-up-outline.png b/assets/icons/chevron-up-outline.png new file mode 100644 index 0000000..66a069d Binary files /dev/null and b/assets/icons/chevron-up-outline.png differ diff --git a/assets/icons/chevron-up-outline.svg b/assets/icons/chevron-up-outline.svg new file mode 100644 index 0000000..587e37d --- /dev/null +++ b/assets/icons/chevron-up-outline.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + diff --git a/splash_screen.py b/splash_screen.py index a6e446f..f64b39d 100644 --- a/splash_screen.py +++ b/splash_screen.py @@ -11,6 +11,10 @@ def __init__(self, screen, image_file, background_colour=(0, 0, 0), text="", pad self.padding_bottom = padding_bottom self.padding_left = padding_left self.padding_right = padding_right + self.up_arrow_image = pygame.transform.scale(pygame.image.load( + "assets/icons/chevron-up-outline.png").convert_alpha(), (16, 16)) + self.down_arrow_image = pygame.transform.scale(pygame.image.load( + "assets/icons/chevron-down-outline.png").convert_alpha(), (16, 16)) # Display the splash screen def show(self): @@ -73,6 +77,16 @@ def show(self): # Blit the text onto the screen self.screen.blit(text_surface, (text_x, text_y)) + # Calculate the position to blit the arrow images + arrow_x = screen_width - self.padding_right - self.padding_right + arrow__up_y = 35 + arrow__down_y = arrow__up_y + self.up_arrow_image.get_height() + 10 + + # Blit the arrow images onto the screen + self.screen.blit(self.up_arrow_image, (arrow_x, arrow__up_y)) + self.screen.blit(self.down_arrow_image, + (arrow_x, arrow__down_y + self.up_arrow_image.get_height())) + pygame.display.update() # Remove the splash screen