Skip to content

Commit

Permalink
Fix for #473
Browse files Browse the repository at this point in the history
Moved the .set_menu after .set_font to avoid _check_title_color before a title font color is set.
  • Loading branch information
DKNorad committed Nov 2, 2023
1 parent bcfaccb commit 684a83f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pygame_menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def __init__(
width=self._width
)
self._menubar._verbose = verbose
self._menubar.set_menu(self)

self._menubar.set_font(
antialias=self._theme.title_font_antialias,
background_color=None,
Expand All @@ -532,6 +532,9 @@ def __init__(
readonly_selected_color=self._theme.readonly_selected_color,
selected_color=self._theme.title_font_color
)

self._menubar.set_menu(self)

self._menubar.set_cursor(self._theme.title_close_button_cursor)
self._menubar.set_font_shadow(
color=self._theme.title_font_shadow_color,
Expand Down

0 comments on commit 684a83f

Please sign in to comment.