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:
@ -148,8 +148,12 @@ class HomeController extends Controller
|
|||||||
public function manifest()
|
public function manifest()
|
||||||
{
|
{
|
||||||
$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