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
wangliang_wd
2024-09-24 16:53:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e94269f9ef19e09583ff0d7a6a090bf4ebfb95d2
e94269f9
1 parent
10c79d9f
feat:优化早晚报渐变线条展示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
View file @
e94269f
...
...
@@ -56,7 +56,7 @@ export struct PaperTitleComponent {
})
Text(this.title ?? "")
.margin({ left: 10 })
.margin({ left: 10
,top:-3
})
.fontSize(22)
.fontColor($r('app.color.white'))
.fontFamily('SourceHanSerifSC-Heavy')
...
...
@@ -132,9 +132,9 @@ export struct PaperTitleComponent {
Row()
.width(DisplayUtils.getDeviceWidth() - 265)
.height('18vp')
// .clip(new Path({
// commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
// }))
.clip(new Path({
commands: `M${vp2px(9)} 0 H${vp2px(300)} V${vp2px(18)} L0 ${vp2px(18)} Z`
}))
.linearGradient({
direction: GradientDirection.Right, // 渐变方向
repeating: false, // 渐变颜色是否重复
...
...
Please
register
or
login
to post a comment