is it possible to set dark mode based on certain config? I want to disable the theme mode switcher and set the dark mode based on a setting from laravel settings, but I can't figure out how to do it (as the darkMode method do not accept closure)
Solution
I think you can use something like this to handle it
if ($xx) { filament()->getPanel('xx')->darkMode(true);}
if ($xx) { filament()->getPanel('xx')->darkMode(true);}