Fix Dark theme

This commit is contained in:
JonatanRek 2023-09-22 10:49:37 +02:00
parent 2b604b5af9
commit cb9c3fc9f5

View File

@ -148,8 +148,12 @@ class HomeController extends Controller
public function manifest()
{
$manifest = config('manifest');
$manifest["background_color"] = setting('app-color');
if (setting()->getForCurrentUser('dark-mode-enabled')){
$manifest["background_color"] = setting('app-color-dark');
}else{
$manifest["background_color"] = setting('app-color');
}
return response()->json($manifest);
}