Allow to configure the global theme using the WebUI

This commit is contained in:
Jan Böhmer 2024-06-24 21:40:37 +02:00
parent 3e657a7cac
commit f88584e1ca
5 changed files with 16 additions and 6 deletions

View file

@ -24,6 +24,8 @@ declare(strict_types=1);
namespace App\Settings\SystemSettings;
use App\Form\Type\RichTextEditorType;
use App\Form\Type\ThemeChoiceType;
use App\Validator\Constraints\ValidTheme;
use Jbtronics\SettingsBundle\Metadata\EnvVarMode;
use Jbtronics\SettingsBundle\Settings\Settings;
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
@ -48,4 +50,10 @@ class CustomizationSettings
)]
public ?string $banner = null;
#[SettingsParameter(
label: new TM("settings.system.customization.theme"),
formType: ThemeChoiceType::class, formOptions: ['placeholder' => false]
)]
#[ValidTheme]
public string $theme = 'bootstrap';
}