Skip to content

Commit

Permalink
fix(app): parse navigationBarBackgroundColor darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Jan 13, 2023
1 parent b97f51d commit 04f15e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ module.exports = function (pagesJson, userManifestJson, isAppView) {

_initTheme(appJson, userManifestJson)

parseTheme(appJson.window)
const parsedThemeAppJsonWindow = parseTheme(appJson.window)

const navigationBarTextStyle =
(pagesJson.pages[0].style && pagesJson.pages[0].style.navigationBarTextStyle) ||
(pagesJson.globalStyle && pagesJson.globalStyle.navigationBarTextStyle) ||
'white'
const navigationBarBackgroundColor = (appJson.window && appJson.window.navigationBarBackgroundColor) || '#000000'
const navigationBarBackgroundColor = (parsedThemeAppJsonWindow && parsedThemeAppJsonWindow.navigationBarBackgroundColor) || '#000000'

const TABBAR_HEIGHT = 50

Expand Down

0 comments on commit 04f15e7

Please sign in to comment.