mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
This commit is contained in:
parent
d47db0ca8e
commit
1caaf5afc9
12 changed files with 63 additions and 29 deletions
|
|
@ -6,7 +6,16 @@ import {getAllModels} from "../layout/getAll";
|
|||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {fetchPost} from "./fetch";
|
||||
import {isInAndroid, isInHarmony, isInIOS, isIPad, isIPhone, isMac, isWin11} from "../protyle/util/compatibility";
|
||||
import {
|
||||
isInAndroid,
|
||||
isInHarmony,
|
||||
isInIOS,
|
||||
isInMobileApp,
|
||||
isIPad,
|
||||
isIPhone,
|
||||
isMac,
|
||||
isWin11
|
||||
} from "../protyle/util/compatibility";
|
||||
import {setCodeTheme} from "../protyle/render/util";
|
||||
import {getBackend, getFrontend} from "./functions";
|
||||
|
||||
|
|
@ -363,7 +372,7 @@ const rgba2hex = (rgba: string) => {
|
|||
};
|
||||
|
||||
const updateMobileTheme = (OSTheme: string) => {
|
||||
if (isInIOS() || isInAndroid() || isInHarmony()) {
|
||||
if (isInMobileApp()) {
|
||||
setTimeout(() => {
|
||||
const backgroundColor = rgba2hex(getComputedStyle(document.body).getPropertyValue("--b3-theme-background").trim());
|
||||
let mode = window.siyuan.config.appearance.mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue