mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-20 07:45:10 +01:00
BS5 Theme
This commit is contained in:
19
docs/development/custom/custom-themes.md
Normal file
19
docs/development/custom/custom-themes.md
Normal 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:
|
||||
```
|
||||
Reference in New Issue
Block a user