diff --git a/module/webui/scripts/main.js b/module/webui/scripts/main.js index 31679f8..99e396c 100644 --- a/module/webui/scripts/main.js +++ b/module/webui/scripts/main.js @@ -195,6 +195,13 @@ async function checkMMRL() { headerBlock.style.display = 'block'; floatingCard.style.bottom = 'calc(var(--window-inset-bottom) + 50px)'; + // Set status bars theme based on device theme + try { + $tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches) + } catch (error) { + console.log("Error setting status bars theme:", error) + } + // Request API permission, supported version: 33045+ try { $tricky_store.requestAdvancedKernelSUAPI();