mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Fix Dark theme
This commit is contained in:
@ -149,7 +149,11 @@ class HomeController extends Controller
|
|||||||
{
|
{
|
||||||
$manifest = config('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);
|
return response()->json($manifest);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user