Skip to content

Commit

Permalink
Merge pull request #563 from MyreMylar/clarify-relative-paths-docs
Browse files Browse the repository at this point in the history
Clarify theming docs on relative paths
  • Loading branch information
MyreMylar authored Apr 7, 2024
2 parents 2016a79 + a6a0122 commit 7473542
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 7473542

Please sign in to comment.