takahe/users/views/settings/interface.py

34 lines
1.2 KiB
Python
Raw Normal View History

2022-11-26 02:33:46 +00:00
from activities.models.post import Post
from users.views.settings.settings_page import SettingsPage
2022-11-26 02:33:46 +00:00
class InterfacePage(SettingsPage):
section = "interface"
options = {
"default_post_visibility": {
"title": "Default Post Visibility",
"help_text": "Visibility to use as default for new posts.",
"choices": Post.Visibilities.choices,
},
"default_reply_visibility": {
"title": "Default Reply Visibility",
"help_text": "Visibility to use as default for replies.",
"choices": Post.Visibilities.choices,
},
2022-12-24 14:28:39 +00:00
"custom_css": {
"title": "Custom CSS",
"help_text": "Theme the website however you'd like, just for you. You should probably not use this unless you know what you're doing.",
"display": "textarea",
},
"light_theme": {
"title": "Light Mode",
"help_text": "Use a light theme rather than the default dark theme.",
},
2022-11-26 02:33:46 +00:00
}
2022-12-24 06:01:27 +00:00
layout = {
2023-04-27 06:54:38 +00:00
"Posting": ["default_post_visibility", "default_reply_visibility"],
"Appearance": ["light_theme", "custom_css"],
2022-12-24 06:01:27 +00:00
}