Allow to configure which themes should be available via parameters.yaml

This commit is contained in:
Jan Böhmer 2023-02-01 23:15:02 +01:00
parent 489b3e2c21
commit 08c97282a3
8 changed files with 99 additions and 26 deletions

View file

@ -18,6 +18,7 @@ twig:
sidebar_items: '%partdb.sidebar.items%'
sidebar_tree_updater: '@App\Services\Trees\SidebarTreeUpdater'
avatar_helper: '@App\Services\UserSystem\UserAvatarHelper'
available_themes: '%partdb.available_themes%'
when@test:
twig:

View file

@ -55,6 +55,37 @@ parameters:
######################################################################################################################
partdb.demo_mode: '%env(bool:DEMO_MODE)%' # If set to true, all potentially dangerous things are disabled (like changing passwords of the own user)
# Set the themes from which the user can choose from in the settings.
# Themes commented here by default, are not really usable, because of display problems. Enable them at your own risk!
partdb.available_themes:
- bootstrap
- cerulean
- cosmo
- cyborg
- darkly
- flatly
- journal
- litera
- lumen
- lux
#- materia
- minty
#- morph
#- pulse
#- quartz
- sandstone
- simplex
- sketchy
- slate
- solar
- spacelab
- superhero
- united
#- vapor
- yeti
- zephyr
######################################################################################################################
# Env default values
######################################################################################################################

View file

@ -186,6 +186,10 @@ services:
arguments:
$use_gravatar: '%partdb.users.use_gravatar%'
App\Form\Type\ThemeChoiceType:
arguments:
$available_themes: '%partdb.available_themes%'
####################################################################################################################
# Label system