Skip to content

Commit

Permalink
clarify theming docs on relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed Apr 7, 2024
1 parent 2016a79 commit a6a0122
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/theme_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ format. To load one, simply pass the path to the theme file into the UIManager w
manager = pygame_gui.UIManager((800, 600), 'theme.json')
Paths can be absolute or relative. Relative paths are relative to the current working directory
of your python application at runtime - not to the file location where you create the manager.

You can also theme your elements 'on the fly', while your pygame application is running. Just edit your theme file and
save it, and you should see the UI update to reflect your changes. This is particularly helpful when trying to fiddle
with colours, or visualise what the theming parameters do. You can also turn off live theming if you want to save a few
Expand Down

0 comments on commit a6a0122

Please sign in to comment.