Repository: rust-lang/mdBook (language: rust)

Issue:
status bar of phone is always white regardless of the theme
### Problem

The color of phone's status bar and web address bar should be the same as the background color of the webpage.

### Steps

1. Use a phone to browse a site that uses mdbook. For example: https://rust-lang.github.io/mdBook
2. Change theme to any but white. For example: `Ayu`
3. The phone's status bar and web address bar are always white.

### Possible Solution(s)

_No response_

### Notes

_No response_

### Version

_No response_


Discussion / hints:

Fix patch:
diff --git a/src/theme/book.js b/src/theme/book.js
index 67a8a5b087..351e28c72d 100644
--- a/src/theme/book.js
+++ b/src/theme/book.js
@@ -346,7 +346,7 @@ function playground_text(playground, hidden = true) {
         }
 
         setTimeout(function () {
-            themeColorMetaTag.content = getComputedStyle(document.body).backgroundColor;
+            themeColorMetaTag.content = getComputedStyle(document.documentElement).backgroundColor;
         }, 1);
 
         if (window.ace && window.editors) {


Test patch: