statusbar.js 661 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.initAppStatusbar = void 0;
  4. function initAppStatusbar(manifestJson, pagesJson) {
  5. const titleColor = pagesJson.pages[0].style.navigationBar.titleColor ||
  6. pagesJson.globalStyle.navigationBar.titleColor ||
  7. '#000000';
  8. const backgroundColor = pagesJson.globalStyle.navigationBar.backgroundColor || '#000000';
  9. manifestJson.plus.statusbar = {
  10. immersed: 'supportedDevice',
  11. style: titleColor === '#ffffff' ? 'light' : 'dark',
  12. background: backgroundColor,
  13. };
  14. return manifestJson;
  15. }
  16. exports.initAppStatusbar = initAppStatusbar;