BTHLABS-60: Appearance settings

Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
2025-10-07 04:42:58 +00:00
committed by Tomek Wójcik
parent b4d5375954
commit 2e8b8d7330
11 changed files with 102 additions and 9 deletions

View File

@@ -143,13 +143,18 @@ class SettingsForm(Form):
theme = forms.ChoiceField(
label=_('Theme'),
disabled=True,
disabled=False,
required=False,
choices=[
(None, _('Bootstrap')),
(None, _('BTHLabs')),
('bootstrap', _('Bootstrap')),
('cosmo', _('Cosmo')),
('solar', _('Solar')),
],
show_hidden_initial=True,
)
light_mode = forms.BooleanField(
label=_('Use light mode'),
required=False,
)
auto_load_embeds = forms.ChoiceField(
label=_('Auto load embedded content'),
@@ -168,6 +173,7 @@ class SettingsForm(Form):
def get_layout_fields(self) -> list[str]:
return [
'theme',
'light_mode',
'auto_load_embeds',
]