Skip to content

Commit fa9431f

Browse files
authored
fix: 自定义背景色不能显示问题 (#258)
1 parent 5bbf08d commit fa9431f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

harmony/rn_webview/src/main/ets/RNCWebView.ets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ export struct RNCWebView {
449449
.verticalScrollBarAccess(this.descriptorWrapper.rawProps.showsVerticalScrollIndicator)
450450
.overviewModeAccess(this.descriptorWrapper.rawProps.scalesPageToFit)
451451
.textZoomRatio(this.descriptorWrapper.rawProps.textZoom)
452+
.backgroundColor(BaseOperate.getColorMode(this.ctx.uiAbilityContext, this.descriptorWrapper.rawProps.forceDarkOn) === WebDarkMode.On ? Color.White : Color.Transparent)
452453
.darkMode(BaseOperate.getColorMode(this.ctx.uiAbilityContext, this.descriptorWrapper.rawProps.forceDarkOn))
453454
.forceDarkAccess(this.forceDark)
454455
.cacheMode(this.cacheMode)

0 commit comments

Comments
 (0)