mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-08 05:41:41 +01:00
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
from allianceauth import hooks
|
|
from allianceauth.theme.hooks import ThemeHook
|
|
|
|
|
|
class DarklyThemeHook(ThemeHook):
|
|
"""
|
|
Bootswatch Darkly Theme
|
|
https://bootswatch.com/darkly/
|
|
"""
|
|
|
|
def __init__(self):
|
|
ThemeHook.__init__(
|
|
self,
|
|
"Darkly",
|
|
"Flatly in night mode!",
|
|
css=[{
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.2/darkly/bootstrap.min.css",
|
|
"integrity": "sha512-JjQ+gz9+fc47OLooLs9SDfSSVrHu7ypfFM7Bd+r4dCePQnD/veA7P590ovnFPzldWsPwYRpOK1FnePimGNpdrA=="
|
|
}],
|
|
js=[{
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.8/umd/popper.min.js",
|
|
"integrity": "sha512-TPh2Oxlg1zp+kz3nFA0C5vVC6leG/6mm1z9+mA81MI5eaUVqasPLO8Cuk4gMF4gUfP5etR73rgU/8PNMsSesoQ=="
|
|
}, {
|
|
"url": "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.min.js",
|
|
"integrity": "sha512-WW8/jxkELe2CAiE4LvQfwm1rajOS8PHasCCx+knHG0gBHt8EXxS6T6tJRTGuDQVnluuAvMxWF4j8SNFDKceLFg=="
|
|
}],
|
|
header_padding="4.5em"
|
|
)
|
|
|
|
|
|
@hooks.register('theme_hook')
|
|
def register_darkly_hook():
|
|
return DarklyThemeHook()
|