mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Fix Dark theme
This commit is contained in:
parent
2b604b5af9
commit
cb9c3fc9f5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user