简体   繁体   English

Symfony Easyadminbundle 禁用主题选择器

[英]Symfony Easyadminbundle disabling theme selector

I'm currently working on an application using the easyadminbundle, and I'm adding custom color pallets.我目前正在使用 easyadminbundle 开发一个应用程序,并且正在添加自定义颜色托盘。 For product requirements, the option to select the dark mode should be disabled/hidden, so the user is always in light mode对于产品要求,select 的选项应禁用/隐藏暗模式,因此用户始终处于亮模式

颜色选择器的图像

I tried to disable the option through css/js fiddling, but configuration of easyadminbundle would be way cleaner我试图通过 css/js 摆弄禁用该选项,但 easyadminbundle 的配置会更干净

I was hoping there is a configuration option to disable the option to change it, anyone has any suggestions?我希望有一个配置选项来禁用更改它的选项,有人有什么建议吗?

Easyadminbundle 4.1.2 Easyadminbundle 4.1.2

You enable/disable the darkmode in the DashboardController by overriding the configureDashboard method and calling disableDarkMode: https://symfony.com/bundles/EasyAdminBundle/current/dashboards.html您可以通过覆盖 configureDashboard 方法并调用 disableDarkMode 来启用/禁用 DashboardController 中的暗模式: https://symfony.com/bundles/EasyAdminBundle/current/dashboards.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM