uni-ticket-system/node_modules/@dcloudio/uni-cli-shared/dist/json/app/manifest/statusbar.js
2023-12-05 10:11:10 +08:00

17 lines
661 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initAppStatusbar = void 0;
function initAppStatusbar(manifestJson, pagesJson) {
const titleColor = pagesJson.pages[0].style.navigationBar.titleColor ||
pagesJson.globalStyle.navigationBar.titleColor ||
'#000000';
const backgroundColor = pagesJson.globalStyle.navigationBar.backgroundColor || '#000000';
manifestJson.plus.statusbar = {
immersed: 'supportedDevice',
style: titleColor === '#ffffff' ? 'light' : 'dark',
background: backgroundColor,
};
return manifestJson;
}
exports.initAppStatusbar = initAppStatusbar;