mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Fix Dark theme
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user