Skip to content

Commit

Permalink
minor fixes to horizontal slider
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed Nov 3, 2024
1 parent 8416c06 commit ecf347c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pygame_gui/core/drawable_shapes/drawable_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 7 additions & 8 deletions pygame_gui/data/default_theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,25 @@
{
"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":
{
"misc":
{
"text_horiz_alignment_method": "right_triangle"
},
"font": {
"name": "fira_code_symbols",
"size": "14"
}
},
"horizontal_slider.#sliding_button":
Expand Down

0 comments on commit ecf347c

Please sign in to comment.