You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
Set status bars theme based on device theme in MMRL
This commit is contained in:
@@ -195,6 +195,13 @@ async function checkMMRL() {
|
|||||||
headerBlock.style.display = 'block';
|
headerBlock.style.display = 'block';
|
||||||
floatingCard.style.bottom = 'calc(var(--window-inset-bottom) + 50px)';
|
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+
|
// Request API permission, supported version: 33045+
|
||||||
try {
|
try {
|
||||||
$tricky_store.requestAdvancedKernelSUAPI();
|
$tricky_store.requestAdvancedKernelSUAPI();
|
||||||
|
|||||||
Reference in New Issue
Block a user