chenjun

直播时去掉顶部遮罩设置背景为白色视频字体设置黑色与安卓保持一致 顶部遮罩空隙改出来的问题

... ... @@ -94,7 +94,8 @@ export struct VideoChannelPage {
return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222'
} else {
let ccolor = this.navItem.channelChooseCColor.replace('#', '#99')
return this.navItem.channelChooseCColor ? ccolor : '#99FFFFFF'
let defaultColor = this.isImmerseChannel() ? '#99FFFFFF' : '#222222'
return this.navItem.channelChooseCColor ? ccolor : defaultColor
}
}
... ... @@ -106,7 +107,7 @@ export struct VideoChannelPage {
this.topNavView()
}
.backgroundColor(Color.Black)
.backgroundColor(this.isImmerseChannel()? Color.Black : Color.White)
.width('100%')
.height('100%')
}
... ... @@ -210,11 +211,11 @@ export struct VideoChannelPage {
})
.visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None)
// .backgroundColor(Color.Blue)
.linearGradient({
.linearGradient(this.isImmerseChannel() ? {
colors: [
['rgba(18, 18, 18, 0.5)', 0.0], ['rgba(18, 18, 18, 0.0)', 1.0]
]
})
} : undefined)
}
/**
... ...