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
yuzhilin
2024-04-23 19:16:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f73743f6a1a406bd356699ef42aa6ebfa14198d
9f73743f
1 parent
182408da
更换 顶部tab 选中状态底部横线
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponent.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_channel_active.png
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponent.ets
View file @
9f73743
...
...
@@ -299,12 +299,13 @@ export struct TopNavigationComponent {
.fontColor(this.getFontColor(item, index))
.padding({ top: $r('app.float.top_tab_item_padding_top') })
.maxLines(this.MAX_LINE)
Divider()
.width(16)
.strokeWidth(2)// 分割线粗细度。
.padding({ top: 2 })
.color(Color.Red)
.opacity(this.currentTopNavSelectedIndex === index ? 1 : 0)
if (this.currentTopNavSelectedIndex === index) {
Row()
.width(20)
.height(3)
.backgroundImage($r('app.media.icon_channel_active'), ImageRepeat.NoRepeat)
}
}
.hoverEffect(HoverEffect.Highlight)
.constraintSize({
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_channel_active.png
0 → 100644
View file @
9f73743
259 Bytes
Please
register
or
login
to post a comment