Fix Dark theme

This commit is contained in:
JonatanRek 2023-09-22 10:49:37 +02:00
parent 2b604b5af9
commit cb9c3fc9f5
1 changed files with 6 additions and 2 deletions

View File

@ -149,7 +149,11 @@ class HomeController extends Controller
{
$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);
}