Skip to content

Commit

Permalink
Merge pull request #640 from oddron/main
Browse files Browse the repository at this point in the history
Accept themes with American spelling of color
  • Loading branch information
MyreMylar authored Nov 3, 2024
2 parents 1b4bcdc + af73be4 commit 4a7891f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygame_gui/core/ui_appearance_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def _parse_single_element_data(self, element_name, element_theming):
self._load_element_font_data_from_theme(file_dict,
element_name)

if data_type == 'colours':
if data_type == 'colours' or data_type == 'colors':
self._load_element_colour_data_from_theme(data_type,
element_name,
element_theming)
Expand Down Expand Up @@ -1048,7 +1048,7 @@ def _load_colour_defaults_from_theme(self, theme_dict: Dict[str, Any]):
:param theme_dict: The data dictionary from the theming file to load data from.
"""
for data_type in theme_dict['defaults']:
if data_type == 'colours':
if data_type == 'colours' or data_type == 'colors':
colours_dict = theme_dict['defaults'][data_type]
for colour_key in colours_dict:
colour = self._load_colour_or_gradient_from_theme(colours_dict,
Expand Down

0 comments on commit 4a7891f

Please sign in to comment.