BTHLABS-0000: sandstone and sketchy Bootswatch themes

This commit is contained in:
Tomek Wójcik 2025-10-17 13:14:21 +02:00
parent 10fccc17f7
commit fbdebec6c8
5 changed files with 36 additions and 0 deletions

View File

@ -88,3 +88,7 @@ Copyright (c) Icons8
Licensed under terms of the MIT License Licensed under terms of the MIT License
Spinner Loader CSS from https://css-loaders.com/ Spinner Loader CSS from https://css-loaders.com/
cosmo, sandstone, sketchy and solar Bootswatch Themes
Copyright 2012-2025 Thomas Park
Licensed under terms of the MIT License

View File

@ -73,6 +73,12 @@ def appearance_settings(request: HttpRequest) -> dict:
case 'solar': case 'solar':
result['theme_css'] = 'ui/css/solar.min.css' result['theme_css'] = 'ui/css/solar.min.css'
case 'sandstone':
result['theme_css'] = 'ui/css/sandstone.min.css'
case 'sketchy':
result['theme_css'] = 'ui/css/sketchy.min.css'
return { return {
'APPEARANCE_SETTINGS': result, 'APPEARANCE_SETTINGS': result,
} }

View File

@ -150,6 +150,8 @@ class SettingsForm(Form):
('bootstrap', _('Bootstrap')), ('bootstrap', _('Bootstrap')),
('cosmo', _('Cosmo')), ('cosmo', _('Cosmo')),
('solar', _('Solar')), ('solar', _('Solar')),
('sandstone', _('Sandstone')),
('sketchy', _('Sketchy')),
], ],
) )
light_mode = forms.BooleanField( light_mode = forms.BooleanField(

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long