From ecf347c70fd0d83b57b7c00a389d8982ccfe3a03 Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Sun, 3 Nov 2024 18:06:57 +0000 Subject: [PATCH] minor fixes to horizontal slider --- pygame_gui/core/drawable_shapes/drawable_shape.py | 2 +- pygame_gui/data/default_theme.json | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/pygame_gui/core/drawable_shapes/drawable_shape.py b/pygame_gui/core/drawable_shapes/drawable_shape.py index 8ec5c7fe..affaa062 100644 --- a/pygame_gui/core/drawable_shapes/drawable_shape.py +++ b/pygame_gui/core/drawable_shapes/drawable_shape.py @@ -494,7 +494,7 @@ def build_text_layout(self): containing_rect_when_text_built = self.containing_rect.copy() # Draw any text if 'text' in self.theming and 'font' in self.theming and self.theming['text'] is not None: - # we need two rectangles for the text. One is has actual area the + # we need two rectangles for the text. One has actual area the # text surface takes up, which may be larger than the displayed area, # and its position on the final surface. The other is the amount of # area of the text surface which we blit from, which may be much smaller diff --git a/pygame_gui/data/default_theme.json b/pygame_gui/data/default_theme.json index d0bd6516..25e6e690 100644 --- a/pygame_gui/data/default_theme.json +++ b/pygame_gui/data/default_theme.json @@ -101,15 +101,18 @@ { "prototype": "#no_frills_button" }, + "horizontal_slider.@arrow_button": + { + "font": { + "name": "fira_code_symbols", + "size": "14" + } + }, "horizontal_slider.#left_button": { "misc": { "text_horiz_alignment_method": "left_triangle" - }, - "font": { - "name": "fira_code_symbols", - "size": "14" } }, "horizontal_slider.#right_button": @@ -117,10 +120,6 @@ "misc": { "text_horiz_alignment_method": "right_triangle" - }, - "font": { - "name": "fira_code_symbols", - "size": "14" } }, "horizontal_slider.#sliding_button":