Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-20 15:45:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1de77337d31a342b0e29649c4b82b75d49673d83
1de77337
1 parent
ebddcd66
fix: 鸿蒙设备视频沉浸式视频色值与按钮接近的时候,整个顶部图标及tab按钮完全看不见
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
View file @
1de7733
...
...
@@ -232,15 +232,15 @@ export struct VideoChannelPage {
.backgroundColor(Color.Transparent)
}
//顶部渐变遮罩
// .linearGradient({
// colors: [
// ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0]
// ]
// })
.zIndex(20)
.height($r('app.float.top_tab_bar_height_common'))
.margin({
.height(44 + px2vp(this.topSafeHeight))
//顶部渐变遮罩
.linearGradient({
direction: GradientDirection.Top, // 渐变方向
colors: this.currentTopNavSelectedIndex === 0 ? [['rgba(18, 18, 18, 0)', 0],
['rgba(18, 18, 18, 0.5)', 1.0]] : []// 数组末尾元素占比小于1时满足重复着色效果
})
.padding({
top: px2vp(this.topSafeHeight)
})
.visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None)
...
...
Please
register
or
login
to post a comment