-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5094546
commit 76c9643
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Django | ||
from django.apps import AppConfig | ||
|
||
|
||
class SlateThemeConfig(AppConfig): | ||
name = "eunicore.theme.slate" | ||
label = "slate" | ||
version = "5.3.3" | ||
verbose_name = f"Bootswatch Slate v{version}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Django | ||
from django.templatetags.static import static | ||
|
||
# Alliance Auth | ||
from allianceauth import hooks | ||
from allianceauth.theme.hooks import ThemeHook | ||
|
||
|
||
class SlateThemeHook(ThemeHook): | ||
""" | ||
Bootswatch Slate Theme | ||
https://bootswatch.com/slate/ | ||
""" | ||
|
||
def __init__(self): | ||
ThemeHook.__init__( | ||
self, | ||
"Slate", | ||
"Shades of gunmetal gray", | ||
css=[ | ||
{ | ||
"url": "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.3/slate/bootstrap.min.css", | ||
"integrity": "sha512-3EVe7TjxthzbTGfmRFr7zIvHjDWW7viFDgKOoTJ7S5IIrrKVN5rbPVjj0F7nT6rTyAkURnzwoujxlALvHoO9jw==", | ||
}, | ||
{"url": static("eunicore/theme/slate/css/tweaks.css")}, | ||
], | ||
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.3/js/bootstrap.min.js", | ||
"integrity": "sha512-ykZ1QQr0Jy/4ZkvKuqWn4iF3lqPZyij9iRv6sGqLRdTPkY69YX6+7wvVGmsdBbiIfN/8OdsI7HABjvEok6ZopQ==", | ||
}, | ||
], | ||
header_padding="4.5em", | ||
) | ||
|
||
|
||
@hooks.register("theme_hook") | ||
def register_slate_hook(): | ||
return SlateThemeHook() |
4 changes: 4 additions & 0 deletions
4
eunicore/theme/slate/static/eunicore/theme/slate/css/tweaks.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* Default body color doesn't contrast enough under .bg-success for the dashboard software version */ | ||
#aa-dashboard-panel-software-version .bg-success { | ||
--bs-body-color: #fff; | ||
} |