BS5 Theme

This commit is contained in:
Aaron Kable
2023-10-07 08:20:22 +00:00
committed by Ariel Rin
parent 567d97f38a
commit 2e78aa5f26
161 changed files with 3198 additions and 1655 deletions

View File

@@ -0,0 +1,19 @@
# Theme Hooks
The theme hook allows custom themes to be loaded dynamically by AAs CSS/JS Bundles, as selected by Users.
To register a ThemeHook class you would do the following:
```Python
@hooks.register('theme_hook')
def register_darkly_hook():
return ThemeHook()
```
The `ThemeHook` class specifies some parameters/instance variables required.
```eval_rst
.. autoclass:: allianceauth.theme.hooks.ThemeHook
:members: __init__
:undoc-members:
```