Skip to content

NOW MANAGED ON CODEBERG

Fix Dark theme

JonatanRekcb9c3fc9f5a0
diff --git a/app/App/HomeController.php b/app/App/HomeController.php
index d971247df..a2bb151de 100644
--- a/app/App/HomeController.php
+++ b/app/App/HomeController.php
@@ -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);
}