mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 03:38:47 +02:00
Allow to configure the global theme using the WebUI
This commit is contained in:
parent
3e657a7cac
commit
f88584e1ca
5 changed files with 16 additions and 6 deletions
|
@ -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';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue