You've already forked hotpocket
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:
@@ -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',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user