提交 ab3325fc 编写于 作者: Q qiang

chore: build

上级 a659c99d
......@@ -7633,21 +7633,21 @@ var serviceContext = (function () {
function useWebviewThemeChange (webview, getWebviewStyle) {
if (__uniConfig.darkmode) {
const fn = () => {
const {
animationAlphaBGColor, background,
backgroundColorBottom, backgroundColorTop,
titleNView: { backgroundColor, titleColor } = {}
} = getWebviewStyle();
webview && webview.setStyle({
animationAlphaBGColor,
background,
backgroundColorBottom,
backgroundColorTop,
titleNView: {
backgroundColor,
titleColor
}
});
const webviewStyle = getWebviewStyle();
const style = {
animationAlphaBGColor: webviewStyle.animationAlphaBGColor,
background: webviewStyle.background,
backgroundColorBottom: webviewStyle.backgroundColorBottom,
backgroundColorTop: webviewStyle.backgroundColorTop
};
var titleNView = webviewStyle.titleNView;
if (typeof titleNView !== 'undefined') {
style.titleNView = typeof titleNView === 'object' ? {
backgroundColor: titleNView.backgroundColor,
titleColor: titleNView.titleColor
} : titleNView;
}
webview && webview.setStyle(webviewStyle);
};
onThemeChange(fn);
webview.addEventListener('close', () => offThemeChange(fn));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册